[cocos2dx] Updated windows build for cocos2d-x v4.

This commit is contained in:
Mario Zechner 2020-02-03 15:52:50 +01:00
parent 0dd2db2627
commit 90c2a19364
2 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,7 @@ Please note the [new prerequisits to compile Cocos2d-x v4 projects on different
#### Windows
1. Install [Visual Studio 2019 Community](https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx)
2. Install CMake via the [Windows installer package](https://cmake.org/download/).
3. Install Python and make sure the `python.exe` is in your `PATH` environment variable. Python is required by cocos2d-x`s build system.
3. Download the Spine Runtimes repository using git (`git clone https://github.com/esotericsoftware/spine-runtimes`) or download it as a zip via the download button above.
4. Run CMake GUI from the start menu
5. Click `Browse Source` and select the directory `spine-runtimes`
@ -98,6 +99,8 @@ Please note the [new prerequisits to compile Cocos2d-x v4 projects on different
9. Right click the `spine-cocos2dx-example` project in the solution explorer and select `Set as Startup Project` from the context menu
10. Click `Local Windows Debugger` to run the example
Make sure to build the example for Windows 32-bit!
#### macOS
1. Install [Xcode](https://developer.apple.com/xcode/)
2. Install [Homebrew](http://brew.sh/)

View File

@ -29,6 +29,7 @@ set(APP_NAME spine-cocos2dx-example)
project(${APP_NAME})
set(BUILD_EDITOR_SPINE OFF CACHE BOOL "Build editor support for spine" FORCE)
set(BUILD_EXTENSIONS OFF CACHE BOOL "Build extensions" FORCE)
if(XCODE)
if(NOT DEFINED CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET)