summaryrefslogtreecommitdiff
path: root/scene/SCsub
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-04-28 19:28:21 +0200
committerRémi Verschelde <rverschelde@gmail.com>2017-04-28 21:19:25 +0200
commitd4029aa51a0f0bce5dc73885af74b592e3aa33b7 (patch)
tree22848a9191aca36a38b6f0bda4c313c3349f2eab /scene/SCsub
parentc5f830d6b90574ef1e34fd2c35a0ebfa1ad92fe6 (diff)
Move other lone thirdparty files to thirdparty/misc
Also move Box2D ConvexDecomposition contrib code to thirdparty/b2d_convexdecomp.
Diffstat (limited to 'scene/SCsub')
-rw-r--r--scene/SCsub19
1 files changed, 17 insertions, 2 deletions
diff --git a/scene/SCsub b/scene/SCsub
index bd2da1eab9..df52e9c6cb 100644
--- a/scene/SCsub
+++ b/scene/SCsub
@@ -3,10 +3,23 @@
Import('env')
env.scene_sources = []
+
+
+# Thirdparty code
+thirdparty_dir = "#thirdparty/misc/"
+thirdparty_sources = [
+ # C sources
+ "mikktspace.c",
+]
+thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
+env.add_source_files(env.scene_sources, thirdparty_sources)
+
+
+# Godot's own sources
env.add_source_files(env.scene_sources, "*.cpp")
-Export('env')
+# Chain load SCsubs
SConscript('main/SCsub')
SConscript('gui/SCsub')
SConscript('3d/SCsub')
@@ -17,6 +30,8 @@ SConscript('resources/SCsub')
SConscript('io/SCsub')
+# Build it all as a library
lib = env.Library("scene", env.scene_sources)
-
env.Prepend(LIBS=[lib])
+
+Export('env')