Update autobuild scripts
[apps/agl-service-windowmanager.git] / conf.d / cmake / config.cmake
index e5d1c46..1f5a5f2 100644 (file)
@@ -1,7 +1,8 @@
 ###########################################################################
-# Copyright 2015-2020 IoT.bzh
+# Copyright 2015, 2016, 2017 IoT.bzh
+# Copyright (C) 2020 Konsulko Group
 #
-# author: Frédéric Marec <frederic.marec@iot.bzh>
+# author: Fulup Ar Foll <fulup@iot.bzh>
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 
 # Project Info
 # ------------------
-project(WindowManagerTMC)
-set(PROJECT_NAME WindowManager)
-set(PROJECT_PRETTY_NAME "WindowManager")
-set(PROJECT_DESCRIPTION "AGL WindowManager")
+set(PROJECT_NAME "windowmanager-service")
+set(API_NAME "windowmanager")
+set(PROJECT_PRETTY_NAME "Window Manager")
+set(PROJECT_DESCRIPTION "Window Manager Service")
 set(PROJECT_URL "https://gerrit.automotivelinux.org/gerrit/apps/agl-service-windowmanager")
-set(PROJECT_ICON "icon.png")
-set(PACKAGE_VERSION_MAJOR 0)
-set(PACKAGE_VERSION_MINOR 0)
-set(PACKAGE_VERSION_REVISION 1)
-set(PACKAGE_VERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}.${PACKAGE_VERSION_REVISION}")
-
-find_package(PkgConfig REQUIRED)
-include(GNUInstallDirs)
-
-set(SANITIZER_MODE "none" CACHE STRING "Build using a specific sanitizer (e.g. 'address', 'thread', 'leak', 'undefined'), depends on compiler; default none")
-
-set(LINK_LIBCXX OFF CACHE BOOL "Link against LLVMs libc++")
-
-# Add PolicyManager as plugin
-set(PLUGIN_PM policy_manager)
+set(PROJECT_ICON "icon.svg")
+set(PROJECT_AUTHOR "TOYOTA")
+set(PROJECT_AUTHOR_EMAIL "")
+set(PROJECT_VERSION "0.1")
+set(PROJECT_LICENSE "APL2.0")
+set(PROJECT_LANGUAGES,"CXX")
 
 # Which directories inspect to find CMakeLists.txt target files
 # set(PROJECT_SRC_DIR_PATTERN "*")
@@ -48,7 +40,7 @@ set(PROJECT_CMAKE_CONF_DIR "conf.d")
 
 # Compilation Mode (DEBUG, RELEASE, COVERAGE or PROFILING)
 # ----------------------------------
-#set(BUILD_TYPE "DEBUG")
+set(BUILD_TYPE "RELEASE")
 #set(USE_EFENCE 1)
 
 # Kernel selection if needed. You can choose between a
@@ -74,11 +66,13 @@ set (gcc_minimal_version 4.9)
 set (PKG_REQUIRED_LIST
        json-c
        afb-daemon
+       ilmControl
+       ilmCommon
 )
 
 # You can also consider to include libsystemd
 # -----------------------------------
-#list (APPEND PKG_REQUIRED_LIST libsystemd>=222)
+list (APPEND PKG_REQUIRED_LIST libsystemd>=222)
 
 # Prefix path where will be installed the files
 # Default: /usr/local (need root permission to write in)
@@ -87,7 +81,7 @@ set (PKG_REQUIRED_LIST
 
 # Customize link option
 # -----------------------------
-#list(APPEND link_libraries -an-option)
+list (APPEND link_libraries -pthread)
 
 # Compilation options definition
 # Use CMake generator expressions to specify only for a specific language
@@ -146,9 +140,7 @@ set (PKG_REQUIRED_LIST
 # template which is very simple and it is highly probable that it will not suit
 # to your app.
 # -----------------------------------------
-#set(WIDGET_ICON "conf.d/wgt/${PROJECT_ICON}" CACHE PATH "Path to the widget icon")
-#set(WIDGET_CONFIG_TEMPLATE "${CMAKE_CURRENT_SOURCE_DIR}/conf.d/wgt/config.xml.in" CACHE PATH "Path to widget config file template (config.xml.in)")
-#set(TEST_WIDGET_CONFIG_TEMPLATE "${CMAKE_CURRENT_SOURCE_DIR}/conf.d/wgt/test-config.xml.in" CACHE PATH "Path to the test widget config file template (test-config.xml.in)")
+set(WIDGET_CONFIG_TEMPLATE ${CMAKE_CURRENT_SOURCE_DIR}/conf.d/wgt/config.xml.in)
 
 # Mandatory widget Mimetype specification of the main unit
 # --------------------------------------------------------------------------
@@ -165,14 +157,14 @@ set (PKG_REQUIRED_LIST
 #      content.src designates the relative path of the binary.
 #      For such application, only security setup is made.
 #
-set(WIDGET_TYPE MimeType_Not_Set)
+set(WIDGET_TYPE application/vnd.agl.service)
 
 # Mandatory Widget entry point file of the main unit
 # --------------------------------------------------------------
 # This is the file that will be executed, loaded,
 # at launch time by the application framework.
 #
-set(WIDGET_ENTRY_POINT EntryPoint_Path_Not_Set)
+set(WIDGET_ENTRY_POINT lib/windowmanager-service.so)
 
 # Optional dependencies order
 # ---------------------------