Skip to content

Commit

Permalink
Fetch wgpu-native v0.17.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chances committed Sep 26, 2023
1 parent 755c7ea commit afc6c6c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,18 @@ endif
ifndef LIB_WGPU_EXT
$(error Unsupported target OS '$(OS)')
endif
LIB_WGPU_SOURCE := subprojects/wgpu/libwgpu.$(LIB_WGPU_EXT)
LIB_WGPU := lib/libwgpu.$(LIB_WGPU_EXT)
wgpu: $(LIB_WGPU)
LIB_WGPU_SOURCE := subprojects/wgpu
LIB_WGPU := lib/libwgpu_native
wgpu: $(LIB_WGPU).a $(LIB_WGPU).$(LIB_WGPU_EXT)
.PHONY: wgpu
$(LIB_WGPU_SOURCE): subprojects/wgpu.Makefile
@make -C subprojects -f wgpu.Makefile
$(LIB_WGPU): $(LIB_WGPU_SOURCE)
$(LIB_WGPU).a: $(LIB_WGPU_SOURCE)/libwgpu_native.a
@mkdir -p lib
@cp $(LIB_WGPU_SOURCE) lib/.
@cp $(LIB_WGPU_SOURCE)/libwgpu_native.a lib/.
$(LIB_WGPU).$(LIB_WGPU_EXT): $(LIB_WGPU_SOURCE)/libwgpu_native.$(LIB_WGPU_EXT)
@mkdir -p lib
@cp $(LIB_WGPU_SOURCE)/libwgpu_native.$(LIB_WGPU_EXT) lib/.

#################################################
# Examples
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

D bindings to [wgpu-native](https://github.com/gfx-rs/wgpu-native) as an idiomatic wrapper around the library.

Targets wgpu-native [`v0.10.4.1`](https://github.com/gfx-rs/wgpu-native/releases/tag/v0.10.4.1).
Targets wgpu-native [`v0.17.0.2`](https://github.com/gfx-rs/wgpu-native/releases/tag/v0.17.0.2).

## Usage

Expand Down
6 changes: 3 additions & 3 deletions dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@
}
],
"libs": [
"wgpu"
"wgpu_native"
],
"copyFiles-linux": [
"lib/libwgpu.so"
"lib/libwgpu_native.so"
],
"copyFiles-osx": [
"lib/libwgpu.dylib"
"lib/libwgpu_native.dylib"
]
}
4 changes: 2 additions & 2 deletions subprojects/wgpu.Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# See https://github.com/gfx-rs/wgpu-native/tree/v0.10.4.1
VERSION := v0.10.4.1
# See https://github.com/gfx-rs/wgpu-native/tree/v0.17.0.2
VERSION := v0.17.0.2
OS := $(shell uname -s)
ARCH := $(shell uname -m)

Expand Down

0 comments on commit afc6c6c

Please sign in to comment.