squish: Move to a module and split thirdparty lib

(cherry picked from commit 8311a78df5)
This commit is contained in:
Rémi Verschelde
2016-10-13 21:48:06 +02:00
parent 4ff4177acc
commit 1022705707
37 changed files with 145 additions and 60 deletions

27
modules/squish/SCsub Normal file
View File

@@ -0,0 +1,27 @@
Import('env')
Import('env_modules')
env_squish = env_modules.Clone()
# Thirdparty source files
if (env["squish"] != "system"): # builtin
thirdparty_dir = "#thirdparty/squish/"
thirdparty_sources = [
"alpha.cpp",
"clusterfit.cpp",
"colourblock.cpp",
"colourfit.cpp",
"colourset.cpp",
"maths.cpp",
"rangefit.cpp",
"singlecolourfit.cpp",
"squish.cpp",
]
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
env_squish.add_source_files(env.modules_sources, thirdparty_sources)
env_squish.Append(CPPPATH = [thirdparty_dir])
# Godot source files
env_squish.add_source_files(env.modules_sources, "*.cpp")