diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-07-24 11:19:29 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-11-19 05:49:35 +0800 |
commit | c608e9663ef69a992131da5db8fc153fd8723058 (patch) | |
tree | 95f2b053d9df4aed39c31b4c906d6ae5b6d2844f | |
parent | 9d8dd17ada6ab7933d8f108a1e8605d2646c1791 (diff) | |
download | pixman-c608e9663ef69a992131da5db8fc153fd8723058.tar.gz |
pixman/meson.build: Define PIXMAN_API on MSVC-style compilers
This will make the public APIs exported from the DLL, so that we have an
import libary that we can use.
-rw-r--r-- | pixman/meson.build | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pixman/meson.build b/pixman/meson.build index 31be9d2..f48357f 100644 --- a/pixman/meson.build +++ b/pixman/meson.build @@ -30,6 +30,11 @@ version_h = configure_file( install_dir : join_paths(get_option('prefix'), get_option('includedir'), 'pixman-1') ) +libpixman_extra_cargs = [] +if cc.has_function_attribute('dllexport') + libpixman_extra_cargs = ['-DPIXMAN_API=__declspec(dllexport)'] +endif + pixman_simd_libs = [] simds = [ # the mmx library can be compiled with mmx on x86/x86_64, iwmmxt on @@ -107,7 +112,8 @@ endforeach libpixman = library( 'pixman-1', [pixman_files, config_h, version_h], - objects: _obs, + objects : _obs, + c_args : libpixman_extra_cargs, dependencies : [dep_m, dep_threads], version : meson.project_version(), install : true, |