aboutsummaryrefslogtreecommitdiff
path: root/meson.build
blob: 88da653c49111c730ed75b8c94522fdbde0c8b17 (plain)
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
project('gsr-notify', ['cpp'], version : '1.0.0', default_options : ['warning_level=2'], subproject_dir : 'depends')

if get_option('buildtype') == 'debug'
    add_project_arguments('-g3', language : ['cpp'])
elif get_option('buildtype') == 'release'
    add_project_arguments('-DNDEBUG', language : ['cpp'])
endif

src = [
    'src/main.cpp',
]

mglpp_proj = subproject('mglpp')
mglpp_dep = mglpp_proj.get_variable('mglpp_dep')

dep = [
    mglpp_dep,
    dependency('xext'),
]

prefix = get_option('prefix')
datadir = get_option('datadir')
gsr_notify_resources_path = join_paths(prefix, datadir, 'gsr-notify')

executable(
    meson.project_name(),
    src,
    install : true,
    dependencies : dep,
    cpp_args : '-DGSR_NOTIFY_RESOURCES_PATH="' + gsr_notify_resources_path + '"',
)

install_subdir('images', install_dir : gsr_notify_resources_path)
install_subdir('fonts', install_dir : gsr_notify_resources_path)