diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2020-05-18 09:48:17 +0100 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2020-05-18 09:51:48 +0100 |
commit | 3ade45cbc82bea1772c7ad1afb7e1ba5dd67d930 (patch) | |
tree | 3b3b3329e8419ddb8021ddc4cca2f52d391b939d /src/lib/emotion/meson.build | |
parent | fe56edae3f5015c62e319d5e2ab2552d3533eead (diff) |
Fix EAPI definition by defining EFL_BUILD for each built DLL
Summary: EAPI must be defined to dllexport when building DLL, and to dllimport when using these DLL. To achieve this, define EFL_BUILD for each library and module, and set DLL_EXPORT unconditionally. Static library are and will be not supported
Test Plan: compilation
Reviewers: zmike, raster, jptiz
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D11834
Diffstat (limited to 'src/lib/emotion/meson.build')
-rw-r--r-- | src/lib/emotion/meson.build | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/emotion/meson.build b/src/lib/emotion/meson.build index 6f2717dfa6..0dd07f845c 100644 --- a/src/lib/emotion/meson.build +++ b/src/lib/emotion/meson.build | |||
@@ -44,17 +44,17 @@ if get_option('eeze') == true | |||
44 | emotion_deps += [eeze] | 44 | emotion_deps += [eeze] |
45 | endif | 45 | endif |
46 | 46 | ||
47 | emotion_c_args = package_c_args + [ '-DEFL_BUILD' ] | ||
48 | |||
47 | emotion_lib = library('emotion', | 49 | emotion_lib = library('emotion', |
48 | emotion_src, pub_eo_file_target, priv_eo_file_target, | 50 | emotion_src, pub_eo_file_target, priv_eo_file_target, |
49 | dependencies: emotion_deps + emotion_pub_deps, | 51 | dependencies: emotion_deps + emotion_pub_deps, |
50 | include_directories : config_dir + [include_directories('.')], | 52 | include_directories : config_dir + [include_directories('.')], |
51 | install: true, | 53 | install: true, |
52 | c_args : package_c_args, | 54 | c_args : emotion_c_args, |
53 | version : meson.project_version() | 55 | version : meson.project_version() |
54 | ) | 56 | ) |
55 | 57 | ||
56 | emotion_package_c_args = package_c_args | ||
57 | |||
58 | emotion = declare_dependency( | 58 | emotion = declare_dependency( |
59 | include_directories: [include_directories('.')], | 59 | include_directories: [include_directories('.')], |
60 | link_with: emotion_lib, | 60 | link_with: emotion_lib, |