File tree Expand file tree Collapse file tree 9 files changed +10
-6
lines changed Expand file tree Collapse file tree 9 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,11 @@ package: lib-native lib-native-release
5050 ARCHIVE=$(ARCHIVE_NAME ) -$$ RELEASE.zip; \
5151 LIBDIR=$(TARGET_DIR ) /$$ RELEASE; \
5252 rm -f dist/$$ ARCHIVE; \
53- sed ' s/webgpu-headers\///' ffi/wgpu.h > wgpu.h ; \
5453 if [ $( OS_NAME) = windows ]; then \
55- 7z a -tzip dist/$$ ARCHIVE ./$$ LIBDIR/wgpu_native.dll ./$$ LIBDIR/wgpu_native.dll.lib ./$$ LIBDIR/wgpu_native.pdb ./$$ LIBDIR/wgpu_native.lib ./ffi/webgpu-headers/* .h ./wgpu.h ./dist/commit-sha; \
54+ 7z a -tzip dist/$$ ARCHIVE ./$$ LIBDIR/wgpu_native.dll ./$$ LIBDIR/wgpu_native.dll.lib ./$$ LIBDIR/wgpu_native.pdb ./$$ LIBDIR/wgpu_native.lib ./ffi/webgpu-headers/* .h ./ffi/ wgpu.h ./dist/commit-sha; \
5655 else \
57- zip -j dist/$$ ARCHIVE ./$$ LIBDIR/libwgpu_native.so ./$$ LIBDIR/libwgpu_native.dylib ./$$ LIBDIR/libwgpu_native.a ./ffi/webgpu-headers/* .h ./wgpu.h ./dist/commit-sha; \
56+ zip -j dist/$$ ARCHIVE ./$$ LIBDIR/libwgpu_native.so ./$$ LIBDIR/libwgpu_native.dylib ./$$ LIBDIR/libwgpu_native.a ./ffi/webgpu-headers/* .h ./ffi/ wgpu.h ./dist/commit-sha; \
5857 fi ; \
59- rm wgpu.h ; \
6058 done
6159
6260clean :
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ fn main() {
4242 ( "WGPUTextureView" , "WGPUTextureViewImpl" ) ,
4343 ] ;
4444 let mut builder = bindgen:: Builder :: default ( )
45- . header ( "ffi/webgpu-headers/webgpu.h" )
4645 . header ( "ffi/wgpu.h" )
46+ . clang_arg ( "-Iffi/webgpu-headers" )
4747 . parse_callbacks ( Box :: new ( bindgen:: CargoCallbacks :: new ( ) ) )
4848 . blocklist_function ( "wgpuGetProcAddress" )
4949 . prepend_enum_name ( false )
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ endif()
1212add_definitions (-DSTB_IMAGE_WRITE_IMPLEMENTATION)
1313
1414include_directories (${CMAKE_SOURCE_DIR} /../ffi)
15+ include_directories (${CMAKE_SOURCE_DIR} /../ffi/webgpu-headers)
1516include_directories (${CMAKE_SOURCE_DIR} /framework )
1617
1718if (WIN32 )
Original file line number Diff line number Diff line change 1010endif ()
1111
1212include_directories (${CMAKE_SOURCE_DIR} /../ffi)
13+ include_directories (${CMAKE_SOURCE_DIR} /../ffi/webgpu-headers)
1314include_directories (${CMAKE_SOURCE_DIR} /framework )
1415
1516if (WIN32 )
Original file line number Diff line number Diff line change 1010endif ()
1111
1212include_directories (${CMAKE_SOURCE_DIR} /../ffi)
13+ include_directories (${CMAKE_SOURCE_DIR} /../ffi/webgpu-headers)
1314include_directories (${CMAKE_SOURCE_DIR} /framework )
1415
1516if (WIN32 )
Original file line number Diff line number Diff line change 1010endif ()
1111
1212include_directories (${CMAKE_SOURCE_DIR} /../ffi)
13+ include_directories (${CMAKE_SOURCE_DIR} /../ffi/webgpu-headers)
1314
1415if (WIN32 )
1516 set (OS_LIBRARIES d3dcompiler ws2_32 userenv bcrypt ntdll opengl32)
Original file line number Diff line number Diff line change 1010endif ()
1111
1212include_directories (${CMAKE_SOURCE_DIR} /../ffi)
13+ include_directories (${CMAKE_SOURCE_DIR} /../ffi/webgpu-headers)
1314include_directories (${CMAKE_SOURCE_DIR} /framework )
1415
1516if (WIN32 )
Original file line number Diff line number Diff line change 1010endif ()
1111
1212include_directories (${CMAKE_SOURCE_DIR} /../ffi)
13+ include_directories (${CMAKE_SOURCE_DIR} /../ffi/webgpu-headers)
1314include_directories (${CMAKE_SOURCE_DIR} /framework )
1415
1516if (WIN32 )
Original file line number Diff line number Diff line change 11#ifndef WGPU_H_
22#define WGPU_H_
33
4- #include "webgpu-headers/webgpu .h"
4+ #include "webgpu.h"
55
66typedef enum WGPUNativeSType {
77 // Start at 0003 since that's allocated range for wgpu-native
You can’t perform that action at this time.
0 commit comments