This repository has been archived by the owner on Jul 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathtest_meson.build
74 lines (59 loc) · 1.67 KB
/
test_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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
project('com.github.bcedu.vgrive', 'c', 'vala', version: '1.0.0')
gnome = import('gnome')
i18n = import('i18n')
# Set our translation domain
add_project_arguments(
'-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()),
language:'c'
)
# Install files listed in gresources
asresources = gnome.compile_resources(
'as-resources',
join_paths('data', 'resources', meson.project_name() + '.gresource.xml'),
source_dir: 'data',
c_name: 'as'
)
srcs = files([
'src/configs/Constants.vala',
'src/configs/Settings.vala',
'src/widgets/HeaderBar.vala',
'src/views/AppView.vala',
'src/views/InitialView.vala',
'src/views/LogInView.vala',
'src/views/SyncView.vala',
'src/views/ViewConf.vala',
'src/VGriveClient.vala',
'src/controllers/ViewController.vala',
'src/controllers/AppController.vala',
'src/Application.vala',
'src/Window.vala',
'tests/test.vala',
'tests/vgrive_tests.vala'])
# Dependences
deps = [
dependency('gio-2.0'),
dependency('gtk+-3.0'),
dependency('granite'),
dependency('gee-0.8'),
dependency('json-glib-1.0'),
dependency('libsoup-2.4'),
]
libunity_dep = dependency('unity', required : false)
if libunity_dep.found()
add_project_arguments('-D', 'LIBUNITY', language: 'vala')
deps += [libunity_dep]
endif
libappindicator_dep = dependency('appindicator3-0.1', required : false)
if libappindicator_dep.found()
add_project_arguments('-D', 'LIBAPPINDICATOR', language: 'vala')
deps += [libappindicator_dep]
endif
executable(
meson.project_name(),
srcs,
asresources,
dependencies: deps,
install: true
)
subdir('data')
meson.add_install_script('meson/post_install.py')