Skip to content

Commit 74b32f3

Browse files
committed
meson: define PL_STATIC/PL_EXPORT when building library
1 parent bf84eec commit 74b32f3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ project('libplacebo', ['c', 'cpp'],
66
'c_std=c11',
77
'cpp_std=c++20',
88
],
9-
meson_version: '>=0.63',
9+
meson_version: '>=1.3.0',
1010
version: '@0@.@1@.@2@'.format(
1111
# Major version
1212
7,

src/meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ endif
245245
### Main library build process
246246
inc = include_directories('./include')
247247
lib = library('placebo', sources,
248-
c_args: ['-DPL_EXPORT'],
248+
c_static_args: ['-DPL_STATIC'],
249+
c_shared_args: ['-DPL_EXPORT'],
249250
install: true,
250251
dependencies: build_deps + glad_dep,
251252
soversion: apiver,

0 commit comments

Comments
 (0)