X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=6b2b28065dcb24eef0a2da019130d8916de52024;hb=c643fe4639e923b0a88e1a5d9df691418b540056;hp=ac5c10571dd7d1100da1b9c81b567dce850f76bc;hpb=dd9a802209b6d7a41f16b0123090b93a428c9404;p=src%2Fapp-framework-main.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ac5c105..6b2b280 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,5 @@ ########################################################################### -# Copyright 2015 IoT.bzh +# Copyright 2015, 2016, 2017 IoT.bzh # # author: José Bollo # @@ -47,7 +47,7 @@ include_directories(${EXTRAS_INCLUDE_DIRS}) link_libraries(${EXTRAS_LIBRARIES}) pkg_check_modules(libzip libzip>=0.11) -if(libzip_FOUND) +if(libzip_FOUND AND USE_LIBZIP) add_compile_options(${libzip_CFLAGS}) include_directories(${libzip_INCLUDE_DIRS}) link_libraries(${libzip_LIBRARIES}) @@ -58,14 +58,25 @@ endif() ########################################################################### -if(USE_SIMULATION) - include_directories(simulation) -else(USE_SIMULATION) +if(SIMULATE_SECMGR) + add_definitions(-DSIMULATE_SECURITY_MANAGER=1) +else(SIMULATE_SECMGR) pkg_check_modules(SECMGR REQUIRED security-manager) add_compile_options(${SECMGR_CFLAGS}) include_directories(${SECMGR_INCLUDE_DIRS}) link_libraries(${SECMGR_LIBRARIES}) -endif(USE_SIMULATION) + add_definitions(-DSIMULATE_SECURITY_MANAGER=0) +endif(SIMULATE_SECMGR) + +if(SIMULATE_SMACK) + add_definitions(-DSIMULATE_LIBSMACK=1) +else(SIMULATE_SMACK) + pkg_check_modules(SMACK REQUIRED libsmack) + add_compile_options(${SMACK_CFLAGS}) + include_directories(${SMACK_INCLUDE_DIRS}) + link_libraries(${SMACK_LIBRARIES}) + add_definitions(-DSIMULATE_LIBSMACK=0) +endif(SIMULATE_SMACK) ########################################################################### @@ -90,6 +101,7 @@ add_library(utils STATIC add_library(wgt STATIC wgt-config.c wgt-info.c + wgt-strings.c wgt.c )