[godot] Fix include paths.

This commit is contained in:
badlogic 2022-04-11 22:45:45 +02:00
parent 58279b2b4a
commit 8759370947
2 changed files with 3 additions and 1 deletions

View File

@ -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 & git apply ../livepp.patch scons target=debug custom_modules=..\spine_godot vsproj=yes --jobs=16 & cd ..
cd godot & git apply ../livepp.patch & scons target=debug custom_modules=..\spine_godot vsproj=yes --jobs=16 & cd ..

View File

@ -1,6 +1,8 @@
Import('env')
env_spine_runtime = env.Clone()
# Need to add the include path to env so the vsproj generator consumes it.
env.Append(CPPPATH=["#../spine_godot/spine-cpp/include"])
env_spine_runtime.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")