File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 13
13
lib_path= ' target/release/wgpu_native.lib'
14
14
endif
15
15
16
- #build by cargo
16
+ #build with cargo
17
17
run_command (cargo,' build' ,' --release' , check : true )
18
- #mark cargo artifact to static library
19
- wgpu_native = static_library (' wgpu_native' , objects : lib_path, install : true )
20
18
21
- dep_wgpu_native = declare_dependency (
22
- link_with :wgpu_native,
23
- include_directories : inc_dirs
24
- )
19
+ #mark cargo artifact for installation
20
+ install_data (lib_path, install_dir : get_option (' libdir' ))
25
21
26
22
pkg = import (' pkgconfig' )
27
23
pkg.generate(name : ' wgpu-native' ,
28
24
description : ' Headers for using wgpu-native' ,
29
- libraries : [wgpu_native ],
25
+ libraries : [' -L${libdir} ' , ' -lwgpu_native ' ],
30
26
version : meson .project_version(),
31
27
)
You can’t perform that action at this time.
0 commit comments