summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-26 16:36:21 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-26 16:36:21 -0200
commita87ba1d6ad5af97d941e3aa8ac8251e6e0bf8183 (patch)
tree8f209cc912871e7d0d428dc4cba99536479e5075
parentd31430d1a0c324844721899de8b3c351c62764ed (diff)
cmake: add embryo.
-rw-r--r--CMakeLists.txt1
-rw-r--r--cmake/helpers/EflMacros.cmake2
-rw-r--r--src/bin/embryo/CMakeLists.txt24
-rw-r--r--src/lib/embryo/CMakeLists.txt21
4 files changed, 47 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0fbd5db3ba..92bf810299 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,6 +39,7 @@ EFL_LIB(emile)
39EFL_LIB(eet) 39EFL_LIB(eet)
40EFL_LIB(ecore) 40EFL_LIB(ecore)
41EFL_LIB(eldbus) 41EFL_LIB(eldbus)
42EFL_LIB(embryo)
42 43
43EFL_OPTIONS_SUMMARY() 44EFL_OPTIONS_SUMMARY()
44 45
diff --git a/cmake/helpers/EflMacros.cmake b/cmake/helpers/EflMacros.cmake
index 8b8711f522..9ec0ea8e4e 100644
--- a/cmake/helpers/EflMacros.cmake
+++ b/cmake/helpers/EflMacros.cmake
@@ -1131,7 +1131,7 @@ function(EFL_BIN _binname)
1131 1131
1132 set_target_properties(${_bintarget} PROPERTIES 1132 set_target_properties(${_bintarget} PROPERTIES
1133 LINK_FLAGS "${_link_flags}" 1133 LINK_FLAGS "${_link_flags}"
1134 COMPILE_FLAGS "${_compile_flags}") 1134 COMPILE_FLAGS "${_compile_flags} -DPACKAGE_DATA_DIR=\\\"${CMAKE_INSTALL_FULL_DATADIR}/${_target}/\\\" -DPACKAGE_SRC_DIR=\\\"${CMAKE_SOURCE_DIR}/\\\"")
1135 1135
1136 if(INSTALL_DIR) 1136 if(INSTALL_DIR)
1137 install(TARGETS ${_bintarget} RUNTIME DESTINATION ${INSTALL_DIR}) 1137 install(TARGETS ${_bintarget} RUNTIME DESTINATION ${INSTALL_DIR})
diff --git a/src/bin/embryo/CMakeLists.txt b/src/bin/embryo/CMakeLists.txt
new file mode 100644
index 0000000000..8b0ff7e323
--- /dev/null
+++ b/src/bin/embryo/CMakeLists.txt
@@ -0,0 +1,24 @@
1set(OUTPUT_NAME embryo_cc)
2
3set(LIBRARIES
4 eina
5 m
6)
7
8set(SOURCES
9 embryo_cc_amx.h
10 embryo_cc_osdefs.h
11 embryo_cc_prefix.c
12 embryo_cc_prefix.h
13 embryo_cc_sc.h
14 embryo_cc_sc1.c
15 embryo_cc_sc2.c
16 embryo_cc_sc3.c
17 embryo_cc_sc4.c
18 embryo_cc_sc5.c
19 embryo_cc_sc6.c
20 embryo_cc_sc7.c
21 embryo_cc_scexpand.c
22 embryo_cc_sclist.c
23 embryo_cc_scvars.c
24)
diff --git a/src/lib/embryo/CMakeLists.txt b/src/lib/embryo/CMakeLists.txt
new file mode 100644
index 0000000000..dc8328bedb
--- /dev/null
+++ b/src/lib/embryo/CMakeLists.txt
@@ -0,0 +1,21 @@
1set(DESCRIPTION "A small virtual machine engine and bytecode compiler")
2
3set(LIBRARIES
4 eina
5 m
6)
7
8set(PUBLIC_HEADERS
9 Embryo.h
10)
11
12set(SOURCES
13 embryo_amx.c
14 embryo_args.c
15 embryo_float.c
16 embryo_main.c
17 embryo_private.h
18 embryo_rand.c
19 embryo_str.c
20 embryo_time.c
21)