summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2015-07-28 09:39:06 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2015-07-28 09:39:06 +0300
commit6bc5156e2b3708d9370b8bb542bda363b69c43cb (patch)
tree939531d3d0e951b0376c9ab572874a6485228883
Init files structures
-rw-r--r--CMakeLists.txt15
-rw-r--r--src/bin/CMakeLists.txt27
-rw-r--r--src/bin/cli.c0
-rw-r--r--src/lib/CMakeLists.txt31
-rw-r--r--src/lib/edbg_preload.c0
5 files changed, 73 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..4f10a61
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,15 @@
1cmake_minimum_required(VERSION 2.8.1)
2
3project(EDBG)
4
5#set(EA_GEN_COMMON_DEFINITIONS -DEFL_EO_API_SUPPORT -DEFL_BETA_API_SUPPORT)
6#add_definitions(${EA_GEN_COMMON_DEFINITIONS})
7
8find_package(Eina REQUIRED)
9find_package(Eet REQUIRED)
10find_package(Eolian REQUIRED)
11find_package(Eo REQUIRED)
12find_package(Elementary REQUIRED)
13
14add_subdirectory(src/bin)
15add_subdirectory(src/lib)
diff --git a/src/bin/CMakeLists.txt b/src/bin/CMakeLists.txt
new file mode 100644
index 0000000..65eee1c
--- /dev/null
+++ b/src/bin/CMakeLists.txt
@@ -0,0 +1,27 @@
1set(CMAKE_BUILD_TYPE Debug)
2
3LIST(APPEND SOURCES cli.c)
4
5STRING(REGEX REPLACE "\n" "" EOLIAN_EO_DIR ${EOLIAN_EO_DIR})
6STRING(REGEX REPLACE " " "" EOLIAN_EO_DIR ${EOLIAN_EO_DIR})
7add_definitions(${CLI_COMMON_DEFINITIONS} -DEOLIAN_EO_DIR="${EOLIAN_EO_DIR}")
8add_definitions(${CLI_COMMON_DEFINITIONS})
9
10include_directories(
11 ${EINA_INCLUDE_DIRS}
12 ${EET_INCLUDE_DIRS}
13 ${EO_INCLUDE_DIRS}
14 ${EOLIAN_INCLUDE_DIRS}
15 )
16
17set(EOLIAN_INCLUDE_FLAG -I \"${EOLIAN_EO_DIR}/eo-1\" -I${CMAKE_CURRENT_SOURCE_DIR})
18
19add_executable(edbg_cli ${SOURCES})
20
21target_link_libraries(edbg_cli
22 ${EINA_LIBRARIES}
23 ${EET_LIBRARIES}
24 ${EO_LIBRARIES}
25 ${EOLIAN_LIBRARIES}
26 )
27
diff --git a/src/bin/cli.c b/src/bin/cli.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/bin/cli.c
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
new file mode 100644
index 0000000..4fc6114
--- /dev/null
+++ b/src/lib/CMakeLists.txt
@@ -0,0 +1,31 @@
1set(CMAKE_BUILD_TYPE Debug)
2
3LIST(APPEND EDBG_CC_SOURCES edbg_preload.c)
4
5link_directories (${PC_LIBELEMENTARY_LIBRARY_DIRS})
6
7STRING(REGEX REPLACE "\n" "" EOLIAN_EO_DIR ${EOLIAN_EO_DIR})
8STRING(REGEX REPLACE " " "" EOLIAN_EO_DIR ${EOLIAN_EO_DIR})
9add_definitions(${EDBG_COMMON_DEFINITIONS} -DEOLIAN_EO_DIR="${EOLIAN_EO_DIR}")
10add_definitions(${EDBG_COMMON_DEFINITIONS})
11
12include_directories (${CMAKE_SOURCE_DIR}/src/lib)
13include_directories(${CMAKE_CURRENT_BINARY_DIR})
14include_directories(
15 ${EINA_INCLUDE_DIRS}
16 ${EOLIAN_INCLUDE_DIRS}
17 ${EVAS_INCLUDE_DIRS}
18 ${ELEMENTARY_INCLUDE_DIRS}
19 )
20
21set(EOLIAN_INCLUDE_FLAG -I \"${EOLIAN_EO_DIR}/eo-1\" -I${CMAKE_CURRENT_SOURCE_DIR})
22
23add_library(edbg SHARED ${EDBG_CC_SOURCES})
24
25target_link_libraries(edbg
26 ${EINA_LIBRARIES}
27 ${EO_LIBRARIES}
28 ${EOLIAN_LIBRARIES}
29 ${ELEMENTARY_LIBRARIES}
30 )
31
diff --git a/src/lib/edbg_preload.c b/src/lib/edbg_preload.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/lib/edbg_preload.c