Commit 19fd17f6 authored by Hanspeter Portner's avatar Hanspeter Portner

meson: update gitlab CI recipe.

parent 4561dd6e
Pipeline #22152785 passed with stages
in 7 minutes and 49 seconds
stages:
- build
- test
- deploy
.variables_template: &variables_definition
variables:
BASE_NAME: "moony.lv2"
PKG_CONFIG_PATH: "/opt/lv2/lib/pkgconfig:/opt/${CI_BUILD_NAME}/lib/pkgconfig:/usr/lib/${CI_BUILD_NAME}/pkgconfig"
TOOLCHAIN_FILE: "${CI_PROJECT_DIR}/cmake/${CI_BUILD_NAME}.cmake"
TOOLCHAIN_FILE: "meson/${CI_BUILD_NAME}"
.common_template: &common_definition
<<: *variables_definition
......@@ -19,23 +20,21 @@ stages:
.build_template: &build_definition
<<: *common_definition
script:
- mkdir build
- pushd build
- cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=0 -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="/opt/${CI_BUILD_NAME}" --libdir="lib" --cross-file "${TOOLCHAIN_FILE}" build
- ninja -C build
- ninja -C build install
- mkdir -p "${BASE_NAME}-$(cat VERSION)/${CI_BUILD_NAME}/${BASE_NAME}"
- cp -r "/opt/${CI_BUILD_NAME}/lib/lv2/${BASE_NAME}/" "${BASE_NAME}-$(cat VERSION)/${CI_BUILD_NAME}/"
.test_template: &test_definition
<<: *common_definition
script:
- mkdir build
- pushd build
- cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=1 -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
- ARGS='-VV' make test
- meson --prefix="/opt/${CI_BUILD_NAME}" --libdir="lib" --cross-file "${TOOLCHAIN_FILE}" build
- ninja -C build
- ninja -C build install
- mkdir -p "${BASE_NAME}-$(cat VERSION)/${CI_BUILD_NAME}/${BASE_NAME}"
- cp -r "/opt/${CI_BUILD_NAME}/lib/lv2/${BASE_NAME}/" "${BASE_NAME}-$(cat VERSION)/${CI_BUILD_NAME}/"
- ninja -C build test
.universal_linux_template: &universal_linux_definition
image: ventosus/universal-linux-gnu
......
This diff is collapsed.
......@@ -2,7 +2,7 @@ project('moony.lv2', 'c', default_options : [
'buildtype=release',
'warning_level=1',
'werror=false',
'b_lto=true',
'b_lto=false',
'c_std=c11'])
cc = meson.get_compiler('c')
......@@ -156,6 +156,7 @@ api_lib = static_library('api',
join_paths('api', 'api_time.c'),
join_paths('api', 'api_vm.c'),
include_directories : inc_dir,
dependencies : dsp_deps,
c_args : c_args)
dsp_links = [laes128_lib, lascii85_lib, lbase64_lib, lcomplex_lib, lmathx_lib, lrandom_lib, lpeg_lib, lua_lib, tlsf_lib, api_lib]
......@@ -437,7 +438,8 @@ hilight_lua = custom_target('hilight_lua',
command : clone,
install : false)
custom_target('manual_html',
if host_machine.system() != 'darwin'
custom_target('manual_html',
input : hilight_lua,
output : 'manual.html',
capture : true,
......@@ -446,11 +448,12 @@ custom_target('manual_html',
install : true,
install_dir : inst_dir)
test('API', app,
test('API', app,
args : [moony_test_lua])
test('Overflow', app,
test('Overflow', app,
args : [moony_overflow_lua, '0'])
test('Manual', app,
test('Manual', app,
args : [moony_manual_lua])
test('Presets', app,
test('Presets', app,
args : [moony_presets_lua])
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment