build: set DLL_EXPORT when on a windows system
authorStefan Schmidt <s.schmidt@samsung.com>
Mon, 18 May 2020 14:53:22 +0000 (16:53 +0200)
committerJongmin Lee <jm105.lee@samsung.com>
Mon, 25 May 2020 21:35:46 +0000 (06:35 +0900)
No need to have this elementary specific, we can do this globally.

Original patch by Vincent Torri.

Differential Revision: https://phab.enlightenment.org/D11850

Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
meson.build
src/lib/elementary/meson.build

index c2bf5cd..fcf6652 100644 (file)
@@ -99,6 +99,7 @@ foreach lang : ['c', 'objc', 'cpp']
   add_global_arguments('-DELM_INTERNAL_API_ARGESFSDFEFC=1', language: lang)
   if sys_windows == true
     add_global_arguments('-D_POSIX_C_SOURCE=200809L', language: lang)
+    add_global_arguments('-DDLL_EXPORT=1', language: lang)
     if (get_option('windows-version') == 'vista')
       add_global_arguments('-DWINVER=0x060', language: lang)
       add_global_arguments('-D_WIN32_WINNT=0x0600', language: lang)
index 8cd0c15..6014e46 100644 (file)
@@ -1072,8 +1072,6 @@ config_h.set_quoted('ICON_DIR', join_paths(dir_lib, 'icons'))
 
 if sys_windows == false
   elm_options.set('ELM_UNIX', '1')
-else
-  elm_options.set('DLL_EXPORT', '1')
 endif
 
 elm_options.set('ELM_EFREET', '1')