aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2018-03-31 19:29:02 +0200
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2018-04-01 00:24:08 +0200
commit43fd22576fb61a868cc585c00804c91dfc9b4968 (patch)
treeb1a62823014e56cf9cf69294fd6144cb8ac972b2 /.gitlab-ci.yml
parent5f497899453d4d6846d4892ccaf303071074d9c5 (diff)
downloadrouter.lv2-43fd22576fb61a868cc585c00804c91dfc9b4968.zip
router.lv2-43fd22576fb61a868cc585c00804c91dfc9b4968.tar.gz
router.lv2-43fd22576fb61a868cc585c00804c91dfc9b4968.tar.bz2
router.lv2-43fd22576fb61a868cc585c00804c91dfc9b4968.tar.xz
Initial migration to meson.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml11
1 files changed, 4 insertions, 7 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 73a94ff..86d94db 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,7 @@ stages:
variables:
BASE_NAME: "router.lv2"
PKG_CONFIG_PATH: "/opt/lv2/lib/pkgconfig:/opt/${CI_BUILD_NAME}/lib/pkgconfig"
- TOOLCHAIN_FILE: "${CI_PROJECT_DIR}/cmake/${CI_BUILD_NAME}.cmake"
+ TOOLCHAIN_FILE: "${CI_PROJECT_DIR}/meson/${CI_BUILD_NAME}"
.common_template: &common_definition
<<: *variables_definition
@@ -20,12 +20,9 @@ stages:
.build_template: &build_definition
<<: *common_definition
script:
- - mkdir build
- - pushd build
- - cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${CI_PROJECT_DIR} -DPLUGIN_DEST="${BASE_NAME}-$(cat ../VERSION)/${CI_BUILD_NAME}/${BASE_NAME}" -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} ..
- - cmake .. # needed for darwin
- - make
- - make install
+ - meson --prefix=/ --cross-file "${TOOLCHAIN_FILE}" build
+ - ninja -C build
+ - DESTDIR="${CI_PROJECT_DIR}/${BASE_NAME}-$(cat VERSION)/${CI_BUILD_NAME}" ninja -C build install
.universal_linux_template: &universal_linux_definition
image: ventosus/universal-linux-gnu