-
-
Save dcerisano/76c591094feec96142f0d9ebc58d845d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "variables": { | |
| "root": "../../..", | |
| "platform": "<(OS)", | |
| "build": "<@(module_root_dir)/build", | |
| "release": "<(build)/Release", | |
| "dawn": "{{ DAWN_PATH | safe }}", | |
| "vkSDK": ["platform == 'win'", "C:/VulkanSDK/1.1.126.0"], | |
| "vkSDK": ["platform == 'linux'", "/usr/bin"], | |
| "vkSDK": ["platform == 'mac'", ""], | |
| }, | |
| "conditions": [ | |
| [ "platform == 'win'", { "variables": { "platform": "win" } } ], | |
| [ "platform == 'linux'", { "variables": { "platform": "linux" } } ], | |
| [ "platform == 'mac'", { "variables": { "platform": "darwin" } } ] | |
| ], | |
| "make_global_settings": [ | |
| ['CXX','/usr/bin/clang++'], | |
| ['LINK','/usr/bin/clang++'], | |
| ], | |
| "targets": [ | |
| { | |
| "target_name": "action_after_build", | |
| "type": "none", | |
| "conditions": [] | |
| }, | |
| { | |
| "sources": [ | |
| {{ SOURCE_INCLUDES | safe }} | |
| ], | |
| "conditions": [ | |
| [ | |
| "OS=='win'", | |
| { | |
| "target_name": "addon-win32", | |
| "cflags!": [ | |
| "-fno-exceptions" | |
| ], | |
| "cflags_cc!": [ | |
| "-fno-exceptions" | |
| ], | |
| "include_dirs": [ | |
| "<!@(node -p \"require('node-addon-api').include\")", | |
| "<(vkSDK)/include", | |
| "<(root)/lib/include", | |
| "<(dawn)/src/include", | |
| "<(dawn)/out/Shared/gen", | |
| "<(dawn)/out/Shared/gen/src/include", | |
| "<(dawn)/third_party/shaderc/libshaderc/include", | |
| "<(dawn)/third_party/shaderc/libshaderc/src/shaderc.cc", | |
| "<(dawn)/third_party/shaderc/libshaderc/src/shaderc_private.h" | |
| ], | |
| "library_dirs": [ | |
| "<(root)/lib/<(platform)/<(target_arch)/GLFW", | |
| "<(build)/", | |
| "/usr/lib/x86_64-linux-gnu" | |
| ], | |
| "link_settings": { | |
| "libraries": [ | |
| "-lvulkan-1.lib", | |
| "-lglfw3dll.lib", | |
| "-llibdawn_native.dll.lib", | |
| "-llibdawn_proc.dll.lib", | |
| "-llibdawn_wire.dll.lib", | |
| "-llibshaderc.dll.lib", | |
| "-llibshaderc_spvc.dll.lib" | |
| ] | |
| }, | |
| "defines": [ | |
| "WIN32_LEAN_AND_MEAN", | |
| "NOMINMAX", | |
| "_UNICODE", | |
| "UNICODE", | |
| "DAWN_ENABLE_BACKEND_D3D12", | |
| "DAWN_ENABLE_BACKEND_NULL", | |
| "DAWN_ENABLE_BACKEND_VULKAN", | |
| "DAWN_NATIVE_SHARED_LIBRARY", | |
| "DAWN_WIRE_SHARED_LIBRARY", | |
| "WGPU_SHARED_LIBRARY", | |
| "_GLFW_WIN32", | |
| "VK_USE_PLATFORM_WIN32_KHR", | |
| "NAPI_CPP_EXCEPTIONS" | |
| ], | |
| "msvs_settings": { | |
| "VCCLCompilerTool": { | |
| "AdditionalOptions": ["/MP /EHsc"], | |
| "ExceptionHandling": 1 | |
| }, | |
| "VCLibrarianTool": { | |
| "AdditionalOptions" : [] | |
| }, | |
| "VCLinkerTool": { | |
| "AdditionalLibraryDirectories": [ | |
| "../@PROJECT_SOURCE_DIR@/lib/<(platform)/<(target_arch)", | |
| "<(build)/" | |
| ] | |
| } | |
| } | |
| } | |
| ], | |
| [ | |
| "OS=='linux'", | |
| { | |
| "target_name": "addon-linux", | |
| "cflags!": [ | |
| "-fno-exceptions" | |
| ], | |
| "cflags_cc!": [ | |
| "-fno-exceptions" | |
| ], | |
| "include_dirs": [ | |
| "<!@(node -p \"require('node-addon-api').include\")", | |
| "<(vkSDK)/include", | |
| "<(root)/lib/include", | |
| "<(dawn)/build/linux/debian_sid_amd64-sysroot/usr/include", | |
| "<(dawn)/generator/templates", | |
| "<(dawn)/src/include", | |
| "<(dawn)/out/Shared/gen", | |
| "<(dawn)/out/Shared/gen/src/include", | |
| "<(dawn)/third_party/shaderc/libshaderc/include", | |
| "<(dawn)/third_party/shaderc/libshaderc/src/shaderc.cc", | |
| "<(dawn)/third_party/shaderc/libshaderc/src/shaderc_private.h" | |
| ], | |
| "library_dirs": [ | |
| "<(root)/lib/<(platform)/<(target_arch)/GLFW", | |
| "<(build)/", | |
| "<(vkSDK)/lib" | |
| ], | |
| "link_settings": { | |
| "libraries": [ | |
| "-lvulkan-1.lib", | |
| "-lglfw3dll.lib", | |
| "-llibdawn_native.dll.lib", | |
| "-llibdawn_proc.dll.lib", | |
| "-llibdawn_wire.dll.lib", | |
| "-llibshaderc.dll.lib", | |
| "-llibshaderc_spvc.dll.lib" | |
| ] | |
| }, | |
| "defines": [ | |
| "WIN32_LEAN_AND_MEAN", | |
| "NOMINMAX", | |
| "_UNICODE", | |
| "UNICODE", | |
| "DAWN_ENABLE_BACKEND_D3D12", | |
| "DAWN_ENABLE_BACKEND_NULL", | |
| "DAWN_ENABLE_BACKEND_VULKAN", | |
| "DAWN_NATIVE_SHARED_LIBRARY", | |
| "DAWN_WIRE_SHARED_LIBRARY", | |
| "WGPU_SHARED_LIBRARY", | |
| "_GLFW_WIN32", | |
| "VK_USE_PLATFORM_WIN32_KHR", | |
| "NAPI_CPP_EXCEPTIONS" | |
| ], | |
| "msvs_settings": { | |
| "VCCLCompilerTool": { | |
| "AdditionalOptions": ["/MP /EHsc"], | |
| "ExceptionHandling": 1 | |
| }, | |
| "VCLibrarianTool": { | |
| "AdditionalOptions" : [] | |
| }, | |
| "VCLinkerTool": { | |
| "AdditionalLibraryDirectories": [ | |
| "../@PROJECT_SOURCE_DIR@/lib/<(platform)/<(target_arch)", | |
| "<(build)/" | |
| ] | |
| } | |
| } | |
| } | |
| ], | |
| [ | |
| "OS=='mac'", | |
| { | |
| "target_name": "addon-mac", | |
| "cflags!": [ | |
| "-fno-exceptions" | |
| ], | |
| "cflags_cc!": [ | |
| "-fno-exceptions" | |
| ], | |
| "include_dirs": [ | |
| "<!@(node -p \"require('node-addon-api').include\")", | |
| "<(vkSDK)/include", | |
| "<(root)/lib/include", | |
| "<(dawn)/src/include", | |
| "<(dawn)/out/Shared/gen", | |
| "<(dawn)/out/Shared/gen/src/include", | |
| "<(dawn)/third_party/shaderc/libshaderc/include", | |
| "<(dawn)/third_party/shaderc/libshaderc/src/shaderc.cc", | |
| "<(dawn)/third_party/shaderc/libshaderc/src/shaderc_private.h" | |
| ], | |
| "library_dirs": [ | |
| "<(root)/lib/<(platform)/<(target_arch)/GLFW", | |
| "<(build)/", | |
| "<(vkSDK)/lib" | |
| ], | |
| "link_settings": { | |
| "libraries": [ | |
| "-lvulkan-1.lib", | |
| "-lglfw3dll.lib", | |
| "-llibdawn_native.dll.lib", | |
| "-llibdawn_proc.dll.lib", | |
| "-llibdawn_wire.dll.lib", | |
| "-llibshaderc.dll.lib", | |
| "-llibshaderc_spvc.dll.lib" | |
| ] | |
| }, | |
| "defines": [ | |
| "WIN32_LEAN_AND_MEAN", | |
| "NOMINMAX", | |
| "_UNICODE", | |
| "UNICODE", | |
| "DAWN_ENABLE_BACKEND_D3D12", | |
| "DAWN_ENABLE_BACKEND_NULL", | |
| "DAWN_ENABLE_BACKEND_VULKAN", | |
| "DAWN_NATIVE_SHARED_LIBRARY", | |
| "DAWN_WIRE_SHARED_LIBRARY", | |
| "WGPU_SHARED_LIBRARY", | |
| "_GLFW_WIN32", | |
| "VK_USE_PLATFORM_WIN32_KHR", | |
| "NAPI_CPP_EXCEPTIONS" | |
| ], | |
| "msvs_settings": { | |
| "VCCLCompilerTool": { | |
| "AdditionalOptions": ["/MP /EHsc"], | |
| "ExceptionHandling": 1 | |
| }, | |
| "VCLibrarianTool": { | |
| "AdditionalOptions" : [] | |
| }, | |
| "VCLinkerTool": { | |
| "AdditionalLibraryDirectories": [ | |
| "../@PROJECT_SOURCE_DIR@/lib/<(platform)/<(target_arch)", | |
| "<(build)/" | |
| ] | |
| } | |
| } | |
| } | |
| ] | |
| ] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment