This repository has been archived by the owner on Jun 4, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
meson.build
119 lines (109 loc) · 3.6 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
liberate_resources = gnome.compile_resources(
'liberate-resources', 'ext/liberate/data/gresource.xml',
source_dir: 'ext/liberate/data',
c_name: 'liberate'
)
liberate = ['Liberate', 'Reader']
tokenized = ['AutomaticScrollBox', 'Completer', 'tokenized']
sources = ['Odysseus', 'BrowserWindow', 'Persistance']
widgets = ['WebTab','ProgressBin','WebNotebook','DownloadButton','DownloadBar', 'Chromeless', 'VerticalTabs']
header_widgets = ['AddressBar2', 'ButtonWithMenu', 'HeaderBarWithMenus']
overlay_widgets = ['FindToolbar', 'InfoContainer', 'Bookmarker']
traits = ['init', 'download-progress', 'download-window']
nav_traits = ['autodownload', 'persist-tab-history', 'newtab', 'history',
'errors', 'other-types', 'screenshot-proxy', 'viewsource', 'spring-clean',
'harvest-recommendations']
decor_traits = ['alert', 'permit', 'settings', 'internal-favicons', 'AutoScroll',
'fix-plus.google.com', 'fix-bg-videos', 'addressbar-autofocus',
'notifications']
complete_traits = ['imply-http', 'duckduckgo', 'ddg-autocomplete', 'history', 'bookmarks']
indicators = ['https', 'local', 'webfeed', 'liberate']
services = ['pages', 'globals', 'icons']
db_services = ['database', 'util', 'prosody', 'completer', 'psuedorest', 'tagging']
prosody = ['parser', 'lib', 'data', 'expression', 'writers', 'loader',
'slice']
prosody_misc = ['json', 'http', 'diff', 'i18n', 'tsv', 'favicons', 'test',
'AppStream', 'mimeinfo']
prosody_misc = ['http', 'AppStream', 'mimeinfo', 'favicons',
'json', 'tsv', 'xml',
'diff', 'test', 'i18n']
models = ['Download', 'DownloadSet', 'ImageUtil', 'I18nUtil', 'StatusIndicator', 'Links']
foreach f : liberate
sources += ['ext/liberate/' + f]
endforeach
foreach f : tokenized
sources += ['ext/tokenized-entry/' + f]
endforeach
foreach f : header_widgets
widgets += ['header/' + f]
endforeach
foreach f : overlay_widgets
widgets += ['overlays/' + f]
endforeach
foreach f : widgets
sources += ['Widgets/' + f]
endforeach
foreach f : nav_traits
traits += ['navigate/' + f]
endforeach
foreach f : decor_traits
traits += ['decorate/' + f]
endforeach
foreach f : complete_traits
traits += ['autocomplete/' + f]
endforeach
foreach f : indicators
traits += ['status/' + f]
endforeach
foreach f : traits
sources += ['Traits/' + f]
endforeach
foreach f : db_services
services += ['database/' + f]
endforeach
foreach f : prosody_misc
prosody += ['misc/' + f]
endforeach
foreach f : prosody
services += ['Prosody/' + f]
endforeach
foreach f : services
sources += ['Services/' + f]
endforeach
foreach f : models
sources += ['Models/' + f]
endforeach
source_files = [about_pages, sql_scripts, l10n_pages, liberate_resources]
foreach f : sources
source_files += [f + '.vala']
endforeach
c_args = ['-DGCR_API_SUBJECT_TO_CHANGE', '-include', 'config.h']
posix_dep = meson.get_compiler('vala').find_library('posix')
dependencies = [
dependency('gtk+-3.0'),
dependency('granite'),
dependency('webkit2gtk-4.0'),
dependency('json-glib-1.0'),
dependency('gee-0.8'),
dependency('libsoup-2.4'),
dependency('sqlite3'),
posix_dep,
dependency('libxml-2.0'),
]
vala_args = []
if get_option('appstream')
dependencies += [dependency('appstream')]
vala_args += ['--define=HAVE_APPSTREAM']
endif
if get_option('gcr')
dependencies += [dependency('gcr-3')]
vala_args += ['--define=HAVE_GCR3']
endif
executable('com.github.alcinnz.odysseus',
source_files,
c_args: c_args,
link_args: ['-lm'],
vala_args: vala_args,
dependencies: dependencies,
install: true
)