config cmake
This commit is contained in:
parent
bd26af1719
commit
3943a7d3b6
|
|
@ -140,7 +140,19 @@ add_library(glslang-default-resource-limits STATIC IMPORTED GLOBAL)
|
||||||
set_target_properties(glslang-default-resource-limits PROPERTIES
|
set_target_properties(glslang-default-resource-limits PROPERTIES
|
||||||
IMPORTED_LOCATION ${ohos_lib_dir}/libglslang-default-resource-limits.a
|
IMPORTED_LOCATION ${ohos_lib_dir}/libglslang-default-resource-limits.a
|
||||||
)
|
)
|
||||||
set(glslang_libs_name glslang OGLCompiler OSDependent SPIRV glslang-default-resource-limits)
|
set(glslang_libs_name glslang OGLCompiler OSDependent SPIRV glslang-default-resource-limits MachineIndependent GenericCodeGen)
|
||||||
|
|
||||||
|
if(OPENHARMONY)
|
||||||
|
add_library(MachineIndependent STATIC IMPORTED GLOBAL)
|
||||||
|
set_target_properties(MachineIndependent PROPERTIES
|
||||||
|
IMPORTED_LOCATION ${ohos_lib_dir}/libMachineIndependent.a
|
||||||
|
)
|
||||||
|
add_library(GenericCodeGen STATIC IMPORTED GLOBAL)
|
||||||
|
set_target_properties(GenericCodeGen PROPERTIES
|
||||||
|
IMPORTED_LOCATION ${ohos_lib_dir}/libGenericCodeGen.a
|
||||||
|
)
|
||||||
|
list(APPEND glslang_libs_name MachineIndependent GenericCodeGen)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
############################# TBB #############################
|
############################# TBB #############################
|
||||||
|
|
@ -167,14 +179,19 @@ list(APPEND CC_EXTERNAL_LIBS
|
||||||
freetype
|
freetype
|
||||||
jpeg
|
jpeg
|
||||||
png
|
png
|
||||||
webp
|
|
||||||
sqlite3
|
sqlite3
|
||||||
${se_libs_name}
|
|
||||||
${glslang_libs_name}
|
${glslang_libs_name}
|
||||||
OpenALSoft
|
|
||||||
mpg123
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(NOT OPENHARMONY)
|
||||||
|
list(APPEND CC_EXTERNAL_LIBS
|
||||||
|
webp
|
||||||
|
${se_libs_name}
|
||||||
|
OpenALSoft
|
||||||
|
mpg123
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(ZLIB z)
|
set(ZLIB z)
|
||||||
if(NOT USE_MODULES)
|
if(NOT USE_MODULES)
|
||||||
list(APPEND CC_EXTERNAL_LIBS ${ZLIB})
|
list(APPEND CC_EXTERNAL_LIBS ${ZLIB})
|
||||||
|
|
@ -190,6 +207,9 @@ endif()
|
||||||
list(APPEND CC_EXTERNAL_INCLUDES
|
list(APPEND CC_EXTERNAL_INCLUDES
|
||||||
${platform_spec_path}/include
|
${platform_spec_path}/include
|
||||||
${platform_spec_path}/include/v8
|
${platform_spec_path}/include/v8
|
||||||
|
${platform_spec_path}/include/sqlite
|
||||||
|
${platform_spec_path}/include/png16
|
||||||
|
${platform_spec_path}/include/uv
|
||||||
)
|
)
|
||||||
|
|
||||||
#TODO: remove in future version
|
#TODO: remove in future version
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue