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
50
50
ARCHIVE=$(ARCHIVE_NAME ) -$$ RELEASE.zip; \
51
51
LIBDIR=$(TARGET_DIR ) /$$ RELEASE; \
52
52
rm -f dist/$$ ARCHIVE; \
53
- sed ' s/webgpu-headers\///' ffi/wgpu.h > wgpu.h ; \
54
53
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; \
56
55
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; \
58
57
fi ; \
59
- rm wgpu.h ; \
60
58
done
61
59
62
60
clean :
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ fn main() {
42
42
( "WGPUTextureView" , "WGPUTextureViewImpl" ) ,
43
43
] ;
44
44
let mut builder = bindgen:: Builder :: default ( )
45
- . header ( "ffi/webgpu-headers/webgpu.h" )
46
45
. header ( "ffi/wgpu.h" )
46
+ . clang_arg ( "-Iffi/webgpu-headers" )
47
47
. parse_callbacks ( Box :: new ( bindgen:: CargoCallbacks :: new ( ) ) )
48
48
. blocklist_function ( "wgpuGetProcAddress" )
49
49
. prepend_enum_name ( false )
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ endif()
12
12
add_definitions (-DSTB_IMAGE_WRITE_IMPLEMENTATION)
13
13
14
14
include_directories (${CMAKE_SOURCE_DIR} /../ffi)
15
+ include_directories (${CMAKE_SOURCE_DIR} /../ffi/webgpu-headers)
15
16
include_directories (${CMAKE_SOURCE_DIR} /framework )
16
17
17
18
if (WIN32 )
Original file line number Diff line number Diff line change 10
10
endif ()
11
11
12
12
include_directories (${CMAKE_SOURCE_DIR} /../ffi)
13
+ include_directories (${CMAKE_SOURCE_DIR} /../ffi/webgpu-headers)
13
14
include_directories (${CMAKE_SOURCE_DIR} /framework )
14
15
15
16
if (WIN32 )
Original file line number Diff line number Diff line change 10
10
endif ()
11
11
12
12
include_directories (${CMAKE_SOURCE_DIR} /../ffi)
13
+ include_directories (${CMAKE_SOURCE_DIR} /../ffi/webgpu-headers)
13
14
include_directories (${CMAKE_SOURCE_DIR} /framework )
14
15
15
16
if (WIN32 )
Original file line number Diff line number Diff line change 10
10
endif ()
11
11
12
12
include_directories (${CMAKE_SOURCE_DIR} /../ffi)
13
+ include_directories (${CMAKE_SOURCE_DIR} /../ffi/webgpu-headers)
13
14
14
15
if (WIN32 )
15
16
set (OS_LIBRARIES d3dcompiler ws2_32 userenv bcrypt ntdll opengl32)
Original file line number Diff line number Diff line change 10
10
endif ()
11
11
12
12
include_directories (${CMAKE_SOURCE_DIR} /../ffi)
13
+ include_directories (${CMAKE_SOURCE_DIR} /../ffi/webgpu-headers)
13
14
include_directories (${CMAKE_SOURCE_DIR} /framework )
14
15
15
16
if (WIN32 )
Original file line number Diff line number Diff line change 10
10
endif ()
11
11
12
12
include_directories (${CMAKE_SOURCE_DIR} /../ffi)
13
+ include_directories (${CMAKE_SOURCE_DIR} /../ffi/webgpu-headers)
13
14
include_directories (${CMAKE_SOURCE_DIR} /framework )
14
15
15
16
if (WIN32 )
Original file line number Diff line number Diff line change 1
1
#ifndef WGPU_H_
2
2
#define WGPU_H_
3
3
4
- #include "webgpu-headers/webgpu .h"
4
+ #include "webgpu.h"
5
5
6
6
typedef enum WGPUNativeSType {
7
7
// Start at 0003 since that's allocated range for wgpu-native
You can’t perform that action at this time.
0 commit comments