1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
Description: use c_static_args
Author: Sébastien Noel <sebastien@twolife.be>
Forwarded: not-needed
--- a/meson.build
+++ b/meson.build
@@ -1,12 +1,11 @@
project('plutovg', 'c',
version: '1.3.0',
license: 'MIT',
- meson_version: '>=0.59.0',
+ meson_version: '>=1.3.0',
default_options: ['c_std=gnu11,c11']
)
plutovg_deps = []
-plutovg_compile_args = []
cc = meson.get_compiler('c')
@@ -21,11 +20,6 @@
plutovg_c_args += ['-DPLUTOVG_DISABLE_FONT_FACE_CACHE_LOAD']
endif
-if get_option('default_library') == 'static'
- plutovg_c_args += ['-DPLUTOVG_BUILD_STATIC']
- plutovg_compile_args += ['-DPLUTOVG_BUILD_STATIC']
-endif
-
math_dep = cc.find_library('m', required: false)
if math_dep.found()
plutovg_deps += [math_dep]
@@ -48,6 +42,7 @@
dependencies: plutovg_deps,
version: meson.project_version(),
c_args: plutovg_c_args,
+ c_static_args : ['-DPLUTOVG_BUILD_STATIC'],
gnu_symbol_visibility: 'hidden',
install: true
)
@@ -56,7 +51,6 @@
plutovg_dep = declare_dependency(
link_with: plutovg_lib,
include_directories: include_directories('include'),
- compile_args: plutovg_compile_args
)
meson.override_dependency('plutovg', plutovg_dep)
|