mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[godot] Fix CPPPATH for spine-cpp
This commit is contained in:
parent
b277deb26b
commit
b0a824a24c
@ -14,13 +14,13 @@ For the official legal terms governing the Spine Runtimes, please read the [Spin
|
|||||||
|
|
||||||
## Spine version
|
## Spine version
|
||||||
|
|
||||||
spine-godot works with data exported from Spine 4.0.xx.
|
spine-godot works with data exported from Spine 4.2.xx.
|
||||||
|
|
||||||
spine-godot supports all Spine features.
|
spine-godot supports all Spine features, except two-color tinting and the screen blend mode.
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
spine-godot works with the latest stable Godot 3.3 release. It requires compilation of Godot, as spine-godot is implemented as a module.
|
spine-godot works with the latest stable Godot 3.4 release. It requires compilation of Godot, as spine-godot is implemented as a module.
|
||||||
|
|
||||||
To integrate spine-godot into your project:
|
To integrate spine-godot into your project:
|
||||||
|
|
||||||
@ -32,7 +32,16 @@ To integrate spine-godot into your project:
|
|||||||
The resulting Godot engine binary will include the spine-godot runtime.
|
The resulting Godot engine binary will include the spine-godot runtime.
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
The Spine Godot example work on all platforms supported by Godot.
|
Install the [software required to build Godot] for your operating system. This generally means:
|
||||||
|
|
||||||
|
1. Git
|
||||||
|
1. A C++ compiler (MSVC, Clang, GCC)
|
||||||
|
1. Python 3+
|
||||||
|
1. Scons
|
||||||
|
|
||||||
|
Then execute the `setup.bat` file on Windows, or the `setup.sh` file on Linux and macOS. After the script completes, you should find the Godot editor binary in `spine-runtimes/spine-godot/godot/bin`. Run it, and open the Godot example project in `spine-runtimes/spine-godot/example`.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -4,4 +4,4 @@ git clone --depth 1 https://github.com/godotengine/godot.git -b 3.4.4-stable
|
|||||||
xcopy /E /I .idea godot\.idea
|
xcopy /E /I .idea godot\.idea
|
||||||
copy custom.py godot
|
copy custom.py godot
|
||||||
xcopy /E /I ..\spine-cpp\spine-cpp spine_godot\spine-cpp
|
xcopy /E /I ..\spine-cpp\spine-cpp spine_godot\spine-cpp
|
||||||
cd godot & scons target=debug custom_modules=../spine_godot vsproj=yes --jobs=8 & cd ..
|
cd godot & scons target=debug custom_modules=..\spine_godot vsproj=yes --jobs=16 & cd ..
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
Import('env')
|
Import('env')
|
||||||
|
|
||||||
env_spine_runtime = env.Clone()
|
env_spine_runtime = env.Clone()
|
||||||
|
env.Append(CPPPATH=["#../spine_godot/spine-cpp/include"])
|
||||||
env_spine_runtime.Prepend(CPPPATH=["spine-cpp/include", "spine_godot/spine-cpp/include"])
|
|
||||||
env_spine_runtime.add_source_files(env.modules_sources, "spine-cpp/src/spine/*.cpp")
|
env_spine_runtime.add_source_files(env.modules_sources, "spine-cpp/src/spine/*.cpp")
|
||||||
env_spine_runtime.add_source_files(env.modules_sources, "*.cpp")
|
env_spine_runtime.add_source_files(env.modules_sources, "*.cpp")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user