|
257 | 257 | pl.add_compiler_flags("-Zc:preprocessor", "-nologo", "-std:c11", "-W4", "-WX", "-wd4201", |
258 | 258 | "-wd4100", "-wd4996", "-wd4505", "-wd4189", "-wd5105", "-wd4115", |
259 | 259 | "-permissive-", "-Od", "-MDd", "-Zi") |
260 | | - pl.set_post_target_build_step('@copy "%VULKAN_SDK%\\bin\\spirv-cross-c-shared.dll" "..\\pilotlight\\" >nul\n') |
| 260 | + pl.set_post_target_build_step( |
| 261 | + '@copy "%VULKAN_SDK%\\bin\\spirv-cross-c-shared.dll" "..\\pilotlight\\" >nul\n' |
| 262 | + '@copy "..\\dependencies\\cpython\\PCbuild\\amd64\\python314_d.dll" "..\\out\\" >nul\n' |
| 263 | + '@copy "..\\dependencies\\cpython\\PCbuild\\amd64\\python314.dll" "..\\out\\" >nul\n' |
| 264 | + '@copy "..\\dependencies\\cpython\\PCbuild\\amd64\\python3.dll" "..\\out\\" >nul\n' |
| 265 | + '@copy "..\\dependencies\\cpython\\PCbuild\\amd64\\python3_d.dll" "..\\out\\" >nul\n' |
| 266 | + ) |
| 267 | + |
261 | 268 |
|
262 | 269 | with pl.platform("Linux"): |
263 | 270 | with pl.compiler("gcc"): |
|
297 | 304 | "-permissive-", "-Od", "-MD", "-Zi") |
298 | 305 | pl.set_post_target_build_step('@copy "%VULKAN_SDK%\\bin\\spirv-cross-c-shared.dll" "..\\pilotlight\\" >nul\n') |
299 | 306 |
|
| 307 | + with pl.platform("Linux"): |
| 308 | + with pl.compiler("gcc"): |
| 309 | + pl.add_definitions("PL_VULKAN_BACKEND") |
| 310 | + pl.add_include_directories('$VULKAN_SDK/include', '/usr/include/vulkan') |
| 311 | + pl.set_output_binary_extension(".so") |
| 312 | + pl.add_compiler_flags("-fPIC") |
| 313 | + pl.add_compiler_flags("--debug -g") |
| 314 | + pl.add_linker_flags("-ldl -lm") |
| 315 | + pl.add_dynamic_link_libraries("shaderc_shared", "spirv-cross-c-shared", "vulkan") |
| 316 | + pl.add_static_link_libraries("glfwd", "pl_platform_ext") |
| 317 | + pl.add_link_directories("../dependencies/cpython/build/debug/", '$VULKAN_SDK/lib') |
300 | 318 |
|
301 | 319 | #----------------------------------------------------------------------------- |
302 | 320 | # [SECTION] generate scripts |
|
0 commit comments