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: stages:
- build - build
- test
- deploy - deploy
.variables_template: &variables_definition .variables_template: &variables_definition
variables: variables:
BASE_NAME: "moony.lv2" BASE_NAME: "moony.lv2"
PKG_CONFIG_PATH: "/opt/lv2/lib/pkgconfig:/opt/${CI_BUILD_NAME}/lib/pkgconfig:/usr/lib/${CI_BUILD_NAME}/pkgconfig" 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 .common_template: &common_definition
<<: *variables_definition <<: *variables_definition
...@@ -19,23 +20,21 @@ stages: ...@@ -19,23 +20,21 @@ stages:
.build_template: &build_definition .build_template: &build_definition
<<: *common_definition <<: *common_definition
script: script:
- mkdir build - meson --prefix="/opt/${CI_BUILD_NAME}" --libdir="lib" --cross-file "${TOOLCHAIN_FILE}" build
- pushd build - ninja -C 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} .. - ninja -C build install
- cmake .. # needed for darwin - mkdir -p "${BASE_NAME}-$(cat VERSION)/${CI_BUILD_NAME}/${BASE_NAME}"
- make - cp -r "/opt/${CI_BUILD_NAME}/lib/lv2/${BASE_NAME}/" "${BASE_NAME}-$(cat VERSION)/${CI_BUILD_NAME}/"
- make install
.test_template: &test_definition .test_template: &test_definition
<<: *common_definition <<: *common_definition
script: script:
- mkdir build - meson --prefix="/opt/${CI_BUILD_NAME}" --libdir="lib" --cross-file "${TOOLCHAIN_FILE}" build
- pushd build - ninja -C 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} .. - ninja -C build install
- cmake .. # needed for darwin - mkdir -p "${BASE_NAME}-$(cat VERSION)/${CI_BUILD_NAME}/${BASE_NAME}"
- make - cp -r "/opt/${CI_BUILD_NAME}/lib/lv2/${BASE_NAME}/" "${BASE_NAME}-$(cat VERSION)/${CI_BUILD_NAME}/"
- make install - ninja -C build test
- ARGS='-VV' make test
.universal_linux_template: &universal_linux_definition .universal_linux_template: &universal_linux_definition
image: ventosus/universal-linux-gnu image: ventosus/universal-linux-gnu
......
This diff is collapsed.
...@@ -2,7 +2,7 @@ project('moony.lv2', 'c', default_options : [ ...@@ -2,7 +2,7 @@ project('moony.lv2', 'c', default_options : [
'buildtype=release', 'buildtype=release',
'warning_level=1', 'warning_level=1',
'werror=false', 'werror=false',
'b_lto=true', 'b_lto=false',
'c_std=c11']) 'c_std=c11'])
cc = meson.get_compiler('c') cc = meson.get_compiler('c')
...@@ -156,6 +156,7 @@ api_lib = static_library('api', ...@@ -156,6 +156,7 @@ api_lib = static_library('api',
join_paths('api', 'api_time.c'), join_paths('api', 'api_time.c'),
join_paths('api', 'api_vm.c'), join_paths('api', 'api_vm.c'),
include_directories : inc_dir, include_directories : inc_dir,
dependencies : dsp_deps,
c_args : c_args) 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] dsp_links = [laes128_lib, lascii85_lib, lbase64_lib, lcomplex_lib, lmathx_lib, lrandom_lib, lpeg_lib, lua_lib, tlsf_lib, api_lib]
...@@ -437,20 +438,22 @@ hilight_lua = custom_target('hilight_lua', ...@@ -437,20 +438,22 @@ hilight_lua = custom_target('hilight_lua',
command : clone, command : clone,
install : false) install : false)
custom_target('manual_html', if host_machine.system() != 'darwin'
input : hilight_lua, custom_target('manual_html',
output : 'manual.html', input : hilight_lua,
capture : true, output : 'manual.html',
command : [app, '@INPUT@'], capture : true,
depends : [lexer_lua, moony_lua, manual_html_in], command : [app, '@INPUT@'],
install : true, depends : [lexer_lua, moony_lua, manual_html_in],
install_dir : inst_dir) install : true,
install_dir : inst_dir)
test('API', app,
args : [moony_test_lua]) test('API', app,
test('Overflow', app, args : [moony_test_lua])
args : [moony_overflow_lua, '0']) test('Overflow', app,
test('Manual', app, args : [moony_overflow_lua, '0'])
args : [moony_manual_lua]) test('Manual', app,
test('Presets', app, args : [moony_manual_lua])
args : [moony_presets_lua]) 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