freetype is only used in DebugRenderer now, so link freetype only when DebugRenderer is enabled. (#268)

This commit is contained in:
James Chen
2022-06-30 10:26:44 +08:00
committed by GitHub
parent e16a3e115f
commit a0a3c67d09
7 changed files with 50 additions and 1 deletions
+7
View File
@@ -6,10 +6,12 @@ set_target_properties(crypto PROPERTIES
IMPORTED_LOCATION ${ohos_lib_dir}/libcrypto.a
)
if (USE_DEBUG_RENDERER)
add_library(freetype STATIC IMPORTED GLOBAL)
set_target_properties(freetype PROPERTIES
IMPORTED_LOCATION ${ohos_lib_dir}/libfreetype.a
)
endif()
add_library(jpeg STATIC IMPORTED GLOBAL)
set_target_properties(jpeg PROPERTIES
@@ -163,8 +165,13 @@ if(USE_JOB_SYSTEM_TBB)
)
endif()
if (USE_DEBUG_RENDERER)
list(APPEND CC_EXTERNAL_LIBS
freetype
)
endif()
list(APPEND CC_EXTERNAL_LIBS
jpeg
png
webp