-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
41 lines (32 loc) · 851 Bytes
/
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
project('stx-gimp-plugin', 'cpp')
add_global_arguments('-std=c++17', language : 'cpp')
# Support enum values combining
add_project_arguments('-fpermissive', language : 'cpp')
# Sources
sources = [
'src/main.cpp',
'src/gimp_interop.cpp',
'src/dialog.cpp'
]
include = include_directories('include')
# Dependencies
gimp_dep = dependency('gimp-2.0')
gimpui_dep = dependency('gimpui-2.0')
giomm_dep = dependency('giomm-2.4')
ui_proj = subproject('ui')
ui_dep = ui_proj.get_variable('ui_dep')
stx_proj = subproject('stx')
stx_dep = stx_proj.get_variable('stx_dep')
neither_proj = subproject('neither')
neither_dep = neither_proj.get_variable('neither_dep')
# Outputs
executable('file-stx', sources,
include_directories : include,
dependencies : [
gimp_dep,
gimpui_dep,
giomm_dep,
ui_dep,
stx_dep,
neither_dep
])