summaryrefslogtreecommitdiffstats
path: root/autobuild/agl
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2020-03-20 20:27:30 +0100
committerRaquel Medina <raquel.medina@konsulko.com>2020-03-20 20:36:56 +0100
commitccaa38f2ecb44535dc1d79a4bbcb7b277399793d (patch)
treeb9c893436a3de681223d1914d74bfb07dfe39f41 /autobuild/agl
parenta551556be8b780e906eeb89ddc92fb5d0cd58f03 (diff)
update autobuild scripts
Modify autobuild scripts: - to fix warnings on yocto build - to fix linux/autobuild syntax errors - to add new standard targets Bug-AGL: SPEC-2049 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I69c423ba8d17a34cef9a933a99d86cfd55d1e257
Diffstat (limited to 'autobuild/agl')
-rwxr-xr-xautobuild/agl/autobuild46
1 files changed, 43 insertions, 3 deletions
diff --git a/autobuild/agl/autobuild b/autobuild/agl/autobuild
index e87a1c3..154645d 100755
--- a/autobuild/agl/autobuild
+++ b/autobuild/agl/autobuild
@@ -16,9 +16,12 @@
THISFILE := $(lastword $(MAKEFILE_LIST))
BUILD_DIR := $(abspath $(dir $(THISFILE))/../../build)
+BUILD_DIR_TEST := $(abspath $(dir $(THISFILE))/../../build-test)
+BUILD_DIR_DEBUG := $(abspath $(dir $(THISFILE))/../../build-debug)
+BUILD_DIR_COVERAGE := $(abspath $(dir $(THISFILE))/../../build-coverage)
DEST := ${BUILD_DIR}
-.PHONY: all clean distclean configure build package help
+.PHONY: all clean distclean configure build package help configure-debug configure-coverage build-debug build-coverage package-test package-debug package-coverage package-debug package-all
all: help
@@ -40,19 +43,56 @@ clean:
@([ -d ${BUILD_DIR} ] && make -C ${BUILD_DIR} ${CLEAN_ARGS} clean) || echo Nothing to clean
distclean:
+ @[ -d ${DEST} ] && find ${DEST} -name "*.wgt" -delete
@([ -d ${BUILD_DIR} ] && make -C ${BUILD_DIR} distclean) || echo Nothing to distclean
configure:
@[ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}
@[ -f ${BUILD_DIR}/Makefile ] || (cd ${BUILD_DIR} && qmake ${CONFIGURE_ARGS} ..)
+configure-test:
+ @[ -d ${BUILD_DIR_TEST} ] || mkdir -p ${BUILD_DIR_TEST}
+ @[ -f ${BUILD_DIR_TEST}/Makefile ] || (cd ${BUILD_DIR_TEST} && qmake ${CONFIGURE_ARGS} ..)
+
+configure-debug:
+ @[ -d ${BUILD_DIR_DEBUG} ] || mkdir -p ${BUILD_DIR_DEBUG}
+ @[ -f ${BUILD_DIR_DEBUG}/Makefile ] || (cd ${BUILD_DIR_DEBUG} && qmake ${CONFIGURE_ARGS} ..)
+
+configure-coverage:
+ @[ -d ${BUILD_DIR_COVERAGE} ] || mkdir -p ${BUILD_DIR_COVERAGE}
+ @[ -f ${BUILD_DIR_COVERAGE}/Makefile ] || (cd ${BUILD_DIR_COVERAGE} && qmake ${CONFIGURE_ARGS} ..)
build: configure
@make -C ${BUILD_DIR} ${BUILD_ARGS} all
+build-test: configure-test
+ @make -C ${BUILD_DIR_TEST} ${BUILD_ARGS} all
+
+build-debug: configure-debug
+ @make -C ${BUILD_DIR_DEBUG} ${BUILD_ARGS} all
+
+build-coverage: configure-coverage
+ @make -C ${BUILD_DIR_COVERAGE} ${BUILD_ARGS} all
+
+install: build
+ @make -C ${BUILD_DIR} ${INSTALL_ARGS} install
package: build
@if [ "${DEST}" != "${BUILD_DIR}/$@" ]; then \
mkdir -p ${DEST} && cp ${BUILD_DIR}/$@/*.wgt ${DEST}; \
fi
-install: build
- @make -C ${BUILD_DIR} ${INSTALL_ARGS} install
+package-test: build-test
+ @if [ "${DEST}" != "${BUILD_DIR_TEST}" ]; then \
+ mkdir -p ${DEST} && cp ${BUILD_DIR_TEST}/package/*.wgt ${DEST}; \
+ fi
+
+package-debug: build-debug
+ @if [ "${DEST}" != "${BUILD_DIR_DEBUG}" ]; then \
+ mkdir -p ${DEST} && cp ${BUILD_DIR_DEBUG}/package/*.wgt ${DEST}; \
+ fi
+
+package-coverage: build-coverage
+ @if [ "${DEST}" != "${BUILD_DIR_COVERAGE}" ]; then \
+ mkdir -p ${DEST} && cp ${BUILD_DIR_COVERAGE}/package/*.wgt ${DEST}; \
+ fi
+
+package-all: package package-test package-coverage package-debug