mirror of https://github.com/axmolengine/axmol.git
parent
956fd85401
commit
df9fa6c8fd
|
@ -42,13 +42,9 @@ set(res_res_folders
|
||||||
set(res_src_folders
|
set(res_src_folders
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/src"
|
"${CMAKE_CURRENT_SOURCE_DIR}/src"
|
||||||
)
|
)
|
||||||
set(res_script_folders
|
|
||||||
"${COCOS2DX_ROOT_PATH}/cocos/scripting/lua-bindings/script"
|
|
||||||
)
|
|
||||||
if(APPLE OR VS)
|
if(APPLE OR VS)
|
||||||
cocos_mark_multi_resources(res_res RES_TO "Resources/res" FOLDERS ${res_res_folders})
|
cocos_mark_multi_resources(res_res RES_TO "Resources/res" FOLDERS ${res_res_folders})
|
||||||
cocos_mark_multi_resources(res_src RES_TO "Resources/src" FOLDERS ${res_src_folders})
|
cocos_mark_multi_resources(res_src RES_TO "Resources/src" FOLDERS ${res_src_folders})
|
||||||
cocos_mark_multi_resources(res_script RES_TO "Resources/src/cocos" FOLDERS ${res_script_folders})
|
|
||||||
set(cc_common_res ${res_res} ${res_src} ${res_script})
|
set(cc_common_res ${res_res} ${res_src} ${res_script})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -144,5 +140,4 @@ if(LINUX OR WINDOWS)
|
||||||
set(APP_RES_DIR "$<TARGET_FILE_DIR:${APP_NAME}>/Resources")
|
set(APP_RES_DIR "$<TARGET_FILE_DIR:${APP_NAME}>/Resources")
|
||||||
cocos_copy_target_res(${APP_NAME} COPY_TO ${APP_RES_DIR}/res FOLDERS ${res_res_folders})
|
cocos_copy_target_res(${APP_NAME} COPY_TO ${APP_RES_DIR}/res FOLDERS ${res_res_folders})
|
||||||
cocos_copy_target_res(${APP_NAME} COPY_TO ${APP_RES_DIR}/src FOLDERS ${res_src_folders})
|
cocos_copy_target_res(${APP_NAME} COPY_TO ${APP_RES_DIR}/src FOLDERS ${res_src_folders})
|
||||||
cocos_copy_target_res(${APP_NAME} COPY_TO ${APP_RES_DIR}/src/cocos FOLDERS ${res_script_folders})
|
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue