Commit a243fce1 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz

build: Squeekboard build in meson

parent c8059ebf
......@@ -5,12 +5,18 @@ stages:
before_script:
- apt-get -y update
- apt-get -y install gnome-common gtk-doc-tools libglib2.0-dev-bin gobject-introspection libglib2.0-dev libpango1.0-dev libgtk-3-dev libxklavier-dev libcroco3-dev
- apt-get -y install gnome-common gtk-doc-tools libglib2.0-dev-bin gobject-introspection libglib2.0-dev libpango1.0-dev libgtk-3-dev libxklavier-dev libcroco3-dev meson
build_automake:
stage: build
tags:
- librem5
script:
- ./autogen.sh --enable-vala=no --enable-xtest=no
- ./autogen.sh --enable-vala=no --enable-xtest=no --prefix=`pwd`/../eekboard-install/
- make
- make install
- mkdir -p ../build
- PKG_CONFIG_PATH=`pwd`/../eekboard-install/lib/pkgconfig/ meson ../build/ --prefix=`pwd`/../squeekboard-install/
- cd ../build
- PKG_CONFIG_PATH=`pwd`/../eekboard-install/lib/pkgconfig/ ninja install
project(
'squeekboard',
'c',
version: '1.0.9',
license: 'GPLv3',
meson_version: '>=0.40.1',
default_options: [ 'warning_level=1', 'buildtype=debugoptimized', 'c_std=gnu11' ],
)
prefix = get_option('prefix')
datadir = join_paths(prefix, get_option('datadir'))
pkgdatadir = join_paths(datadir, meson.project_name())
install_data(
'data/themes/default.css',
install_dir: pkgdatadir + '/themes',
)
subdir('src')
sources = [
'server-service.c',
'server-context-service.c',
'server-main.c',
]
deps = [
# dependency('glib-2.0', version: '>=2.26.0'),
dependency('gio-2.0', version: '>=2.26.0'),
dependency('gtk+-3.0', version: '>=3.0'),
dependency('eekboard-0.90'),
dependency('eek-gtk-0.90'),
]
# Replacement for eekboard-server
squeekboard = executable('squeekboard',
sources,
dependencies: deps,
install: true,
c_args: '-DTHEMESDIR="' + pkgdatadir + '/themes"',
)
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