|
|
@ -153,7 +153,7 @@ endif |
|
|
|
common_cflags = [] |
|
|
|
common_cflags = [] |
|
|
|
foreach cflag: test_cflags |
|
|
|
foreach cflag: test_cflags |
|
|
|
if cc.has_argument(cflag) |
|
|
|
if cc.has_argument(cflag) |
|
|
|
common_cflags += [ cflag ] |
|
|
|
common_cflags += cflag |
|
|
|
endif |
|
|
|
endif |
|
|
|
endforeach |
|
|
|
endforeach |
|
|
|
|
|
|
|
|
|
|
@ -164,10 +164,8 @@ if libtype == 'shared' |
|
|
|
visibility_cflags = [] |
|
|
|
visibility_cflags = [] |
|
|
|
if host_system == 'windows' |
|
|
|
if host_system == 'windows' |
|
|
|
conf.set('DLL_EXPORT', true) |
|
|
|
conf.set('DLL_EXPORT', true) |
|
|
|
if cc.get_id() == 'msvc' |
|
|
|
conf.set('EPOXY_PUBLIC', '__declspec(dllexport) extern') |
|
|
|
conf.set('EPOXY_PUBLIC', '__declspec(dllexport) extern') |
|
|
|
if cc.get_id() != 'msvc' |
|
|
|
else |
|
|
|
|
|
|
|
conf.set('EPOXY_PUBLIC', '__attribute__((visibility("default"))) __declspec(dllexport) extern') |
|
|
|
|
|
|
|
visibility_cflags += [ '-fvisibility=hidden' ] |
|
|
|
visibility_cflags += [ '-fvisibility=hidden' ] |
|
|
|
endif |
|
|
|
endif |
|
|
|
else |
|
|
|
else |
|
|
|