build:Add def file for Windows GN build
Add vulkan-1.def as a source file for windows GN build and rename
windows target to "vulkan-1" so that functions are correclty
exported for GetProcAddress() lookup.
Fixes #292
diff --git a/BUILD.gn b/BUILD.gn
index 8676847..51672b8 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -97,11 +97,13 @@
"loader/wsi.h",
]
if (is_win) {
+ output_name = "vulkan-1"
sources += [
"loader/dirent_on_windows.c",
"loader/dirent_on_windows.h",
"loader/dxgi_loader.c",
"loader/dxgi_loader.h",
+ "loader/vulkan-1.def",
]
if (!is_clang) {
cflags = [