2016-05-01 06:00:02 -07:00
|
|
|
Import('env')
|
2019-05-29 16:45:19 -07:00
|
|
|
Import('env_modules')
|
2016-05-01 06:00:02 -07:00
|
|
|
|
2019-05-29 16:45:19 -07:00
|
|
|
env_voxel = env_modules.Clone()
|
2016-05-01 06:00:02 -07:00
|
|
|
|
2019-05-29 16:45:19 -07:00
|
|
|
files = [
|
|
|
|
"*.cpp",
|
|
|
|
"meshers/blocky/*.cpp",
|
|
|
|
"meshers/transvoxel/*.cpp",
|
|
|
|
"meshers/dmc/*.cpp",
|
2019-12-23 13:41:30 -08:00
|
|
|
"meshers/mc/*.cpp",
|
2019-05-29 16:45:19 -07:00
|
|
|
"meshers/*.cpp",
|
|
|
|
"streams/*.cpp",
|
|
|
|
"util/*.cpp",
|
|
|
|
"terrain/*.cpp",
|
2019-08-17 10:15:16 -07:00
|
|
|
"math/*.cpp",
|
2019-08-24 15:07:17 -07:00
|
|
|
"thirdparty/lz4/*.c"
|
2019-05-29 16:45:19 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
for f in files:
|
|
|
|
env_voxel.add_source_files(env.modules_sources, f)
|
|
|
|
|
|
|
|
# Doesn't work, because reasons
|
|
|
|
#if env.msvc:
|
|
|
|
# env_voxel.Append(CXXFLAGS=['/std:c++17'])
|
|
|
|
#else:
|
|
|
|
# env_voxel.Append(CXXFLAGS=['-std=c++17'])
|
2019-08-23 14:49:43 -07:00
|
|
|
|
|
|
|
# This also doesn't work, since the rest of Godot doesn't use this, linking fails.
|
|
|
|
# No safe STL boundary checks for you.
|
|
|
|
#if env['target'] == 'debug':
|
|
|
|
# if env.msvc:
|
|
|
|
# # Enable STL bound checks, Godot's master environment doesn't do it
|
|
|
|
# env_voxel.Append(CXXFLAGS=['/D_DEBUG'])
|