mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[cocos2dx] Updated windows build for cocos2d-x v4.
This commit is contained in:
parent
0dd2db2627
commit
90c2a19364
@ -87,6 +87,7 @@ Please note the [new prerequisits to compile Cocos2d-x v4 projects on different
|
|||||||
#### Windows
|
#### Windows
|
||||||
1. Install [Visual Studio 2019 Community](https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx)
|
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/).
|
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.
|
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
|
4. Run CMake GUI from the start menu
|
||||||
5. Click `Browse Source` and select the directory `spine-runtimes`
|
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
|
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
|
10. Click `Local Windows Debugger` to run the example
|
||||||
|
|
||||||
|
Make sure to build the example for Windows 32-bit!
|
||||||
|
|
||||||
#### macOS
|
#### macOS
|
||||||
1. Install [Xcode](https://developer.apple.com/xcode/)
|
1. Install [Xcode](https://developer.apple.com/xcode/)
|
||||||
2. Install [Homebrew](http://brew.sh/)
|
2. Install [Homebrew](http://brew.sh/)
|
||||||
|
|||||||
@ -29,6 +29,7 @@ set(APP_NAME spine-cocos2dx-example)
|
|||||||
|
|
||||||
project(${APP_NAME})
|
project(${APP_NAME})
|
||||||
set(BUILD_EDITOR_SPINE OFF CACHE BOOL "Build editor support for spine" FORCE)
|
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(XCODE)
|
||||||
if(NOT DEFINED CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET)
|
if(NOT DEFINED CMAKE_XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user