-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
43 lines (34 loc) · 1.09 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
project('penguintuner', 'c', version: '0.4.4')
cc = meson.get_compiler('c')
gnome = import('gnome')
if meson.is_cross_build()
architecture = meson.get_cross_property('host_arch')
else
architecture = get_option('architecture')
endif
gtkdep = dependency('gtk+-3.0')
curldep = dependency('libcurl')
sshdep = dependency('libssh')
src = [ 'src/application.c',
'src/robot_controller.c',
'src/can_devices.c',
'src/app_callbacks.c']
inc = include_directories(['include',
'backend/headers'])
if architecture == 'macos'
backend = 'backend/lib/macos/libpenguinbackend.dylib'
else
backend = 'backend/lib/' + architecture + '/libpenguinbackend.so'
endif
gresources = gnome.compile_resources( 'app_resources_ui',
'src/app_resources_ui.gresource.xml',
source_dir: 'src')
install_data(backend, install_dir: 'lib')
executable(meson.project_name(),
gresources,
src,
include_directories : inc,
dependencies : [gtkdep, curldep, sshdep],
install: true,
install_dir: 'bin',
objects: backend)