We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 534b59e commit 8f77c78Copy full SHA for 8f77c78
meson.build
@@ -46,14 +46,17 @@ install_headers(
46
jsoncpp_headers,
47
subdir : 'json')
48
49
-if get_option('default_library') == 'shared' and meson.get_compiler('cpp').get_id() == 'msvc'
50
- dll_export_flag = '-DJSON_DLL_BUILD'
51
- dll_import_flag = '-DJSON_DLL'
+if get_option('default_library') == 'shared'
+ dll_export_flag = ['-DJSON_DLL_BUILD']
+ dll_import_flag = ['-DJSON_DLL']
52
else
53
dll_export_flag = []
54
dll_import_flag = []
55
endif
56
57
+cpp = meson.get_compiler('cpp')
58
+dll_export_flag += [cpp.first_supported_argument('-fvisibility=hidden')]
59
+
60
jsoncpp_lib = library(
61
'jsoncpp',
62
[ jsoncpp_gen_sources,
0 commit comments