summaryrefslogtreecommitdiff
path: root/src/lib/embryo
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2020-05-18 09:48:17 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-05-18 09:51:48 +0100
commit3ade45cbc82bea1772c7ad1afb7e1ba5dd67d930 (patch)
tree3b3b3329e8419ddb8021ddc4cca2f52d391b939d /src/lib/embryo
parentfe56edae3f5015c62e319d5e2ab2552d3533eead (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 '')
-rw-r--r--src/lib/embryo/embryo_main.c2
-rw-r--r--src/lib/embryo/embryo_private.h2
-rw-r--r--src/lib/embryo/embryo_str.c2
-rw-r--r--src/lib/embryo/meson.build4
4 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/embryo/embryo_main.c b/src/lib/embryo/embryo_main.c
index 852b1903f2..452a272787 100644
--- a/src/lib/embryo/embryo_main.c
+++ b/src/lib/embryo/embryo_main.c
@@ -6,6 +6,8 @@
6#include <stdlib.h> 6#include <stdlib.h>
7#include <time.h> 7#include <time.h>
8 8
9#include <Eina.h>
10
9#include "Embryo.h" 11#include "Embryo.h"
10#include "embryo_private.h" 12#include "embryo_private.h"
11 13
diff --git a/src/lib/embryo/embryo_private.h b/src/lib/embryo/embryo_private.h
index 4bf8ceb2c6..e63351b2c7 100644
--- a/src/lib/embryo/embryo_private.h
+++ b/src/lib/embryo/embryo_private.h
@@ -1,8 +1,6 @@
1#ifndef _EMBRYO_PRIVATE_H 1#ifndef _EMBRYO_PRIVATE_H
2#define _EMBRYO_PRIVATE_H 2#define _EMBRYO_PRIVATE_H
3 3
4#include <Eina.h>
5
6typedef enum _Embryo_Opcode Embryo_Opcode; 4typedef enum _Embryo_Opcode Embryo_Opcode;
7 5
8enum _Embryo_Opcode 6enum _Embryo_Opcode
diff --git a/src/lib/embryo/embryo_str.c b/src/lib/embryo/embryo_str.c
index d7da4e0dd3..6fafa83db0 100644
--- a/src/lib/embryo/embryo_str.c
+++ b/src/lib/embryo/embryo_str.c
@@ -16,6 +16,8 @@
16#include <string.h> 16#include <string.h>
17#include <fnmatch.h> 17#include <fnmatch.h>
18 18
19#include <Eina.h>
20
19#include "Embryo.h" 21#include "Embryo.h"
20#include "embryo_private.h" 22#include "embryo_private.h"
21 23
diff --git a/src/lib/embryo/meson.build b/src/lib/embryo/meson.build
index 6ab8af8fe7..21193698c0 100644
--- a/src/lib/embryo/meson.build
+++ b/src/lib/embryo/meson.build
@@ -19,12 +19,14 @@ embryo_src = [
19 19
20embryo_deps = [eina, m] 20embryo_deps = [eina, m]
21 21
22embryo_c_args = package_c_args + [ '-DEFL_BUILD' ]
23
22embryo_lib = library('embryo', 24embryo_lib = library('embryo',
23 embryo_src, 25 embryo_src,
26 c_args : embryo_c_args,
24 dependencies: [m, buildsystem] + embryo_deps, 27 dependencies: [m, buildsystem] + embryo_deps,
25 include_directories : config_dir + [include_directories(join_paths('..','..'))], 28 include_directories : config_dir + [include_directories(join_paths('..','..'))],
26 install: true, 29 install: true,
27 c_args : package_c_args,
28 version : meson.project_version() 30 version : meson.project_version()
29) 31)
30 32