浏览代码

[godot] Fix CPPPATH for spine-cpp

badlogic 3 年之前
父节点
当前提交
b0a824a24c
共有 3 个文件被更改,包括 15 次插入7 次删除
  1. 13 4
      spine-godot/README.md
  2. 1 1
      spine-godot/setup.bat
  3. 1 2
      spine-godot/spine_godot/SCsub

+ 13 - 4
spine-godot/README.md

@@ -14,13 +14,13 @@ For the official legal terms governing the Spine Runtimes, please read the [Spin
 
 ## 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
 
-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:
 
@@ -32,7 +32,16 @@ To integrate spine-godot into your project:
 The resulting Godot engine binary will include the spine-godot runtime.
 
 ## 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`.
+
+
 
 
 

+ 1 - 1
spine-godot/setup.bat

@@ -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
 copy custom.py godot
 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 - 2
spine-godot/spine_godot/SCsub

@@ -1,7 +1,6 @@
 Import('env')
 
 env_spine_runtime = env.Clone()
-
-env_spine_runtime.Prepend(CPPPATH=["spine-cpp/include", "spine_godot/spine-cpp/include"])
+env.Append(CPPPATH=["#../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, "*.cpp")