-
Notifications
You must be signed in to change notification settings - Fork 23
/
premake5.lua
154 lines (143 loc) · 5.2 KB
/
premake5.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
project "assimp"
kind "StaticLib"
language "C++"
cppdialect "C++17"
staticruntime "on"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
defines {
-- "SWIG",
"ASSIMP_BUILD_NO_OWN_ZLIB",
"ASSIMP_BUILD_NO_X_IMPORTER",
"ASSIMP_BUILD_NO_3DS_IMPORTER",
"ASSIMP_BUILD_NO_MD3_IMPORTER",
"ASSIMP_BUILD_NO_MDL_IMPORTER",
"ASSIMP_BUILD_NO_MD2_IMPORTER",
-- "ASSIMP_BUILD_NO_PLY_IMPORTER",
"ASSIMP_BUILD_NO_ASE_IMPORTER",
-- "ASSIMP_BUILD_NO_OBJ_IMPORTER",
"ASSIMP_BUILD_NO_AMF_IMPORTER",
"ASSIMP_BUILD_NO_HMP_IMPORTER",
"ASSIMP_BUILD_NO_SMD_IMPORTER",
"ASSIMP_BUILD_NO_MDC_IMPORTER",
"ASSIMP_BUILD_NO_MD5_IMPORTER",
"ASSIMP_BUILD_NO_STL_IMPORTER",
"ASSIMP_BUILD_NO_LWO_IMPORTER",
"ASSIMP_BUILD_NO_DXF_IMPORTER",
"ASSIMP_BUILD_NO_NFF_IMPORTER",
"ASSIMP_BUILD_NO_RAW_IMPORTER",
"ASSIMP_BUILD_NO_OFF_IMPORTER",
"ASSIMP_BUILD_NO_AC_IMPORTER",
"ASSIMP_BUILD_NO_BVH_IMPORTER",
"ASSIMP_BUILD_NO_IRRMESH_IMPORTER",
"ASSIMP_BUILD_NO_IRR_IMPORTER",
"ASSIMP_BUILD_NO_Q3D_IMPORTER",
"ASSIMP_BUILD_NO_B3D_IMPORTER",
-- "ASSIMP_BUILD_NO_COLLADA_IMPORTER",
"ASSIMP_BUILD_NO_TERRAGEN_IMPORTER",
"ASSIMP_BUILD_NO_CSM_IMPORTER",
"ASSIMP_BUILD_NO_3D_IMPORTER",
"ASSIMP_BUILD_NO_LWS_IMPORTER",
"ASSIMP_BUILD_NO_OGRE_IMPORTER",
"ASSIMP_BUILD_NO_OPENGEX_IMPORTER",
"ASSIMP_BUILD_NO_MS3D_IMPORTER",
"ASSIMP_BUILD_NO_COB_IMPORTER",
"ASSIMP_BUILD_NO_BLEND_IMPORTER",
"ASSIMP_BUILD_NO_Q3BSP_IMPORTER",
"ASSIMP_BUILD_NO_NDO_IMPORTER",
"ASSIMP_BUILD_NO_IFC_IMPORTER",
"ASSIMP_BUILD_NO_XGL_IMPORTER",
"ASSIMP_BUILD_NO_FBX_IMPORTER",
"ASSIMP_BUILD_NO_ASSBIN_IMPORTER",
-- "ASSIMP_BUILD_NO_GLTF_IMPORTER",
"ASSIMP_BUILD_NO_C4D_IMPORTER",
"ASSIMP_BUILD_NO_3MF_IMPORTER",
"ASSIMP_BUILD_NO_X3D_IMPORTER",
"ASSIMP_BUILD_NO_MMD_IMPORTER",
"ASSIMP_BUILD_NO_STEP_EXPORTER",
"ASSIMP_BUILD_NO_SIB_IMPORTER",
-- "ASSIMP_BUILD_NO_MAKELEFTHANDED_PROCESS",
-- "ASSIMP_BUILD_NO_FLIPUVS_PROCESS",
-- "ASSIMP_BUILD_NO_FLIPWINDINGORDER_PROCESS",
-- "ASSIMP_BUILD_NO_CALCTANGENTS_PROCESS",
"ASSIMP_BUILD_NO_JOINVERTICES_PROCESS",
-- "ASSIMP_BUILD_NO_TRIANGULATE_PROCESS",
"ASSIMP_BUILD_NO_GENFACENORMALS_PROCESS",
-- "ASSIMP_BUILD_NO_GENVERTEXNORMALS_PROCESS",
"ASSIMP_BUILD_NO_REMOVEVC_PROCESS",
"ASSIMP_BUILD_NO_SPLITLARGEMESHES_PROCESS",
"ASSIMP_BUILD_NO_PRETRANSFORMVERTICES_PROCESS",
"ASSIMP_BUILD_NO_LIMITBONEWEIGHTS_PROCESS",
-- "ASSIMP_BUILD_NO_VALIDATEDS_PROCESS",
"ASSIMP_BUILD_NO_IMPROVECACHELOCALITY_PROCESS",
"ASSIMP_BUILD_NO_FIXINFACINGNORMALS_PROCESS",
"ASSIMP_BUILD_NO_REMOVE_REDUNDANTMATERIALS_PROCESS",
"ASSIMP_BUILD_NO_FINDINVALIDDATA_PROCESS",
"ASSIMP_BUILD_NO_FINDDEGENERATES_PROCESS",
"ASSIMP_BUILD_NO_SORTBYPTYPE_PROCESS",
"ASSIMP_BUILD_NO_GENUVCOORDS_PROCESS",
"ASSIMP_BUILD_NO_TRANSFORMTEXCOORDS_PROCESS",
"ASSIMP_BUILD_NO_FINDINSTANCES_PROCESS",
"ASSIMP_BUILD_NO_OPTIMIZEMESHES_PROCESS",
"ASSIMP_BUILD_NO_OPTIMIZEGRAPH_PROCESS",
"ASSIMP_BUILD_NO_SPLITBYBONECOUNT_PROCESS",
"ASSIMP_BUILD_NO_DEBONE_PROCESS",
"ASSIMP_BUILD_NO_EMBEDTEXTURES_PROCESS",
"ASSIMP_BUILD_NO_GLOBALSCALE_PROCESS",
}
files {
"include/**",
"code/Assimp.cpp",
"code/BaseImporter.cpp",
"code/ColladaLoader.cpp",
"code/ColladaParser.cpp",
"code/CreateAnimMesh.cpp",
"code/PlyParser.cpp",
"code/PlyLoader.cpp",
"code/BaseProcess.cpp",
"code/EmbedTexturesProcess.cpp",
"code/ConvertToLHProcess.cpp",
"code/DefaultIOStream.cpp",
"code/DefaultIOSystem.cpp",
"code/DefaultLogger.cpp",
"code/GenVertexNormalsProcess.cpp",
"code/Importer.cpp",
"code/ImporterRegistry.cpp",
"code/MaterialSystem.cpp",
"code/PostStepRegistry.cpp",
"code/ProcessHelper.cpp",
"code/scene.cpp",
"code/ScenePreprocessor.cpp",
"code/ScaleProcess.cpp",
"code/SGSpatialSort.cpp",
"code/SkeletonMeshBuilder.cpp",
"code/SpatialSort.cpp",
"code/TriangulateProcess.cpp",
"code/ValidateDataStructure.cpp",
"code/Version.cpp",
"code/VertexTriangleAdjacency.cpp",
"code/ObjFileImporter.cpp",
"code/ObjFileMtlImporter.cpp",
"code/ObjFileParser.cpp",
"code/glTFImporter.cpp",
"code/glTF2Importer.cpp",
"code/MakeVerboseFormat.cpp",
"code/CalcTangentsProcess.cpp",
"code/ScaleProcess.cpp",
"code/EmbedTexturesProcess.cpp",
"contrib/irrXML/*",
}
includedirs {
"include",
"contrib/irrXML",
"contrib/zlib",
"contrib/rapidjson/include",
}
filter "system:windows"
systemversion "latest"
filter "configurations:Debug"
runtime "Debug"
symbols "on"
filter "configurations:Release"
runtime "Release"
optimize "on"