aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-01-18 17:21:01 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2019-01-18 17:23:28 +0100
commit7582a430b719f2f22dc6312f5e464e7e7b834ba3 (patch)
treeace0dae51b216bae69f0709db44003ff3835eae9
parent58a1ada0250f6d6390f0d04b547b3bb5f9934189 (diff)
Git submodules migration to separate library
Operates the migration to use the afb-helpers and controller libraries and find them as packages not only link against them. - Remove the submodules - Remote the target link on target - Add dependencies to afb-helpers and appcontroller packages. Change-Id: I79da3a84bc1ee020924bb51f0eaed85a99ba7288 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--.gitmodules6
m---------afb-helpers0
m---------app-controller-submodule0
-rw-r--r--conf.d/cmake/config.cmake2
-rw-r--r--src/CMakeLists.txt13
5 files changed, 3 insertions, 18 deletions
diff --git a/.gitmodules b/.gitmodules
deleted file mode 100644
index 502cd9c..0000000
--- a/.gitmodules
+++ /dev/null
@@ -1,6 +0,0 @@
-[submodule "afb-helpers"]
- path = afb-helpers
- url = https://gerrit.automotivelinux.org/gerrit/p/apps/app-afb-helpers-submodule.git
-[submodule "app-controller-submodule"]
- path = app-controller-submodule
- url = https://gerrit.automotivelinux.org/gerrit/p/apps/app-controller-submodule.git
diff --git a/afb-helpers b/afb-helpers
deleted file mode 160000
-Subproject f0ce5b665dd33b285d723720c16ac0542cde4e6
diff --git a/app-controller-submodule b/app-controller-submodule
deleted file mode 160000
-Subproject 0e395a67ff376a8586ac75144bd71c2944acd62
diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake
index 3fe3534..81dcebd 100644
--- a/conf.d/cmake/config.cmake
+++ b/conf.d/cmake/config.cmake
@@ -71,6 +71,8 @@ set (PKG_REQUIRED_LIST
json-c
libsystemd>=222
afb-daemon>=4.0
+ ctl-utilities
+ afb-helpers
)
# Prefix path where will be installed the files
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index e6351fb..7b528a6 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -24,22 +24,11 @@ PROJECT_TARGET_ADD(aft)
ADD_LIBRARY(${TARGET_NAME} MODULE ${TARGET_NAME}.c mapis.c)
SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
- PREFIX ""
+ PREFIX ""
LABELS "BINDING"
OUTPUT_NAME ${TARGET_NAME}
)
- TARGET_LINK_LIBRARIES(${TARGET_NAME}
- afb-helpers
- ctl-utilities
- ${link_libraries}
- )
-
- # Define target includes for this target client
- TARGET_INCLUDE_DIRECTORIES(${TARGET_NAME}
- PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
- )
-
# Define target includes for this target client
TARGET_INCLUDE_DIRECTORIES(${TARGET_NAME}
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}