-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdune
More file actions
19 lines (17 loc) · 654 Bytes
/
dune
File metadata and controls
19 lines (17 loc) · 654 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(dirs src native)
(include_subdirs unqualified)
(rule
(targets libwgpu.a dllwgpu.so)
(deps (glob_files *.rs))
(action
(progn
(run cargo build --manifest-path %{project_root}/../../native/Cargo.toml --target-dir %{project_root}/../../target --release)
(run sh -c
"mv %{project_root}/../../target/release/libwgpu.so ./dllwgpu.so 2> /dev/null || \
mv %{project_root}/../..target/release/libwgpu.dylib ./dllwgpu.so")
(run mv %{project_root}/../../target/release/libwgpu.a libwgpu.a))))
(library
(name wgpu)
(foreign_archives wgpu)
(c_library_flags
(-lpthread -lc -lm)))