Skip to content

Commit 81a2014

Browse files
committed
meson: Expose RSVG_STATIC on the dependency if consuming the static library
Fixes #1143
1 parent 80173c4 commit 81a2014

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rsvg/meson.build

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ else
220220
)
221221
endif
222222

223+
librsvg_dep_args = []
223224
librsvg_lib = librsvg_c_lib
224225

225226
# Wait on this dependency before trying to build using Rust
@@ -263,6 +264,7 @@ if get_option('default_library') in ['static', 'both']
263264
install: true,
264265
install_dir: get_option('libdir'),
265266
)
267+
librsvg_dep_args += ['-DRSVG_STATIC']
266268

267269
librsvg_rust_dep = librsvg_lib
268270
endif
@@ -272,6 +274,7 @@ librsvg_dep = declare_dependency(
272274
sources: includes,
273275
include_directories: [includeinc],
274276
dependencies: library_dependencies,
277+
compile_args: librsvg_dep_args,
275278
link_with: librsvg_lib,
276279
)
277280

0 commit comments

Comments
 (0)