2018-09-25 11:16:04 +08:00
|
|
|
cmake_minimum_required(VERSION 3.6)
|
2013-11-02 18:07:34 +08:00
|
|
|
|
2018-04-03 11:18:22 +08:00
|
|
|
set(APP_NAME cpp-tests)
|
2014-12-21 21:40:46 +08:00
|
|
|
|
2018-02-08 09:24:33 +08:00
|
|
|
project(${APP_NAME})
|
|
|
|
|
|
|
|
if(NOT DEFINED BUILD_ENGINE_DONE)
|
|
|
|
set(COCOS2DX_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../..)
|
|
|
|
set(CMAKE_MODULE_PATH ${COCOS2DX_ROOT_PATH}/cmake/Modules/)
|
2018-05-02 15:33:01 +08:00
|
|
|
|
2018-02-08 09:24:33 +08:00
|
|
|
include(CocosBuildSet)
|
cmake support win32 ,and support generate&use prebuilt libs (#18683)
* fix win32 prebuilt error, and set cmake as default android native build
* cpp-template support msvc
* add msvc version check
* add -D_USRLUASTATIC, fix lua lib cmake compile error
* fix cpp-empty-test res copy dir, add function needed
* improve msvc res copy
* refactor cmake copy dll logic
* fix cpp-tests compile error
* refactor copy dll temp
* refactor win32 exe using dlls
* js-project compile support cmake using msvc
* improve res mark for win32
* update the way of lua project res mark
* add D_USRLUASTATIC for lua project
* unify RELEASE Release to Release, add CMAKE_CONFIGURATION_TYPES
* improve VS shows targets, add folder
* improve mac/ios res mark
* reduce useless comments
* unify cpp src include variable
* refactor cpp test project package logic
* improve pkg app logic
* start support prebuilt libs for cpp project using cmake
* improve prebuilt libs generate
* expand js/lua support prebuilt libs on mac
* adapt IDE generate libs path
* start do prebuilt for android
* improve the way of using external libs for prebuilt
* prebuilt libs support cpp-empty-test on android studio
* cpp-tests prebuilt libs, and remove useless
* start to improve libs using, to adapt prebuilt
* improve cpp tests prebuilt on android
* prebuilt support lua & js test on android
* prebuilt support cpp&js template
* rename prebuilt variabl, detail androd config
* finish android support prebuilt using cmake
* fix cmake script run in windows error
* reduce variable name length
* improve the way of win32 use dlls to adapt prebuilt
* loosen pick js/lua engine lib condition
* self review and start check linux build
* unify compile option location
* strict copy dlls condition
* improve libs link order
* start redo the way of copy dlls
* unify dlls copy logic
* fix linux res copy error
* update cmake copy file path in linux
* make prebuilt dir if needed, and divide Debug and Release dir
* cmake win32 divide Debug and Release dir well
* comment Lua Template project, for the unfinished lua simulator support
* add simulator cmake file
* start support simulator
* simulator support cmake build on macOS
* fix simulator compile error on win32
* add simulator prebuilt support
* improve mark cocos app macro
* improve cmake template project format
* improve cmake app files format
* fix format improve mistake
* detail cmake readme
* improve readme, useless comments
* add game.rc to template project
* check travis openssl version
* try update travis openssl
* upgrade travis openssl
* change openssl link
* change to upgrade openssl
* re install python with upgrade openssl
* add comment for macro and func, improve variable name
2018-03-08 09:47:57 +08:00
|
|
|
if(NOT USE_COCOS_PREBUILT)
|
|
|
|
add_subdirectory(${COCOS2DX_ROOT_PATH}/cocos ${ENGINE_BINARY_PATH}/cocos/core)
|
|
|
|
endif()
|
|
|
|
endif()
|
2014-11-11 14:49:27 +08:00
|
|
|
|
2018-03-14 13:51:29 +08:00
|
|
|
# record sources, headers, resources...
|
|
|
|
set(GAME_SOURCE)
|
|
|
|
set(GAME_HEADER)
|
|
|
|
|
2018-05-02 15:33:01 +08:00
|
|
|
set(GAME_RES_FOLDER
|
cmake support win32 ,and support generate&use prebuilt libs (#18683)
* fix win32 prebuilt error, and set cmake as default android native build
* cpp-template support msvc
* add msvc version check
* add -D_USRLUASTATIC, fix lua lib cmake compile error
* fix cpp-empty-test res copy dir, add function needed
* improve msvc res copy
* refactor cmake copy dll logic
* fix cpp-tests compile error
* refactor copy dll temp
* refactor win32 exe using dlls
* js-project compile support cmake using msvc
* improve res mark for win32
* update the way of lua project res mark
* add D_USRLUASTATIC for lua project
* unify RELEASE Release to Release, add CMAKE_CONFIGURATION_TYPES
* improve VS shows targets, add folder
* improve mac/ios res mark
* reduce useless comments
* unify cpp src include variable
* refactor cpp test project package logic
* improve pkg app logic
* start support prebuilt libs for cpp project using cmake
* improve prebuilt libs generate
* expand js/lua support prebuilt libs on mac
* adapt IDE generate libs path
* start do prebuilt for android
* improve the way of using external libs for prebuilt
* prebuilt libs support cpp-empty-test on android studio
* cpp-tests prebuilt libs, and remove useless
* start to improve libs using, to adapt prebuilt
* improve cpp tests prebuilt on android
* prebuilt support lua & js test on android
* prebuilt support cpp&js template
* rename prebuilt variabl, detail androd config
* finish android support prebuilt using cmake
* fix cmake script run in windows error
* reduce variable name length
* improve the way of win32 use dlls to adapt prebuilt
* loosen pick js/lua engine lib condition
* self review and start check linux build
* unify compile option location
* strict copy dlls condition
* improve libs link order
* start redo the way of copy dlls
* unify dlls copy logic
* fix linux res copy error
* update cmake copy file path in linux
* make prebuilt dir if needed, and divide Debug and Release dir
* cmake win32 divide Debug and Release dir well
* comment Lua Template project, for the unfinished lua simulator support
* add simulator cmake file
* start support simulator
* simulator support cmake build on macOS
* fix simulator compile error on win32
* add simulator prebuilt support
* improve mark cocos app macro
* improve cmake template project format
* improve cmake app files format
* fix format improve mistake
* detail cmake readme
* improve readme, useless comments
* add game.rc to template project
* check travis openssl version
* try update travis openssl
* upgrade travis openssl
* change openssl link
* change to upgrade openssl
* re install python with upgrade openssl
* add comment for macro and func, improve variable name
2018-03-08 09:47:57 +08:00
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/Resources"
|
2018-05-02 15:33:01 +08:00
|
|
|
)
|
cmake support win32 ,and support generate&use prebuilt libs (#18683)
* fix win32 prebuilt error, and set cmake as default android native build
* cpp-template support msvc
* add msvc version check
* add -D_USRLUASTATIC, fix lua lib cmake compile error
* fix cpp-empty-test res copy dir, add function needed
* improve msvc res copy
* refactor cmake copy dll logic
* fix cpp-tests compile error
* refactor copy dll temp
* refactor win32 exe using dlls
* js-project compile support cmake using msvc
* improve res mark for win32
* update the way of lua project res mark
* add D_USRLUASTATIC for lua project
* unify RELEASE Release to Release, add CMAKE_CONFIGURATION_TYPES
* improve VS shows targets, add folder
* improve mac/ios res mark
* reduce useless comments
* unify cpp src include variable
* refactor cpp test project package logic
* improve pkg app logic
* start support prebuilt libs for cpp project using cmake
* improve prebuilt libs generate
* expand js/lua support prebuilt libs on mac
* adapt IDE generate libs path
* start do prebuilt for android
* improve the way of using external libs for prebuilt
* prebuilt libs support cpp-empty-test on android studio
* cpp-tests prebuilt libs, and remove useless
* start to improve libs using, to adapt prebuilt
* improve cpp tests prebuilt on android
* prebuilt support lua & js test on android
* prebuilt support cpp&js template
* rename prebuilt variabl, detail androd config
* finish android support prebuilt using cmake
* fix cmake script run in windows error
* reduce variable name length
* improve the way of win32 use dlls to adapt prebuilt
* loosen pick js/lua engine lib condition
* self review and start check linux build
* unify compile option location
* strict copy dlls condition
* improve libs link order
* start redo the way of copy dlls
* unify dlls copy logic
* fix linux res copy error
* update cmake copy file path in linux
* make prebuilt dir if needed, and divide Debug and Release dir
* cmake win32 divide Debug and Release dir well
* comment Lua Template project, for the unfinished lua simulator support
* add simulator cmake file
* start support simulator
* simulator support cmake build on macOS
* fix simulator compile error on win32
* add simulator prebuilt support
* improve mark cocos app macro
* improve cmake template project format
* improve cmake app files format
* fix format improve mistake
* detail cmake readme
* improve readme, useless comments
* add game.rc to template project
* check travis openssl version
* try update travis openssl
* upgrade travis openssl
* change openssl link
* change to upgrade openssl
* re install python with upgrade openssl
* add comment for macro and func, improve variable name
2018-03-08 09:47:57 +08:00
|
|
|
if(APPLE OR VS)
|
2018-03-14 13:51:29 +08:00
|
|
|
cocos_mark_multi_resources(cc_common_res RES_TO "Resources" FOLDERS ${GAME_RES_FOLDER})
|
cmake support win32 ,and support generate&use prebuilt libs (#18683)
* fix win32 prebuilt error, and set cmake as default android native build
* cpp-template support msvc
* add msvc version check
* add -D_USRLUASTATIC, fix lua lib cmake compile error
* fix cpp-empty-test res copy dir, add function needed
* improve msvc res copy
* refactor cmake copy dll logic
* fix cpp-tests compile error
* refactor copy dll temp
* refactor win32 exe using dlls
* js-project compile support cmake using msvc
* improve res mark for win32
* update the way of lua project res mark
* add D_USRLUASTATIC for lua project
* unify RELEASE Release to Release, add CMAKE_CONFIGURATION_TYPES
* improve VS shows targets, add folder
* improve mac/ios res mark
* reduce useless comments
* unify cpp src include variable
* refactor cpp test project package logic
* improve pkg app logic
* start support prebuilt libs for cpp project using cmake
* improve prebuilt libs generate
* expand js/lua support prebuilt libs on mac
* adapt IDE generate libs path
* start do prebuilt for android
* improve the way of using external libs for prebuilt
* prebuilt libs support cpp-empty-test on android studio
* cpp-tests prebuilt libs, and remove useless
* start to improve libs using, to adapt prebuilt
* improve cpp tests prebuilt on android
* prebuilt support lua & js test on android
* prebuilt support cpp&js template
* rename prebuilt variabl, detail androd config
* finish android support prebuilt using cmake
* fix cmake script run in windows error
* reduce variable name length
* improve the way of win32 use dlls to adapt prebuilt
* loosen pick js/lua engine lib condition
* self review and start check linux build
* unify compile option location
* strict copy dlls condition
* improve libs link order
* start redo the way of copy dlls
* unify dlls copy logic
* fix linux res copy error
* update cmake copy file path in linux
* make prebuilt dir if needed, and divide Debug and Release dir
* cmake win32 divide Debug and Release dir well
* comment Lua Template project, for the unfinished lua simulator support
* add simulator cmake file
* start support simulator
* simulator support cmake build on macOS
* fix simulator compile error on win32
* add simulator prebuilt support
* improve mark cocos app macro
* improve cmake template project format
* improve cmake app files format
* fix format improve mistake
* detail cmake readme
* improve readme, useless comments
* add game.rc to template project
* check travis openssl version
* try update travis openssl
* upgrade travis openssl
* change openssl link
* change to upgrade openssl
* re install python with upgrade openssl
* add comment for macro and func, improve variable name
2018-03-08 09:47:57 +08:00
|
|
|
endif()
|
2014-11-11 14:49:27 +08:00
|
|
|
|
2018-03-14 13:51:29 +08:00
|
|
|
if(ANDROID)
|
2018-04-03 11:18:22 +08:00
|
|
|
# change APP_NAME to the share library name for Android, it's value depend on AndroidManifest.xml
|
|
|
|
set(APP_NAME cpp_tests)
|
2018-03-14 13:51:29 +08:00
|
|
|
list(APPEND GAME_HEADER
|
2018-05-02 15:33:01 +08:00
|
|
|
Classes/JNITest/JNITest.h
|
|
|
|
)
|
2018-03-14 13:51:29 +08:00
|
|
|
list(APPEND GAME_SOURCE
|
2018-05-02 15:33:01 +08:00
|
|
|
Classes/JNITest/JNITest.cpp
|
|
|
|
proj.android/app/jni/main.cpp
|
|
|
|
)
|
2018-03-14 13:51:29 +08:00
|
|
|
elseif(LINUX)
|
|
|
|
list(APPEND GAME_SOURCE
|
2018-05-02 15:33:01 +08:00
|
|
|
proj.linux/main.cpp
|
|
|
|
)
|
2018-03-14 13:51:29 +08:00
|
|
|
elseif(WINDOWS)
|
|
|
|
list(APPEND GAME_HEADER
|
2018-05-02 15:33:01 +08:00
|
|
|
proj.win32/main.h
|
|
|
|
)
|
2018-03-14 13:51:29 +08:00
|
|
|
list(APPEND GAME_SOURCE
|
2018-05-02 15:33:01 +08:00
|
|
|
proj.win32/main.cpp
|
|
|
|
${cc_common_res}
|
|
|
|
)
|
2018-02-08 09:24:33 +08:00
|
|
|
elseif(APPLE)
|
|
|
|
if(IOS)
|
2018-03-14 13:51:29 +08:00
|
|
|
list(APPEND GAME_HEADER
|
2018-05-02 15:33:01 +08:00
|
|
|
proj.ios/Classes/testsAppDelegate.h
|
|
|
|
proj.ios/Classes/RootViewController.h
|
|
|
|
)
|
2018-03-14 13:51:29 +08:00
|
|
|
set(APP_UI_RES
|
|
|
|
proj.ios/LaunchScreen.storyboard
|
|
|
|
proj.ios/LaunchScreenBackground.png
|
|
|
|
proj.ios/Images.xcassets
|
2018-05-02 15:33:01 +08:00
|
|
|
)
|
2018-03-14 13:51:29 +08:00
|
|
|
list(APPEND GAME_SOURCE
|
2018-05-02 15:33:01 +08:00
|
|
|
proj.ios/main.m
|
|
|
|
proj.ios/Classes/testsAppDelegate.mm
|
|
|
|
proj.ios/Classes/RootViewController.mm
|
|
|
|
proj.ios/Prefix.pch
|
|
|
|
${APP_UI_RES}
|
|
|
|
)
|
2018-02-08 09:24:33 +08:00
|
|
|
elseif(MACOSX)
|
2018-03-14 13:51:29 +08:00
|
|
|
set(APP_UI_RES
|
|
|
|
proj.mac/Icon.icns
|
|
|
|
proj.mac/Info.plist
|
|
|
|
proj.mac/Prefix.pch
|
|
|
|
proj.mac/en.lproj/MainMenu.xib
|
|
|
|
proj.mac/en.lproj/InfoPlist.strings
|
2018-05-02 15:33:01 +08:00
|
|
|
)
|
2018-03-14 13:51:29 +08:00
|
|
|
list(APPEND GAME_SOURCE
|
2018-05-02 15:33:01 +08:00
|
|
|
proj.mac/main.cpp
|
|
|
|
${APP_UI_RES}
|
|
|
|
)
|
2018-02-08 09:24:33 +08:00
|
|
|
endif()
|
2018-03-14 13:51:29 +08:00
|
|
|
list(APPEND GAME_SOURCE ${cc_common_res})
|
2014-01-09 17:48:37 +08:00
|
|
|
endif()
|
|
|
|
|
2018-03-14 13:51:29 +08:00
|
|
|
list(APPEND GAME_HEADER
|
2018-05-02 15:33:01 +08:00
|
|
|
Classes/ActionsEaseTest/ActionsEaseTest.h
|
|
|
|
Classes/ParallaxTest/ParallaxTest.h
|
|
|
|
Classes/testBasic.h
|
|
|
|
Classes/ZwoptexTest/ZwoptexTest.h
|
|
|
|
Classes/precheader.h
|
|
|
|
Classes/CurlTest/CurlTest.h
|
|
|
|
Classes/UnitTest/UnitTest.h
|
|
|
|
Classes/UnitTest/RefPtrTest.h
|
|
|
|
Classes/ConfigurationTest/ConfigurationTest.h
|
|
|
|
Classes/CurrentLanguageTest/CurrentLanguageTest.h
|
|
|
|
Classes/AppDelegate.h
|
|
|
|
Classes/LabelTest/LabelTestNew.h
|
|
|
|
Classes/LabelTest/LabelTest.h
|
|
|
|
Classes/Particle3DTest/Particle3DTest.h
|
|
|
|
Classes/AllocatorTest/AllocatorTest.h
|
|
|
|
Classes/VibrateTest/VibrateTest.h
|
|
|
|
Classes/ClippingNodeTest/ClippingNodeTest.h
|
|
|
|
Classes/UserDefaultTest/UserDefaultTest.h
|
|
|
|
Classes/tests.h
|
|
|
|
Classes/DataVisitorTest/DataVisitorTest.h
|
|
|
|
Classes/NewAudioEngineTest/NewAudioEngineTest.h
|
|
|
|
Classes/BugsTest/Bug-422.h
|
|
|
|
Classes/BugsTest/Bug-CCDrawNode.h
|
|
|
|
Classes/BugsTest/BugsTest.h
|
|
|
|
Classes/BugsTest/Bug-12847.h
|
|
|
|
Classes/BugsTest/Bug-899.h
|
|
|
|
Classes/BugsTest/Bug-1159.h
|
|
|
|
Classes/BugsTest/Bug-350.h
|
|
|
|
Classes/BugsTest/Bug-15594.h
|
|
|
|
Classes/BugsTest/Bug-914.h
|
|
|
|
Classes/BugsTest/Bug-624.h
|
|
|
|
Classes/BugsTest/Bug-458/QuestionContainerSprite.h
|
|
|
|
Classes/BugsTest/Bug-458/Bug-458.h
|
|
|
|
Classes/BugsTest/Bug-886.h
|
|
|
|
Classes/BugsTest/Bug-Child.h
|
|
|
|
Classes/BugsTest/Bug-15776.h
|
|
|
|
Classes/BugsTest/Bug-1174.h
|
|
|
|
Classes/ActionsTest/ActionsTest.h
|
|
|
|
Classes/TouchesTest/TouchesTest.h
|
|
|
|
Classes/TouchesTest/Ball.h
|
|
|
|
Classes/TouchesTest/Paddle.h
|
|
|
|
Classes/ActionManagerTest/ActionManagerTest.h
|
|
|
|
Classes/ClickAndMoveTest/ClickAndMoveTest.h
|
|
|
|
Classes/MaterialSystemTest/MaterialSystemTest.h
|
|
|
|
Classes/IntervalTest/IntervalTest.h
|
|
|
|
Classes/TileMapTest/TileMapTest2.h
|
|
|
|
Classes/TileMapTest/TileMapTest.h
|
|
|
|
Classes/NewEventDispatcherTest/NewEventDispatcherTest.h
|
|
|
|
Classes/ActionsProgressTest/ActionsProgressTest.h
|
|
|
|
Classes/RotateWorldTest/RotateWorldTest.h
|
|
|
|
Classes/Camera3DTest/Camera3DTest.h
|
|
|
|
Classes/TextInputTest/TextInputTest.h
|
|
|
|
Classes/Texture2dTest/Texture2dTest.h
|
|
|
|
Classes/TerrainTest/TerrainTest.h
|
|
|
|
Classes/controller.h
|
|
|
|
Classes/TransitionsTest/TransitionsTest.h
|
|
|
|
Classes/TextureCacheTest/TextureCacheTest.h
|
|
|
|
Classes/MotionStreakTest/MotionStreakTest.h
|
|
|
|
Classes/ExtensionsTest/AssetsManagerExTest/AssetsManagerExTest.h
|
|
|
|
Classes/ExtensionsTest/ExtensionsTest.h
|
|
|
|
Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.h
|
|
|
|
Classes/ExtensionsTest/TableViewTest/TableViewTestScene.h
|
|
|
|
Classes/ExtensionsTest/NetworkTest/WebSocketTest.h
|
2018-09-07 09:11:04 +08:00
|
|
|
Classes/ExtensionsTest/NetworkTest/WebSocketDelayTest.h
|
2018-05-02 15:33:01 +08:00
|
|
|
Classes/ExtensionsTest/NetworkTest/SocketIOTest.h
|
|
|
|
Classes/ExtensionsTest/NetworkTest/HttpClientTest.h
|
|
|
|
Classes/Sprite3DTest/Sprite3DTest.h
|
|
|
|
Classes/Sprite3DTest/DrawNode3D.h
|
|
|
|
Classes/BaseTest.h
|
|
|
|
Classes/SceneTest/SceneTest.h
|
|
|
|
Classes/ReleasePoolTest/ReleasePoolTest.h
|
|
|
|
Classes/CocosDenshionTest/CocosDenshionTest.h
|
|
|
|
Classes/InputTest/MouseTest.h
|
|
|
|
Classes/SpineTest/SpineTest.h
|
|
|
|
Classes/Scene3DTest/Scene3DTest.h
|
|
|
|
Classes/ParticleTest/ParticleTest.h
|
|
|
|
Classes/EffectsTest/EffectsTest.h
|
|
|
|
Classes/UITest/UITest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/CocosGUIScene.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UITabControlTest/UITabControlTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UISliderTest/UISliderTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIEditBoxTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIScene.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIButtonTest/UIButtonTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIScale9SpriteTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIListViewTest/UIListViewTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UISceneManager.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIRadioButtonTest/UIRadioButtonTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UILayoutTest/UILayoutTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIFocusTest/UIFocusTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UITextTest/UITextTest.h
|
|
|
|
Classes/DrawPrimitivesTest/DrawPrimitivesTest.h
|
|
|
|
Classes/BillBoardTest/BillBoardTest.h
|
|
|
|
Classes/SpriteFrameCacheTest/SpriteFrameCacheTest.h
|
|
|
|
Classes/EffectsAdvancedTest/EffectsAdvancedTest.h
|
|
|
|
Classes/SchedulerTest/SchedulerTest.h
|
|
|
|
Classes/MultiTouchTest/MultiTouchTest.h
|
|
|
|
Classes/testResource.h
|
|
|
|
Classes/ShaderTest/ShaderTest.vsh.h
|
|
|
|
Classes/ShaderTest/shaderTest.psh.h
|
|
|
|
Classes/ShaderTest/ShaderTest.h
|
|
|
|
Classes/ShaderTest/ShaderTest2.h
|
|
|
|
Classes/NewRendererTest/NewRendererTest.h
|
|
|
|
Classes/SpritePolygonTest/SpritePolygonTest.h
|
|
|
|
Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.h
|
|
|
|
Classes/NodeTest/NodeTest.h
|
|
|
|
Classes/FileUtilsTest/FileUtilsTest.h
|
|
|
|
Classes/RenderTextureTest/RenderTextureTest.h
|
|
|
|
Classes/LayerTest/LayerTest.h
|
|
|
|
Classes/SpriteTest/SpriteTest.h
|
|
|
|
Classes/FontTest/FontTest.h
|
|
|
|
Classes/LightTest/LightTest.h
|
|
|
|
Classes/VisibleRect.h
|
|
|
|
Classes/DownloaderTest/DownloaderTest.h
|
|
|
|
Classes/OpenURLTest/OpenURLTest.h
|
|
|
|
Classes/ConsoleTest/ConsoleTest.h
|
|
|
|
Classes/MenuTest/MenuTest.h
|
|
|
|
)
|
2018-03-14 13:51:29 +08:00
|
|
|
|
|
|
|
list(APPEND GAME_SOURCE
|
2018-05-02 15:33:01 +08:00
|
|
|
Classes/ActionManagerTest/ActionManagerTest.cpp
|
|
|
|
Classes/ActionsEaseTest/ActionsEaseTest.cpp
|
|
|
|
Classes/ActionsProgressTest/ActionsProgressTest.cpp
|
|
|
|
Classes/ActionsTest/ActionsTest.cpp
|
|
|
|
Classes/AllocatorTest/AllocatorTest.cpp
|
|
|
|
Classes/AppDelegate.cpp
|
|
|
|
Classes/BaseTest.cpp
|
|
|
|
Classes/BillBoardTest/BillBoardTest.cpp
|
|
|
|
Classes/BugsTest/Bug-CCDrawNode.cpp
|
|
|
|
Classes/BugsTest/Bug-1159.cpp
|
|
|
|
Classes/BugsTest/Bug-1174.cpp
|
|
|
|
Classes/BugsTest/Bug-350.cpp
|
|
|
|
Classes/BugsTest/Bug-422.cpp
|
|
|
|
Classes/BugsTest/Bug-458/Bug-458.cpp
|
|
|
|
Classes/BugsTest/Bug-458/QuestionContainerSprite.cpp
|
|
|
|
Classes/BugsTest/Bug-624.cpp
|
|
|
|
Classes/BugsTest/Bug-886.cpp
|
|
|
|
Classes/BugsTest/Bug-899.cpp
|
|
|
|
Classes/BugsTest/Bug-914.cpp
|
|
|
|
Classes/BugsTest/Bug-12847.cpp
|
|
|
|
Classes/BugsTest/Bug-15594.cpp
|
|
|
|
Classes/BugsTest/Bug-15776.cpp
|
|
|
|
Classes/BugsTest/Bug-Child.cpp
|
|
|
|
Classes/BugsTest/BugsTest.cpp
|
|
|
|
Classes/Camera3DTest/Camera3DTest.cpp
|
|
|
|
Classes/ClickAndMoveTest/ClickAndMoveTest.cpp
|
|
|
|
Classes/ClippingNodeTest/ClippingNodeTest.cpp
|
|
|
|
Classes/CocosDenshionTest/CocosDenshionTest.cpp
|
|
|
|
Classes/ConfigurationTest/ConfigurationTest.cpp
|
|
|
|
Classes/ConsoleTest/ConsoleTest.cpp
|
|
|
|
Classes/CurlTest/CurlTest.cpp
|
|
|
|
Classes/CurrentLanguageTest/CurrentLanguageTest.cpp
|
|
|
|
Classes/DataVisitorTest/DataVisitorTest.cpp
|
|
|
|
Classes/DownloaderTest/DownloaderTest.cpp
|
|
|
|
Classes/DrawPrimitivesTest/DrawPrimitivesTest.cpp
|
|
|
|
Classes/EffectsAdvancedTest/EffectsAdvancedTest.cpp
|
|
|
|
Classes/EffectsTest/EffectsTest.cpp
|
|
|
|
Classes/ExtensionsTest/AssetsManagerExTest/AssetsManagerExTest.cpp
|
|
|
|
Classes/ExtensionsTest/ExtensionsTest.cpp
|
|
|
|
Classes/ExtensionsTest/NetworkTest/HttpClientTest.cpp
|
|
|
|
Classes/ExtensionsTest/NetworkTest/SocketIOTest.cpp
|
|
|
|
Classes/ExtensionsTest/NetworkTest/WebSocketTest.cpp
|
2018-09-07 09:11:04 +08:00
|
|
|
Classes/ExtensionsTest/NetworkTest/WebSocketDelayTest.cpp
|
2018-05-02 15:33:01 +08:00
|
|
|
Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.cpp
|
|
|
|
Classes/ExtensionsTest/TableViewTest/TableViewTestScene.cpp
|
|
|
|
Classes/FileUtilsTest/FileUtilsTest.cpp
|
|
|
|
Classes/FontTest/FontTest.cpp
|
|
|
|
Classes/InputTest/MouseTest.cpp
|
|
|
|
Classes/IntervalTest/IntervalTest.cpp
|
|
|
|
Classes/LabelTest/LabelTest.cpp
|
|
|
|
Classes/LabelTest/LabelTestNew.cpp
|
|
|
|
Classes/LayerTest/LayerTest.cpp
|
|
|
|
Classes/LightTest/LightTest.cpp
|
|
|
|
Classes/MaterialSystemTest/MaterialSystemTest.cpp
|
|
|
|
Classes/MenuTest/MenuTest.cpp
|
|
|
|
Classes/MotionStreakTest/MotionStreakTest.cpp
|
|
|
|
Classes/MultiTouchTest/MultiTouchTest.cpp
|
|
|
|
Classes/NewAudioEngineTest/NewAudioEngineTest.cpp
|
|
|
|
Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp
|
|
|
|
Classes/NewRendererTest/NewRendererTest.cpp
|
|
|
|
Classes/NodeTest/NodeTest.cpp
|
|
|
|
Classes/OpenURLTest/OpenURLTest.cpp
|
|
|
|
Classes/ParallaxTest/ParallaxTest.cpp
|
|
|
|
Classes/Particle3DTest/Particle3DTest.cpp
|
|
|
|
Classes/ParticleTest/ParticleTest.cpp
|
|
|
|
Classes/ReleasePoolTest/ReleasePoolTest.cpp
|
|
|
|
Classes/RenderTextureTest/RenderTextureTest.cpp
|
|
|
|
Classes/RotateWorldTest/RotateWorldTest.cpp
|
|
|
|
Classes/SceneTest/SceneTest.cpp
|
|
|
|
Classes/SchedulerTest/SchedulerTest.cpp
|
|
|
|
Classes/ShaderTest/ShaderTest.cpp
|
|
|
|
Classes/ShaderTest/ShaderTest2.cpp
|
|
|
|
Classes/SpineTest/SpineTest.cpp
|
|
|
|
Classes/Scene3DTest/Scene3DTest.cpp
|
|
|
|
Classes/Sprite3DTest/DrawNode3D.cpp
|
|
|
|
Classes/Sprite3DTest/Sprite3DTest.cpp
|
|
|
|
Classes/SpritePolygonTest/SpritePolygonTest.cpp
|
|
|
|
Classes/SpriteTest/SpriteTest.cpp
|
|
|
|
Classes/TerrainTest/TerrainTest.cpp
|
|
|
|
Classes/TextInputTest/TextInputTest.cpp
|
|
|
|
Classes/Texture2dTest/Texture2dTest.cpp
|
|
|
|
Classes/TextureCacheTest/TextureCacheTest.cpp
|
|
|
|
Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.cpp
|
|
|
|
Classes/TileMapTest/TileMapTest.cpp
|
|
|
|
Classes/TileMapTest/TileMapTest2.cpp
|
|
|
|
Classes/TouchesTest/Ball.cpp
|
|
|
|
Classes/TouchesTest/Paddle.cpp
|
|
|
|
Classes/TouchesTest/TouchesTest.cpp
|
|
|
|
Classes/TransitionsTest/TransitionsTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/CocosGUIScene.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIButtonTest/UIButtonTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIRadioButtonTest/UIRadioButtonTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIFocusTest/UIFocusTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UILayoutTest/UILayoutTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIListViewTest/UIListViewTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIScale9SpriteTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIScene.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UISceneManager.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UISliderTest/UISliderTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UITextTest/UITextTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UITabControlTest/UITabControlTest.cpp
|
|
|
|
Classes/UITest/UITest.cpp
|
|
|
|
Classes/UnitTest/RefPtrTest.cpp
|
|
|
|
Classes/UnitTest/UnitTest.cpp
|
|
|
|
Classes/UserDefaultTest/UserDefaultTest.cpp
|
|
|
|
Classes/VisibleRect.cpp
|
|
|
|
Classes/VibrateTest/VibrateTest.cpp
|
|
|
|
Classes/ZwoptexTest/ZwoptexTest.cpp
|
|
|
|
Classes/SpriteFrameCacheTest/SpriteFrameCacheTest.cpp
|
|
|
|
Classes/controller.cpp
|
|
|
|
# Classes/VRTest/VRTest.cpp
|
|
|
|
# Classes/VRTest/VRTest.h
|
|
|
|
)
|
2018-02-08 09:24:33 +08:00
|
|
|
|
|
|
|
if(ANDROID OR IOS)
|
2018-03-14 13:51:29 +08:00
|
|
|
list(APPEND GAME_HEADER
|
2018-05-02 15:33:01 +08:00
|
|
|
Classes/UITest/CocoStudioGUITest/UIVideoPlayerTest/UIVideoPlayerTest.h
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIWebViewTest/UIWebViewTest.h
|
|
|
|
)
|
2018-03-14 13:51:29 +08:00
|
|
|
list(APPEND GAME_SOURCE
|
2018-05-02 15:33:01 +08:00
|
|
|
Classes/UITest/CocoStudioGUITest/UIVideoPlayerTest/UIVideoPlayerTest.cpp
|
|
|
|
Classes/UITest/CocoStudioGUITest/UIWebViewTest/UIWebViewTest.cpp
|
|
|
|
)
|
2018-02-08 09:24:33 +08:00
|
|
|
endif()
|
2013-11-02 18:07:34 +08:00
|
|
|
|
2016-10-31 14:02:02 +08:00
|
|
|
if(WIN32 OR MACOSX OR LINUX)
|
2018-03-14 13:51:29 +08:00
|
|
|
list(APPEND GAME_HEADER
|
2018-05-02 15:33:01 +08:00
|
|
|
Classes/WindowTest/WindowTest.h
|
|
|
|
Classes/BugsTest/Bug-14327.h
|
|
|
|
)
|
2018-03-14 13:51:29 +08:00
|
|
|
list(APPEND GAME_SOURCE
|
2018-05-02 15:33:01 +08:00
|
|
|
Classes/WindowTest/WindowTest.cpp
|
|
|
|
Classes/BugsTest/Bug-14327.cpp
|
|
|
|
)
|
2016-10-31 14:02:02 +08:00
|
|
|
endif()
|
|
|
|
|
2014-11-16 02:16:01 +08:00
|
|
|
if(USE_BOX2D)
|
2018-03-14 13:51:29 +08:00
|
|
|
list(APPEND GAME_HEADER
|
2018-05-02 15:33:01 +08:00
|
|
|
Classes/Box2DTest/Box2dTest.cpp
|
|
|
|
Classes/Box2DTestBed/Test.h
|
|
|
|
Classes/Box2DTestBed/Tests/Chain.h
|
|
|
|
Classes/Box2DTestBed/Tests/Confined.h
|
|
|
|
Classes/Box2DTestBed/Tests/PolyCollision.h
|
|
|
|
Classes/Box2DTestBed/Tests/EdgeTest.h
|
|
|
|
Classes/Box2DTestBed/Tests/ApplyForce.h
|
|
|
|
Classes/Box2DTestBed/Tests/Gears.h
|
|
|
|
Classes/Box2DTestBed/Tests/SliderCrank.h
|
|
|
|
Classes/Box2DTestBed/Tests/ContinuousTest.h
|
|
|
|
Classes/Box2DTestBed/Tests/Revolute.h
|
|
|
|
Classes/Box2DTestBed/Tests/TheoJansen.h
|
|
|
|
Classes/Box2DTestBed/Tests/Bridge.h
|
|
|
|
Classes/Box2DTestBed/Tests/CollisionProcessing.h
|
|
|
|
Classes/Box2DTestBed/Tests/DistanceTest.h
|
|
|
|
Classes/Box2DTestBed/Tests/PolyShapes.h
|
|
|
|
Classes/Box2DTestBed/Tests/TimeOfImpact.h
|
|
|
|
Classes/Box2DTestBed/Tests/ConveyorBelt.h
|
|
|
|
Classes/Box2DTestBed/Tests/Tiles.h
|
|
|
|
Classes/Box2DTestBed/Tests/BulletTest.h
|
|
|
|
Classes/Box2DTestBed/Tests/MotorJoint.h
|
|
|
|
Classes/Box2DTestBed/Tests/Car.h
|
|
|
|
Classes/Box2DTestBed/Tests/Mobile.h
|
|
|
|
Classes/Box2DTestBed/Tests/VaryingFriction.h
|
|
|
|
Classes/Box2DTestBed/Tests/Rope.h
|
|
|
|
Classes/Box2DTestBed/Tests/SensorTest.h
|
|
|
|
Classes/Box2DTestBed/Tests/Pyramid.h
|
|
|
|
Classes/Box2DTestBed/Tests/VaryingRestitution.h
|
|
|
|
Classes/Box2DTestBed/Tests/RopeJoint.h
|
|
|
|
Classes/Box2DTestBed/Tests/VerticalStack.h
|
|
|
|
Classes/Box2DTestBed/Tests/MobileBalanced.h
|
|
|
|
Classes/Box2DTestBed/Tests/CompoundShapes.h
|
|
|
|
Classes/Box2DTestBed/Tests/CollisionFiltering.h
|
|
|
|
Classes/Box2DTestBed/Tests/Pulleys.h
|
|
|
|
Classes/Box2DTestBed/Tests/Breakable.h
|
|
|
|
Classes/Box2DTestBed/Tests/BodyTypes.h
|
|
|
|
Classes/Box2DTestBed/Tests/DumpShell.h
|
|
|
|
Classes/Box2DTestBed/Tests/ShapeEditing.h
|
|
|
|
Classes/Box2DTestBed/Tests/SphereStack.h
|
|
|
|
Classes/Box2DTestBed/Tests/OneSidedPlatform.h
|
|
|
|
Classes/Box2DTestBed/Tests/AddPair.h
|
|
|
|
Classes/Box2DTestBed/Tests/Pinball.h
|
|
|
|
Classes/Box2DTestBed/Tests/Tumbler.h
|
|
|
|
Classes/Box2DTestBed/Tests/RayCast.h
|
|
|
|
Classes/Box2DTestBed/Tests/ConvexHull.h
|
|
|
|
Classes/Box2DTestBed/Tests/EdgeShapes.h
|
|
|
|
Classes/Box2DTestBed/Tests/Prismatic.h
|
|
|
|
Classes/Box2DTestBed/Tests/Dominos.h
|
|
|
|
Classes/Box2DTestBed/Tests/Web.h
|
|
|
|
Classes/Box2DTestBed/Tests/CharacterCollision.h
|
|
|
|
Classes/Box2DTestBed/Tests/DynamicTreeTest.h
|
|
|
|
Classes/Box2DTestBed/Tests/Cantilever.h
|
|
|
|
Classes/Box2DTestBed/Box2dView.h
|
|
|
|
Classes/Box2DTestBed/GLES-Render.h
|
|
|
|
)
|
2018-03-14 13:51:29 +08:00
|
|
|
list(APPEND GAME_SOURCE
|
2018-05-02 15:33:01 +08:00
|
|
|
Classes/Box2DTest/Box2dTest.cpp
|
|
|
|
Classes/Box2DTestBed/Box2dView.cpp
|
|
|
|
Classes/Box2DTestBed/GLES-Render.cpp
|
|
|
|
Classes/Box2DTestBed/Test.cpp
|
|
|
|
Classes/Box2DTestBed/TestEntries.cpp
|
|
|
|
)
|
2018-02-08 09:24:33 +08:00
|
|
|
include_directories(${Box2D_INCLUDE_DIRS})
|
2014-11-16 02:16:01 +08:00
|
|
|
endif()
|
|
|
|
|
2015-05-08 15:49:33 +08:00
|
|
|
if(USE_BULLET)
|
2018-03-14 13:51:29 +08:00
|
|
|
list(APPEND GAME_HEADER
|
2018-05-02 15:33:01 +08:00
|
|
|
Classes/Physics3DTest/Physics3DTest.h
|
|
|
|
Classes/NavMeshTest/NavMeshTest.h
|
|
|
|
)
|
2018-03-14 13:51:29 +08:00
|
|
|
list(APPEND GAME_SOURCE
|
2018-05-02 15:33:01 +08:00
|
|
|
Classes/Physics3DTest/Physics3DTest.cpp
|
|
|
|
Classes/NavMeshTest/NavMeshTest.cpp
|
|
|
|
)
|
2018-02-08 09:24:33 +08:00
|
|
|
include_directories(${BULLET_INCLUDE_DIRS})
|
2015-05-08 15:49:33 +08:00
|
|
|
endif()
|
|
|
|
|
2018-09-25 11:16:04 +08:00
|
|
|
|
|
|
|
if(USE_CHIPMUNK)
|
|
|
|
include_directories(${CHIPMUNK_INCLUDE_DIRS})
|
|
|
|
list(APPEND GAME_HEADER
|
|
|
|
Classes/PhysicsTest/PhysicsTest.h
|
|
|
|
Classes/ChipmunkTest/ChipmunkTest.h
|
|
|
|
)
|
|
|
|
list(APPEND GAME_SOURCE
|
|
|
|
Classes/PhysicsTest/PhysicsTest.cpp
|
|
|
|
Classes/ChipmunkTest/ChipmunkTest.cpp
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
cmake support win32 ,and support generate&use prebuilt libs (#18683)
* fix win32 prebuilt error, and set cmake as default android native build
* cpp-template support msvc
* add msvc version check
* add -D_USRLUASTATIC, fix lua lib cmake compile error
* fix cpp-empty-test res copy dir, add function needed
* improve msvc res copy
* refactor cmake copy dll logic
* fix cpp-tests compile error
* refactor copy dll temp
* refactor win32 exe using dlls
* js-project compile support cmake using msvc
* improve res mark for win32
* update the way of lua project res mark
* add D_USRLUASTATIC for lua project
* unify RELEASE Release to Release, add CMAKE_CONFIGURATION_TYPES
* improve VS shows targets, add folder
* improve mac/ios res mark
* reduce useless comments
* unify cpp src include variable
* refactor cpp test project package logic
* improve pkg app logic
* start support prebuilt libs for cpp project using cmake
* improve prebuilt libs generate
* expand js/lua support prebuilt libs on mac
* adapt IDE generate libs path
* start do prebuilt for android
* improve the way of using external libs for prebuilt
* prebuilt libs support cpp-empty-test on android studio
* cpp-tests prebuilt libs, and remove useless
* start to improve libs using, to adapt prebuilt
* improve cpp tests prebuilt on android
* prebuilt support lua & js test on android
* prebuilt support cpp&js template
* rename prebuilt variabl, detail androd config
* finish android support prebuilt using cmake
* fix cmake script run in windows error
* reduce variable name length
* improve the way of win32 use dlls to adapt prebuilt
* loosen pick js/lua engine lib condition
* self review and start check linux build
* unify compile option location
* strict copy dlls condition
* improve libs link order
* start redo the way of copy dlls
* unify dlls copy logic
* fix linux res copy error
* update cmake copy file path in linux
* make prebuilt dir if needed, and divide Debug and Release dir
* cmake win32 divide Debug and Release dir well
* comment Lua Template project, for the unfinished lua simulator support
* add simulator cmake file
* start support simulator
* simulator support cmake build on macOS
* fix simulator compile error on win32
* add simulator prebuilt support
* improve mark cocos app macro
* improve cmake template project format
* improve cmake app files format
* fix format improve mistake
* detail cmake readme
* improve readme, useless comments
* add game.rc to template project
* check travis openssl version
* try update travis openssl
* upgrade travis openssl
* change openssl link
* change to upgrade openssl
* re install python with upgrade openssl
* add comment for macro and func, improve variable name
2018-03-08 09:47:57 +08:00
|
|
|
if(NOT LINUX)
|
2018-03-14 13:51:29 +08:00
|
|
|
list(APPEND GAME_SOURCE
|
2018-05-02 15:33:01 +08:00
|
|
|
Classes/UITest/CocoStudioGUITest/UIEditBoxTest.cpp
|
|
|
|
)
|
2014-09-10 03:18:31 +08:00
|
|
|
endif()
|
|
|
|
|
cmake support win32 ,and support generate&use prebuilt libs (#18683)
* fix win32 prebuilt error, and set cmake as default android native build
* cpp-template support msvc
* add msvc version check
* add -D_USRLUASTATIC, fix lua lib cmake compile error
* fix cpp-empty-test res copy dir, add function needed
* improve msvc res copy
* refactor cmake copy dll logic
* fix cpp-tests compile error
* refactor copy dll temp
* refactor win32 exe using dlls
* js-project compile support cmake using msvc
* improve res mark for win32
* update the way of lua project res mark
* add D_USRLUASTATIC for lua project
* unify RELEASE Release to Release, add CMAKE_CONFIGURATION_TYPES
* improve VS shows targets, add folder
* improve mac/ios res mark
* reduce useless comments
* unify cpp src include variable
* refactor cpp test project package logic
* improve pkg app logic
* start support prebuilt libs for cpp project using cmake
* improve prebuilt libs generate
* expand js/lua support prebuilt libs on mac
* adapt IDE generate libs path
* start do prebuilt for android
* improve the way of using external libs for prebuilt
* prebuilt libs support cpp-empty-test on android studio
* cpp-tests prebuilt libs, and remove useless
* start to improve libs using, to adapt prebuilt
* improve cpp tests prebuilt on android
* prebuilt support lua & js test on android
* prebuilt support cpp&js template
* rename prebuilt variabl, detail androd config
* finish android support prebuilt using cmake
* fix cmake script run in windows error
* reduce variable name length
* improve the way of win32 use dlls to adapt prebuilt
* loosen pick js/lua engine lib condition
* self review and start check linux build
* unify compile option location
* strict copy dlls condition
* improve libs link order
* start redo the way of copy dlls
* unify dlls copy logic
* fix linux res copy error
* update cmake copy file path in linux
* make prebuilt dir if needed, and divide Debug and Release dir
* cmake win32 divide Debug and Release dir well
* comment Lua Template project, for the unfinished lua simulator support
* add simulator cmake file
* start support simulator
* simulator support cmake build on macOS
* fix simulator compile error on win32
* add simulator prebuilt support
* improve mark cocos app macro
* improve cmake template project format
* improve cmake app files format
* fix format improve mistake
* detail cmake readme
* improve readme, useless comments
* add game.rc to template project
* check travis openssl version
* try update travis openssl
* upgrade travis openssl
* change openssl link
* change to upgrade openssl
* re install python with upgrade openssl
* add comment for macro and func, improve variable name
2018-03-08 09:47:57 +08:00
|
|
|
# mark app complie info and libs info
|
2018-09-25 11:16:04 +08:00
|
|
|
set(all_code_files
|
2018-03-14 13:51:29 +08:00
|
|
|
${GAME_HEADER}
|
|
|
|
${GAME_SOURCE}
|
2018-05-02 15:33:01 +08:00
|
|
|
)
|
2018-09-25 11:16:04 +08:00
|
|
|
|
|
|
|
if(NOT ANDROID)
|
|
|
|
add_executable(${APP_NAME} ${all_code_files})
|
|
|
|
else()
|
|
|
|
add_library(${APP_NAME} SHARED ${all_code_files})
|
|
|
|
add_subdirectory(${COCOS2DX_ROOT_PATH}/cocos/platform/android ${ENGINE_BINARY_PATH}/cocos/platform)
|
|
|
|
target_link_libraries(${APP_NAME} -Wl,--whole-archive cpp_android_spec -Wl,--no-whole-archive)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
target_link_libraries(${APP_NAME} cocos2d)
|
|
|
|
target_include_directories(${APP_NAME}
|
|
|
|
PRIVATE Classes
|
|
|
|
)
|
2014-12-21 21:40:46 +08:00
|
|
|
|
cmake support win32 ,and support generate&use prebuilt libs (#18683)
* fix win32 prebuilt error, and set cmake as default android native build
* cpp-template support msvc
* add msvc version check
* add -D_USRLUASTATIC, fix lua lib cmake compile error
* fix cpp-empty-test res copy dir, add function needed
* improve msvc res copy
* refactor cmake copy dll logic
* fix cpp-tests compile error
* refactor copy dll temp
* refactor win32 exe using dlls
* js-project compile support cmake using msvc
* improve res mark for win32
* update the way of lua project res mark
* add D_USRLUASTATIC for lua project
* unify RELEASE Release to Release, add CMAKE_CONFIGURATION_TYPES
* improve VS shows targets, add folder
* improve mac/ios res mark
* reduce useless comments
* unify cpp src include variable
* refactor cpp test project package logic
* improve pkg app logic
* start support prebuilt libs for cpp project using cmake
* improve prebuilt libs generate
* expand js/lua support prebuilt libs on mac
* adapt IDE generate libs path
* start do prebuilt for android
* improve the way of using external libs for prebuilt
* prebuilt libs support cpp-empty-test on android studio
* cpp-tests prebuilt libs, and remove useless
* start to improve libs using, to adapt prebuilt
* improve cpp tests prebuilt on android
* prebuilt support lua & js test on android
* prebuilt support cpp&js template
* rename prebuilt variabl, detail androd config
* finish android support prebuilt using cmake
* fix cmake script run in windows error
* reduce variable name length
* improve the way of win32 use dlls to adapt prebuilt
* loosen pick js/lua engine lib condition
* self review and start check linux build
* unify compile option location
* strict copy dlls condition
* improve libs link order
* start redo the way of copy dlls
* unify dlls copy logic
* fix linux res copy error
* update cmake copy file path in linux
* make prebuilt dir if needed, and divide Debug and Release dir
* cmake win32 divide Debug and Release dir well
* comment Lua Template project, for the unfinished lua simulator support
* add simulator cmake file
* start support simulator
* simulator support cmake build on macOS
* fix simulator compile error on win32
* add simulator prebuilt support
* improve mark cocos app macro
* improve cmake template project format
* improve cmake app files format
* fix format improve mistake
* detail cmake readme
* improve readme, useless comments
* add game.rc to template project
* check travis openssl version
* try update travis openssl
* upgrade travis openssl
* change openssl link
* change to upgrade openssl
* re install python with upgrade openssl
* add comment for macro and func, improve variable name
2018-03-08 09:47:57 +08:00
|
|
|
# mark app resources
|
2018-09-25 11:16:04 +08:00
|
|
|
setup_cocos_app_config(${APP_NAME})
|
2018-02-08 09:24:33 +08:00
|
|
|
if(APPLE)
|
2018-03-14 13:51:29 +08:00
|
|
|
set_target_properties(${APP_NAME} PROPERTIES RESOURCE "${APP_UI_RES}")
|
2018-02-08 09:24:33 +08:00
|
|
|
if(MACOSX)
|
2018-03-14 13:51:29 +08:00
|
|
|
set_target_properties(${APP_NAME} PROPERTIES
|
2018-05-02 15:33:01 +08:00
|
|
|
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/proj.mac/Info.plist"
|
|
|
|
)
|
2018-02-08 09:24:33 +08:00
|
|
|
elseif(IOS)
|
|
|
|
cocos_pak_xcode(${APP_NAME} INFO_PLIST "iOSBundleInfo.plist.in")
|
2018-04-03 11:18:22 +08:00
|
|
|
set_xcode_property(${APP_NAME} ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon-${APP_NAME}")
|
2018-02-08 09:24:33 +08:00
|
|
|
endif()
|
cmake support win32 ,and support generate&use prebuilt libs (#18683)
* fix win32 prebuilt error, and set cmake as default android native build
* cpp-template support msvc
* add msvc version check
* add -D_USRLUASTATIC, fix lua lib cmake compile error
* fix cpp-empty-test res copy dir, add function needed
* improve msvc res copy
* refactor cmake copy dll logic
* fix cpp-tests compile error
* refactor copy dll temp
* refactor win32 exe using dlls
* js-project compile support cmake using msvc
* improve res mark for win32
* update the way of lua project res mark
* add D_USRLUASTATIC for lua project
* unify RELEASE Release to Release, add CMAKE_CONFIGURATION_TYPES
* improve VS shows targets, add folder
* improve mac/ios res mark
* reduce useless comments
* unify cpp src include variable
* refactor cpp test project package logic
* improve pkg app logic
* start support prebuilt libs for cpp project using cmake
* improve prebuilt libs generate
* expand js/lua support prebuilt libs on mac
* adapt IDE generate libs path
* start do prebuilt for android
* improve the way of using external libs for prebuilt
* prebuilt libs support cpp-empty-test on android studio
* cpp-tests prebuilt libs, and remove useless
* start to improve libs using, to adapt prebuilt
* improve cpp tests prebuilt on android
* prebuilt support lua & js test on android
* prebuilt support cpp&js template
* rename prebuilt variabl, detail androd config
* finish android support prebuilt using cmake
* fix cmake script run in windows error
* reduce variable name length
* improve the way of win32 use dlls to adapt prebuilt
* loosen pick js/lua engine lib condition
* self review and start check linux build
* unify compile option location
* strict copy dlls condition
* improve libs link order
* start redo the way of copy dlls
* unify dlls copy logic
* fix linux res copy error
* update cmake copy file path in linux
* make prebuilt dir if needed, and divide Debug and Release dir
* cmake win32 divide Debug and Release dir well
* comment Lua Template project, for the unfinished lua simulator support
* add simulator cmake file
* start support simulator
* simulator support cmake build on macOS
* fix simulator compile error on win32
* add simulator prebuilt support
* improve mark cocos app macro
* improve cmake template project format
* improve cmake app files format
* fix format improve mistake
* detail cmake readme
* improve readme, useless comments
* add game.rc to template project
* check travis openssl version
* try update travis openssl
* upgrade travis openssl
* change openssl link
* change to upgrade openssl
* re install python with upgrade openssl
* add comment for macro and func, improve variable name
2018-03-08 09:47:57 +08:00
|
|
|
elseif(WINDOWS)
|
2018-05-23 11:23:16 +08:00
|
|
|
cocos_copy_target_dll(${APP_NAME} COPY_TO ${APP_RES_DIR})
|
2014-11-11 14:49:27 +08:00
|
|
|
endif()
|
2013-11-02 18:07:34 +08:00
|
|
|
|
cmake support win32 ,and support generate&use prebuilt libs (#18683)
* fix win32 prebuilt error, and set cmake as default android native build
* cpp-template support msvc
* add msvc version check
* add -D_USRLUASTATIC, fix lua lib cmake compile error
* fix cpp-empty-test res copy dir, add function needed
* improve msvc res copy
* refactor cmake copy dll logic
* fix cpp-tests compile error
* refactor copy dll temp
* refactor win32 exe using dlls
* js-project compile support cmake using msvc
* improve res mark for win32
* update the way of lua project res mark
* add D_USRLUASTATIC for lua project
* unify RELEASE Release to Release, add CMAKE_CONFIGURATION_TYPES
* improve VS shows targets, add folder
* improve mac/ios res mark
* reduce useless comments
* unify cpp src include variable
* refactor cpp test project package logic
* improve pkg app logic
* start support prebuilt libs for cpp project using cmake
* improve prebuilt libs generate
* expand js/lua support prebuilt libs on mac
* adapt IDE generate libs path
* start do prebuilt for android
* improve the way of using external libs for prebuilt
* prebuilt libs support cpp-empty-test on android studio
* cpp-tests prebuilt libs, and remove useless
* start to improve libs using, to adapt prebuilt
* improve cpp tests prebuilt on android
* prebuilt support lua & js test on android
* prebuilt support cpp&js template
* rename prebuilt variabl, detail androd config
* finish android support prebuilt using cmake
* fix cmake script run in windows error
* reduce variable name length
* improve the way of win32 use dlls to adapt prebuilt
* loosen pick js/lua engine lib condition
* self review and start check linux build
* unify compile option location
* strict copy dlls condition
* improve libs link order
* start redo the way of copy dlls
* unify dlls copy logic
* fix linux res copy error
* update cmake copy file path in linux
* make prebuilt dir if needed, and divide Debug and Release dir
* cmake win32 divide Debug and Release dir well
* comment Lua Template project, for the unfinished lua simulator support
* add simulator cmake file
* start support simulator
* simulator support cmake build on macOS
* fix simulator compile error on win32
* add simulator prebuilt support
* improve mark cocos app macro
* improve cmake template project format
* improve cmake app files format
* fix format improve mistake
* detail cmake readme
* improve readme, useless comments
* add game.rc to template project
* check travis openssl version
* try update travis openssl
* upgrade travis openssl
* change openssl link
* change to upgrade openssl
* re install python with upgrade openssl
* add comment for macro and func, improve variable name
2018-03-08 09:47:57 +08:00
|
|
|
if(LINUX OR WINDOWS)
|
2018-05-17 09:07:17 +08:00
|
|
|
cocos_copy_res(COPY_TO ${APP_RES_DIR} FOLDERS ${GAME_RES_FOLDER})
|
cmake support win32 ,and support generate&use prebuilt libs (#18683)
* fix win32 prebuilt error, and set cmake as default android native build
* cpp-template support msvc
* add msvc version check
* add -D_USRLUASTATIC, fix lua lib cmake compile error
* fix cpp-empty-test res copy dir, add function needed
* improve msvc res copy
* refactor cmake copy dll logic
* fix cpp-tests compile error
* refactor copy dll temp
* refactor win32 exe using dlls
* js-project compile support cmake using msvc
* improve res mark for win32
* update the way of lua project res mark
* add D_USRLUASTATIC for lua project
* unify RELEASE Release to Release, add CMAKE_CONFIGURATION_TYPES
* improve VS shows targets, add folder
* improve mac/ios res mark
* reduce useless comments
* unify cpp src include variable
* refactor cpp test project package logic
* improve pkg app logic
* start support prebuilt libs for cpp project using cmake
* improve prebuilt libs generate
* expand js/lua support prebuilt libs on mac
* adapt IDE generate libs path
* start do prebuilt for android
* improve the way of using external libs for prebuilt
* prebuilt libs support cpp-empty-test on android studio
* cpp-tests prebuilt libs, and remove useless
* start to improve libs using, to adapt prebuilt
* improve cpp tests prebuilt on android
* prebuilt support lua & js test on android
* prebuilt support cpp&js template
* rename prebuilt variabl, detail androd config
* finish android support prebuilt using cmake
* fix cmake script run in windows error
* reduce variable name length
* improve the way of win32 use dlls to adapt prebuilt
* loosen pick js/lua engine lib condition
* self review and start check linux build
* unify compile option location
* strict copy dlls condition
* improve libs link order
* start redo the way of copy dlls
* unify dlls copy logic
* fix linux res copy error
* update cmake copy file path in linux
* make prebuilt dir if needed, and divide Debug and Release dir
* cmake win32 divide Debug and Release dir well
* comment Lua Template project, for the unfinished lua simulator support
* add simulator cmake file
* start support simulator
* simulator support cmake build on macOS
* fix simulator compile error on win32
* add simulator prebuilt support
* improve mark cocos app macro
* improve cmake template project format
* improve cmake app files format
* fix format improve mistake
* detail cmake readme
* improve readme, useless comments
* add game.rc to template project
* check travis openssl version
* try update travis openssl
* upgrade travis openssl
* change openssl link
* change to upgrade openssl
* re install python with upgrade openssl
* add comment for macro and func, improve variable name
2018-03-08 09:47:57 +08:00
|
|
|
endif()
|