2019-04-03 19:24:00 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
Import('env_modules')
|
|
|
|
|
|
|
|
env_assimp = env_modules.Clone()
|
2019-04-30 13:12:02 +02:00
|
|
|
env_assimp.Prepend(CPPPATH=['#thirdparty/assimp'])
|
|
|
|
env_assimp.Prepend(CPPPATH=['#thirdparty/assimp/include'])
|
|
|
|
env_assimp.Prepend(CPPPATH=['#thirdparty/assimp/code/Importer/IFC'])
|
|
|
|
env_assimp.Prepend(CPPPATH=['#thirdparty/misc'])
|
|
|
|
env_assimp.Prepend(CPPPATH=['#thirdparty/assimp/code'])
|
2019-07-30 00:54:00 +02:00
|
|
|
env_assimp.Prepend(CPPPATH=['#thirdparty/assimp/common'])
|
2019-04-30 13:12:02 +02:00
|
|
|
env_assimp.Prepend(CPPPATH=['#thirdparty/assimp/contrib/irrXML/'])
|
|
|
|
env_assimp.Prepend(CPPPATH=['#thirdparty/assimp/contrib/unzip/'])
|
|
|
|
env_assimp.Prepend(CPPPATH=['#thirdparty/assimp/code/Importer/STEPParser'])
|
|
|
|
env_assimp.Prepend(CPPPATH=['#thirdparty/assimp/'])
|
|
|
|
env_assimp.Prepend(CPPPATH=['#thirdparty/zlib/'])
|
|
|
|
env_assimp.Prepend(CPPPATH=['#thirdparty/assimp/contrib/openddlparser/include'])
|
|
|
|
env_assimp.Prepend(CPPPATH=['#thirdparty/assimp/contrib/rapidjson/include'])
|
|
|
|
env_assimp.Prepend(CPPPATH=['.'])
|
2019-07-03 09:16:20 +02:00
|
|
|
#env_assimp.Append(CPPDEFINES=['ASSIMP_DOUBLE_PRECISION']) # TODO default to what godot is compiled with for future double support
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_BOOST_WORKAROUND'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['OPENDDLPARSER_BUILD'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_OWN_ZLIB'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_EXPORT'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_X_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_AMF_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_3DS_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_MD3_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_MD5_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_MDL_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_MD2_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_PLY_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_ASE_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_OBJ_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_HMP_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_SMD_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_MDC_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_MD5_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_STL_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_LWO_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_DXF_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_NFF_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_RAW_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_SIB_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_OFF_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_AC_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_BVH_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_IRRMESH_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_IRR_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_Q3D_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_B3D_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_COLLADA_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_TERRAGEN_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_CSM_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_3D_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_LWS_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_OGRE_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_OPENGEX_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_MS3D_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_COB_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_BLEND_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_Q3BSP_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_NDO_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_STEP_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_IFC_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_XGL_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_ASSBIN_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_C4D_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_3MF_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_X3D_IMPORTER'])
|
2019-07-30 00:54:00 +02:00
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_GLTF_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_GLTF2_IMPORTER'])
|
2019-07-03 09:16:20 +02:00
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_SINGLETHREADED'])
|
2019-11-05 18:06:06 +01:00
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_M3D_IMPORTER'])
|
|
|
|
env_assimp.Append(CPPDEFINES=['ASSIMP_BUILD_NO_MMD_IMPORTER'])
|
|
|
|
|
2019-04-03 19:24:00 +02:00
|
|
|
|
|
|
|
if(env['platform'] == 'windows'):
|
2019-07-03 09:16:20 +02:00
|
|
|
env_assimp.Append(CPPDEFINES=['PLATFORM_WINDOWS'])
|
|
|
|
env_assimp.Append(CPPDEFINES=[('PLATFORM', 'WINDOWS')])
|
2019-04-03 19:24:00 +02:00
|
|
|
elif(env['platform'] == 'x11'):
|
2019-07-03 09:16:20 +02:00
|
|
|
env_assimp.Append(CPPDEFINES=['PLATFORM_LINUX'])
|
|
|
|
env_assimp.Append(CPPDEFINES=[('PLATFORM', 'LINUX')])
|
2019-04-03 19:24:00 +02:00
|
|
|
elif(env['platform'] == 'osx'):
|
2019-07-03 09:16:20 +02:00
|
|
|
env_assimp.Append(CPPDEFINES=['PLATFORM_DARWIN'])
|
|
|
|
env_assimp.Append(CPPDEFINES=[('PLATFORM', 'DARWIN')])
|
2019-04-03 19:24:00 +02:00
|
|
|
|
|
|
|
env_thirdparty = env_assimp.Clone()
|
|
|
|
env_thirdparty.disable_warnings()
|
2019-07-30 00:54:00 +02:00
|
|
|
env_thirdparty.add_source_files(env.modules_sources, Glob('#thirdparty/assimp/code/Common/*.cpp'))
|
|
|
|
env_thirdparty.add_source_files(env.modules_sources, Glob('#thirdparty/assimp/code/PostProcessing/*.cpp'))
|
|
|
|
env_thirdparty.add_source_files(env.modules_sources, Glob('#thirdparty/assimp/code/Material/*.cpp'))
|
|
|
|
env_thirdparty.add_source_files(env.modules_sources, Glob('#thirdparty/assimp/code/FBX/*.cpp'))
|
|
|
|
env_thirdparty.add_source_files(env.modules_sources, Glob('#thirdparty/assimp/code/MMD/*.cpp'))
|
|
|
|
env_thirdparty.add_source_files(env.modules_sources, Glob('#thirdparty/assimp/code/glTF/*.cpp'))
|
|
|
|
env_thirdparty.add_source_files(env.modules_sources, Glob('#thirdparty/assimp/code/glTF2/*.cpp'))
|
2019-04-03 19:24:00 +02:00
|
|
|
|
|
|
|
# Godot's own source files
|
|
|
|
env_assimp.add_source_files(env.modules_sources, "*.cpp")
|