mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
a32569741f
* Update external-config.json * enable flags in engine
22 lines
602 B
CMake
22 lines
602 B
CMake
|
|
|
|
macro(cc_android_before_target target_name)
|
|
list(APPEND CC_ALL_SOURCES ${CC_COMMON_SOURCES} ${CC_PROJ_SOURCES})
|
|
cc_common_before_target(${target_name})
|
|
endmacro()
|
|
|
|
|
|
macro(cc_android_after_target target_name)
|
|
|
|
target_link_libraries(${target_name}
|
|
"-Wl,--whole-archive" cocos_jni "-Wl,--no-whole-archive"
|
|
${ENGINE_NAME}
|
|
)
|
|
|
|
set_target_properties(${target_name} PROPERTIES LINK_FLAGS " -Wl,--gc-sections")
|
|
|
|
target_include_directories(${target_name} PRIVATE
|
|
${CC_PROJECT_DIR}/../common/Classes
|
|
)
|
|
cc_common_after_target(${target_name})
|
|
endmacro() |