aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2018-05-19 16:17:56 +0200
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2018-05-19 16:17:56 +0200
commit5600aea2ece43f84eb43e5818911ffa34a53a36e (patch)
treeb723b4388f5d128a08ad6e2619682cb95c4baf7a
parent0c42030406c4cbc841dcbe82b7a4d31c456f36de (diff)
downloadser_atom.lv2-5600aea2ece43f84eb43e5818911ffa34a53a36e.zip
ser_atom.lv2-5600aea2ece43f84eb43e5818911ffa34a53a36e.tar.gz
ser_atom.lv2-5600aea2ece43f84eb43e5818911ffa34a53a36e.tar.bz2
ser_atom.lv2-5600aea2ece43f84eb43e5818911ffa34a53a36e.tar.xz
initial migration to meson.
-rw-r--r--.gitlab-ci.yml60
-rw-r--r--README.md13
-rw-r--r--VERSION1
-rw-r--r--meson.build26
-rw-r--r--test/Makefile13
5 files changed, 98 insertions, 15 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..9846434
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,60 @@
+stages:
+ - test
+
+.variables_template: &variables_definition
+ variables:
+ BASE_NAME: "ser_atom.lv2"
+ PKG_CONFIG_PATH: "/opt/lv2/lib/pkgconfig:/opt/${CI_BUILD_NAME}/lib/pkgconfig:/usr/lib/${CI_BUILD_NAME}/pkgconfig"
+
+.common_template: &common_definition
+ <<: *variables_definition
+ stage: test
+
+.build_template: &build_definition
+ <<: *common_definition
+ script:
+ - meson --cross-file "${CI_BUILD_NAME}" build
+ - ninja -C build
+
+.test_template: &test_definition
+ <<: *common_definition
+ script:
+ - meson --cross-file "${CI_BUILD_NAME}" build
+ - ninja -C build
+ - cd build
+ - meson test --verbose --wrap "${CI_BUILD_NAME}.wrap"
+
+.universal_linux_template: &universal_linux_definition
+ image: ventosus/universal-linux-gnu
+ <<: *test_definition
+
+.arm_linux_template: &arm_linux_definition
+ image: ventosus/arm-linux-gnueabihf
+ <<: *test_definition
+
+.universal_w64_template: &universal_w64_definition
+ image: ventosus/universal-w64-mingw32
+ <<: *test_definition
+
+.universal_apple_template: &universal_apple_definition
+ image: ventosus/universal-apple-darwin
+ <<: *build_definition
+
+# building in docker
+x86_64-linux-gnu:
+ <<: *universal_linux_definition
+
+i686-linux-gnu:
+ <<: *universal_linux_definition
+
+arm-linux-gnueabihf:
+ <<: *arm_linux_definition
+
+x86_64-w64-mingw32:
+ <<: *universal_w64_definition
+
+i686-w64-mingw32:
+ <<: *universal_w64_definition
+
+universal-apple-darwin:
+ <<: *universal_apple_definition
diff --git a/README.md b/README.md
index 21efd1b..00e0e03 100644
--- a/README.md
+++ b/README.md
@@ -2,9 +2,18 @@
## General purpose LV2 atom forge serializer
-### Reference
+### Build Status
-* <http://lv2plug.in/ns/ext/urid>
+[![build status](https://gitlab.com/OpenMusicKontrollers/ser_atom.lv2/badges/master/build.svg)](https://gitlab.com/OpenMusicKontrollers/ser_atom.lv2/commits/master)
+
+### Build / test
+
+ git clone https://git.open-music-kontrollers.ch/lv2/ser_atom.lv2
+ cd ser_atom.lv2
+ meson build
+ cd build
+ ninja -j4
+ ninja test
### License
diff --git a/VERSION b/VERSION
new file mode 100644
index 0000000..17e51c3
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+0.1.1
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..16943c1
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,26 @@
+project('ser_atom.lv2', 'c', default_options : [
+ 'buildtype=release',
+ 'warning_level=3',
+ 'werror=true',
+ 'b_lto=true',
+ 'c_std=c11'])
+
+version = run_command('cat', 'VERSION').stdout().strip()
+
+add_project_arguments('-D_GNU_SOURCE', language : 'c')
+
+conf_data = configuration_data()
+cc = meson.get_compiler('c')
+
+lv2_dep = dependency('lv2')
+deps = [lv2_dep]
+
+c_args = []
+
+ser_atom_test = executable('ser_atom_test',
+ join_paths('test', 'ser_atom_test.c'),
+ c_args : c_args,
+ dependencies : deps,
+ install : false)
+
+test('Test', ser_atom_test)
diff --git a/test/Makefile b/test/Makefile
deleted file mode 100644
index 95a84de..0000000
--- a/test/Makefile
+++ /dev/null
@@ -1,13 +0,0 @@
-CC ?= gcc
-C_FLAGS ?= -I../ -Wall -Wextra -Wpedantic $(shell pkg-config --cflags lv2) \
- -fprofile-arcs -ftest-coverage
-
-all: ser_atom_test
-
-ser_atom_test: ser_atom_test.c ../ser_atom.lv2/ser_atom.h
- $(CC) -std=c11 -g -o $@ $< $(C_FLAGS)
- valgrind ./$@
- gcov $<
-
-clean:
- rm -f ser_atom_test *.gcov *.gc*