@@ -210,32 +210,42 @@ function runtime_project_configuration()
210
210
includedirs { " /usr/include/bullet" }
211
211
includedirs { " /usr/include/freetype2" }
212
212
includedirs { " /usr/include/renderdoc" }
213
+ includedirs { " ../third_party/free_image" }
214
+ includedirs { " ../third_party/linux/include" }
213
215
end
214
-
215
216
includedirs { " ../runtime/Core" } -- This is here because clang needs the full pre-compiled header path
216
217
217
218
-- Libraries
218
- libdirs (LIBRARY_DIR )
219
+ if os .target () == " windows" then
220
+ libdirs (LIBRARY_DIR )
221
+ else
222
+ libdirs (" ../third_party/linux/lib" )
223
+ end
219
224
220
- -- "Release"
221
- filter " configurations:release"
222
- debugdir (TARGET_DIR )
223
- targetdir (TARGET_DIR )
225
+ debugdir (TARGET_DIR )
226
+ targetdir (TARGET_DIR )
227
+ if os .target () == " linux" then
224
228
links { " dxcompiler" }
225
229
links { " assimp" }
226
- links { " FreeImageLib " }
230
+ links { " FreeImage " }
227
231
links { " freetype" }
228
- links { " BulletCollision" , " BulletDynamics" , " BulletSoftBody" , " LinearMath" }
229
- links { " SDL3" }
230
- links { " Compressonator_MT" }
231
- links { " OpenImageDenoise" , " OpenImageDenoise_core" , " OpenImageDenoise_utils" }
232
- links { " meshoptimizer" }
233
- links (API_LIBRARIES [ARG_API_GRAPHICS ].release or {})
234
-
232
+ end
233
+ -- "Release"
234
+ filter " configurations:release"
235
+ if os .target () == " windows" then
236
+ links { " dxcompiler" }
237
+ links { " assimp" }
238
+ links { " FreeImageLib" }
239
+ links { " freetype" }
240
+ links { " BulletCollision" , " BulletDynamics" , " BulletSoftBody" , " LinearMath" }
241
+ links { " SDL3" }
242
+ links { " Compressonator_MT" }
243
+ links { " OpenImageDenoise" , " OpenImageDenoise_core" , " OpenImageDenoise_utils" }
244
+ links { " meshoptimizer" }
245
+ links (API_LIBRARIES [ARG_API_GRAPHICS ].release or {})
246
+ end
235
247
-- "Debug"
236
248
filter " configurations:debug"
237
- debugdir (TARGET_DIR )
238
- targetdir (TARGET_DIR )
239
249
if os .target () == " windows" then
240
250
links { " dxcompiler" }
241
251
links { " assimp_debug" }
@@ -247,15 +257,6 @@ function runtime_project_configuration()
247
257
links { " OpenImageDenoise_debug" , " OpenImageDenoise_core_debug" , " OpenImageDenoise_utils_debug" }
248
258
links { " meshoptimizer_debug" }
249
259
links (API_LIBRARIES [ARG_API_GRAPHICS ].debug or {})
250
- else
251
- links { " dxcompiler" }
252
- links { " assimp" }
253
- links { " FreeImageLib" }
254
- links { " freetype" }
255
- links { " BulletCollision" , " BulletDynamics" , " BulletSoftBody" , " LinearMath" }
256
- links { " SDL3" }
257
- links { " Compressonator_MT" }
258
- links { " OpenImageDenoise" , " OpenImageDenoise_core" , " OpenImageDenoise_utils" }
259
260
end
260
261
end
261
262
@@ -305,27 +306,39 @@ function editor_project_configuration()
305
306
end
306
307
307
308
-- Libraries
308
- libdirs (LIBRARY_DIR )
309
+ if os .target () == " windows" then
310
+ libdirs (LIBRARY_DIR )
311
+ else
312
+ libdirs (" ../third_party/linux/lib" )
313
+ end
314
+ targetdir (TARGET_DIR )
315
+ debugdir (TARGET_DIR )
309
316
317
+ if os .target () == " linux" then
318
+ links { " FreeImage" }
319
+ links { " freetype" }
320
+ links { " BulletCollision" , " BulletDynamics" , " BulletSoftBody" , " LinearMath" }
321
+ links { " OpenImageDenoise" }
322
+ links { " freetype" }
323
+ links { " SDL3" }
324
+ links { " meshoptimizer" }
325
+ links { " vulkan" }
326
+ links { " spirv-cross-core" , " spirv-cross-c" , " spirv-cross-cpp" , " spirv-cross-glsl" , " spirv-cross-hlsl" }
327
+ links { " CMP_Compressonator" , " CMP_Core" , " CMP_Core_SSE" , " CMP_Common" , " CMP_Core_AVX" , " CMP_Core_AVX512" }
328
+ end
310
329
-- "Release"
311
330
filter " configurations:release"
312
331
targetname ( EXECUTABLE_NAME )
313
- targetdir (TARGET_DIR )
314
- debugdir (TARGET_DIR )
315
- links { " freetype" }
316
- links { " SDL3" }
317
-
332
+ if os .target () == " windows" then
333
+ links { " freetype" }
334
+ links { " SDL3" }
335
+ end
318
336
-- "Debug"
319
337
filter " configurations:debug"
320
338
targetname ( EXECUTABLE_NAME .. " _debug" )
321
- targetdir (TARGET_DIR )
322
- debugdir (TARGET_DIR )
323
339
if os .target () == " windows" then
324
340
links { " freetype_debug" }
325
341
links { " SDL3_debug" }
326
- else
327
- links { " freetype" }
328
- links { " SDL3" }
329
342
end
330
343
end
331
344
0 commit comments