axmol/core/base/CMakeLists.txt

143 lines
3.1 KiB
CMake
Raw Normal View History

V3 android cmake support, add mac/ios support (#18646) * CMake build improvements * android cmake support * Enable proguard for cocos2d * examples & test cmake support * add android build type param to gradle.properties file * less warnings * update all android configs to recomended settings * fix network cmake error * fix js-tests cmake error * android build config, add cmake * android build config, add cmake * add lua share lib * android lua cmake build fix * fix * luajit test * run fail, still * fix js-warning * correct lua main include * lua test project cmake support android * try to add lua-template cmake support * lua template fix * js_tests support cmake on android * js-tests improve * cmake support js-template * test to realise prebuild * cmake improve, no feature * improve templates cmake * refactor cmake struct * correct cpp-tests cmake * cpp-templates cmake improve * typo fix * cmake struct refator * change default option * adapt new project struct * uniform cmake test style * add_dependencies to support make -j * little struct improve * little fix * adapt cmake bin dir * little improve about cmake version * change build all tests condition * add source_group for Xcode * add mark source files * add more mark source code * add template project to test * add macos info.plist template * add pak macos for all project * lua test icon fix * not consider lua project for now * modify pak method * add another ios toolchain * add ios system library * update ios toolchain, and reduce ios compile errors * reduce error * make ios engine lib compile pass * cpp-empty-test ios bundle * cpp-tests ios support * js-tests ios support * templates project support ios * fix the way of lua-tests package * try to fix lua-template on macOS * comment lua-template sim file * improve display on xcode * update cmake readme * check android compile again * fix android compile error * fix linux cmake res error * update deps version, for cmake * fix lua_template linux compile error * close android cmake support for now * review template android share library name * change PROP_BUILD_TOOLS_VERSION version to 27.0.1 * change android compile version * make `PROP_APP_PLATFORM` back, add comments for android native build * Revert "make `PROP_APP_PLATFORM` back, add comments for android native build" This reverts commit 272ddc19886891b9502cde070753a870c0fdb588.
2018-02-08 09:24:33 +08:00
if(APPLE)
2022-08-11 15:41:10 +08:00
set(_AX_BASE_SPECIFIC_SRC
base/Controller-apple.mm
)
Squashed commit of the following: commit 59e43a3c80f4af8998e4a14f6463bd7a91617d5f Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Mar 2 15:19:48 2016 -0800 uses new naming convention for projects uses _ instead of - commit f97ba56608d48b17909649c8617ba9047b566196 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Mar 2 14:49:22 2016 -0800 fooling cmake for real commit 20c2560f75eab952e5131b484284bf20cb07fe07 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Mar 2 14:43:05 2016 -0800 fooling cmake commit a0ada44bc82941830f6c71219a1492d28c28c306 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Mar 2 14:26:59 2016 -0800 makes CMake for Mac happy commit 656b4f5e2dd741215a4699db979fe1b0dce60298 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Mar 2 13:50:15 2016 -0800 linux fix commit fa98aeac8505c764f4a69f15c8a8ff1123fad2a3 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Mar 2 11:18:18 2016 -0800 links correctly! commit 9c56ce7143d3a35b44d33f246cec093ca9eaa7d9 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Mar 1 17:44:58 2016 -0800 Squashed commit of the following: commit 2ef52723dae44204c047cb177d5a5670fb659c79 Merge: 8a5c998 25cf1f1 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Mar 1 16:54:04 2016 -0800 Merge branch 'v3' into cmake_android commit 8a5c9981192e344fffc9f14be5cb14f66eccfa24 Author: Chaoren Lin <chaorenl@google.com> Date: Thu Feb 11 18:34:46 2016 -0800 Fix module name in Android template to match CMake project. commit be85e19e852a9d5fbd6c58cea60c75fe47a5a576 Author: Chaoren Lin <chaorenl@google.com> Date: Thu Feb 11 18:27:45 2016 -0800 Add missing platform specific source file to CMake project. commit 705389ac6582107a381d0cbc56268eaa98ffc5c3 Author: Chaoren Lin <chaorenl@google.com> Date: Wed Feb 10 19:21:12 2016 -0800 Find AndroidNdkModules.cmake relative to android.toolchain.cmake. commit a10075e2cb30af2e1f9a30da99efac880658ad6b Author: Chaoren Lin <chaorenl@google.com> Date: Wed Feb 10 19:03:11 2016 -0800 Remove cpp-empty-test from project templates. commit e070fcbf210b8628f75785e738202a80a95ac0ff Author: WenhaiLin <wenhai.lin@chukong-inc.com> Date: Mon Aug 31 09:56:03 2015 +0800 Fix CMake for Android Target
2016-03-03 08:51:54 +08:00
elseif(ANDROID)
2022-08-11 15:41:10 +08:00
set(_AX_BASE_SPECIFIC_SRC
base/Controller-android.cpp
)
elseif(LINUX OR WINDOWS)
2022-08-11 15:41:10 +08:00
set(_AX_BASE_SPECIFIC_SRC
base/Controller-linux-win32.cpp
)
Squashed commit of the following: commit 59e43a3c80f4af8998e4a14f6463bd7a91617d5f Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Mar 2 15:19:48 2016 -0800 uses new naming convention for projects uses _ instead of - commit f97ba56608d48b17909649c8617ba9047b566196 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Mar 2 14:49:22 2016 -0800 fooling cmake for real commit 20c2560f75eab952e5131b484284bf20cb07fe07 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Mar 2 14:43:05 2016 -0800 fooling cmake commit a0ada44bc82941830f6c71219a1492d28c28c306 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Mar 2 14:26:59 2016 -0800 makes CMake for Mac happy commit 656b4f5e2dd741215a4699db979fe1b0dce60298 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Mar 2 13:50:15 2016 -0800 linux fix commit fa98aeac8505c764f4a69f15c8a8ff1123fad2a3 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Mar 2 11:18:18 2016 -0800 links correctly! commit 9c56ce7143d3a35b44d33f246cec093ca9eaa7d9 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Mar 1 17:44:58 2016 -0800 Squashed commit of the following: commit 2ef52723dae44204c047cb177d5a5670fb659c79 Merge: 8a5c998 25cf1f1 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Mar 1 16:54:04 2016 -0800 Merge branch 'v3' into cmake_android commit 8a5c9981192e344fffc9f14be5cb14f66eccfa24 Author: Chaoren Lin <chaorenl@google.com> Date: Thu Feb 11 18:34:46 2016 -0800 Fix module name in Android template to match CMake project. commit be85e19e852a9d5fbd6c58cea60c75fe47a5a576 Author: Chaoren Lin <chaorenl@google.com> Date: Thu Feb 11 18:27:45 2016 -0800 Add missing platform specific source file to CMake project. commit 705389ac6582107a381d0cbc56268eaa98ffc5c3 Author: Chaoren Lin <chaorenl@google.com> Date: Wed Feb 10 19:21:12 2016 -0800 Find AndroidNdkModules.cmake relative to android.toolchain.cmake. commit a10075e2cb30af2e1f9a30da99efac880658ad6b Author: Chaoren Lin <chaorenl@google.com> Date: Wed Feb 10 19:03:11 2016 -0800 Remove cpp-empty-test from project templates. commit e070fcbf210b8628f75785e738202a80a95ac0ff Author: WenhaiLin <wenhai.lin@chukong-inc.com> Date: Mon Aug 31 09:56:03 2015 +0800 Fix CMake for Android Target
2016-03-03 08:51:54 +08:00
endif()
2022-08-11 15:41:10 +08:00
set(_AX_BASE_HEADER
base/posix_io.h
2020-02-11 23:54:17 +08:00
base/astc.h
base/pvr.h
2022-02-25 15:04:52 +08:00
base/format.h
base/Value.h
base/EventListenerMouse.h
base/atitc.h
base/EventTouch.h
base/Data.h
base/Macros.h
base/EventAcceleration.h
base/EventListenerKeyboard.h
base/Controller.h
base/Touch.h
base/base64.h
base/EventListenerController.h
base/s3tc.h
base/etc1.h
base/etc2.h
base/GameController.h
base/Console.h
base/Constants.h
base/Event.h
base/Types.h
base/Enums.h
base/AsyncTaskPool.h
base/Random.h
base/Ref.h
base/Profiling.h
base/ObjectFactory.h
base/Properties.h
base/Vector.h
base/EventCustom.h
base/EventKeyboard.h
base/NinePatchImageParser.h
base/EventListenerCustom.h
base/EventDispatcher.h
base/Utils.h
base/EventController.h
base/RefPtr.h
base/Director.h
base/EventListenerFocus.h
base/UserDefault.h
base/Config.h
base/FPSImages.h
base/ZipUtils.h
base/Map.h
base/UTF8.h
base/ScriptSupport.h
base/EventFocus.h
base/Configuration.h
base/Protocols.h
base/TGAlib.h
base/EventMouse.h
base/IMEDelegate.h
base/NS.h
base/AutoreleasePool.h
base/StencilStateManager.h
base/EventListenerTouch.h
base/EventListenerAcceleration.h
base/firePngData.h
base/CArray.h
base/EventListener.h
base/Scheduler.h
base/EventType.h
base/IMEDispatcher.h
)
2022-08-11 15:41:10 +08:00
set(_AX_BASE_SRC
base/AsyncTaskPool.cpp
base/AutoreleasePool.cpp
base/Configuration.cpp
base/Console.cpp
base/Controller.cpp
base/Data.cpp
base/NinePatchImageParser.cpp
base/Director.cpp
base/Event.cpp
base/EventAcceleration.cpp
base/EventController.cpp
base/EventCustom.cpp
base/EventDispatcher.cpp
base/EventFocus.cpp
base/EventKeyboard.cpp
base/EventListener.cpp
base/EventListenerAcceleration.cpp
base/EventListenerController.cpp
base/EventListenerCustom.cpp
base/EventListenerFocus.cpp
base/EventListenerKeyboard.cpp
base/EventListenerMouse.cpp
base/EventListenerTouch.cpp
base/EventMouse.cpp
base/EventTouch.cpp
base/IMEDispatcher.cpp
base/NS.cpp
base/Profiling.cpp
base/Properties.cpp
base/Ref.cpp
base/Scheduler.cpp
base/ScriptSupport.cpp
base/Touch.cpp
base/UserDefault.cpp
base/Value.cpp
base/ObjectFactory.cpp
base/StencilStateManager.cpp
base/TGAlib.cpp
base/ZipUtils.cpp
base/atitc.cpp
base/base64.cpp
base/CArray.cpp
base/FPSImages.cpp
base/Random.cpp
base/Types.cpp
base/UTF8.cpp
base/Utils.cpp
2020-08-04 00:14:35 +08:00
base/SimpleTimer.cpp
base/etc1.cpp
base/etc2.cpp
base/pvr.cpp
base/s3tc.cpp
2020-02-11 23:54:17 +08:00
base/astc.cpp
base/posix_io.cpp
2022-08-11 15:41:10 +08:00
${_AX_BASE_SPECIFIC_SRC}
)