summaryrefslogtreecommitdiffstats
path: root/cmake/common.cmake
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-11-17 16:24:40 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:48 +0200
commit518e3a766cdb5583695d44c56cf7e15e259725d9 (patch)
treec43e237445de2725a312440461869a3bbe6ac5e7 /cmake/common.cmake
parent322cd1f558b0209e966e38e8bab166b74f3c21a6 (diff)
Check version between app-templates and project.
PROJECT_VERSION could be detected if project is located in AGL gerrit repo or with personal tags when in personal repository This version is checked against app-templates version which is aligned on AGL tags. A warning is displayed if app-templates version is outdated related to project_version. Also a "dirty" flag is appended to the project version if git repo isn't in sync with its remote counterpart. Then you could know if see an installed widget on a target that got that "-dirty" flag appended to the version that this widget include code that could not be merged in the git repository. Bug-AGL: SPEC-951 Change-Id: I99687560d19d746c887fc7a095e71407bda34325 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'cmake/common.cmake')
-rw-r--r--cmake/common.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/common.cmake b/cmake/common.cmake
index 191ef9e..c6853ea 100644
--- a/cmake/common.cmake
+++ b/cmake/common.cmake
@@ -87,6 +87,7 @@ configure_files_in_dir(${PROJECT_APP_TEMPLATES_DIR}/${ENTRY_POINT}/template.d)
configure_files_in_dir($ENV{HOME}/.config/app-templates/scripts)
configure_files_in_dir(/etc/app-templates/scripts)
+check_version()
project_targets_populate()
remote_targets_populate()
project_package_build()