summaryrefslogtreecommitdiffstats
path: root/autobuild
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-06-28 09:49:50 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-06-28 09:49:50 +0200
commit08f6a2af804fc7a7cfe8656a8dff00c245db6c15 (patch)
tree28fbada60e0cd04ad147acc35d9dca708db045f4 /autobuild
parent393a4f164218c8a92b43f666f4cc4177fd1e3a1d (diff)
templated autobuild script generation.
Change-Id: Ie7e411f30a30e073570c546aeec6ee05972f8e2a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'autobuild')
-rwxr-xr-xautobuild/agl/autobuild.in (renamed from autobuild/agl/autobuild)4
-rwxr-xr-xautobuild/linux/autobuild.in (renamed from autobuild/linux/autobuild)8
2 files changed, 6 insertions, 6 deletions
diff --git a/autobuild/agl/autobuild b/autobuild/agl/autobuild.in
index b4c7625..e664213 100755
--- a/autobuild/agl/autobuild
+++ b/autobuild/agl/autobuild.in
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-BUILD_DIR := ../build
-PACKAGING_DIR := packaging/
+BUILD_DIR := @DPROJECT_BINARY_DIR@
+PACKAGING_DIR := @PROJECT_PKG_ENTRY_POINT@
VPATH = etc:$(PACKAGING_DIR):$(PACKAGING_DIR)/etc:$(BUILD_DIR)
diff --git a/autobuild/linux/autobuild b/autobuild/linux/autobuild.in
index b4c7625..0ff3384 100755
--- a/autobuild/linux/autobuild
+++ b/autobuild/linux/autobuild.in
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-BUILD_DIR := ../build
-PACKAGING_DIR := packaging/
+BUILD_DIR := @CMAKE_BINARY_DIR@
+PACKAGING_DIR := @PROJECT_PKG_ENTRY_POINT@
VPATH = etc:$(PACKAGING_DIR):$(PACKAGING_DIR)/etc:$(BUILD_DIR)
@@ -41,8 +41,8 @@ package: build
@mkdir -p ${BUILD_DIR}/$@/htdocs
@mkdir -p ${BUILD_DIR}/$@/data
@mkdir -p ${DEST}
- @cmake --build ${BUILD_DIR} --target widget
- @cp ${BUILD_DIR}/*wgt ${DEST}
+ @cmake --build ${BUILD_DIR} --target packaging
+ @cmake --build ${BUILD_DIR} --target all
${BUILD_DIR}/Makefile:
@[ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}