aboutsummaryrefslogtreecommitdiff
path: root/3rd-party/SingleApplication/meson.build
blob: f08b50e5f088454444b6efc22643c2b9e000fa05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SingleApplication_inc = include_directories('SingleApplication.git')

SingleApplication_moc = mod_qt5.preprocess(
    moc_headers: ['SingleApplication.git/singleapplication.h', 'SingleApplication.git/singleapplication_p.h'],
    moc_extra_arguments: ['-DQAPPLICATION_CLASS=QApplication'],
    dependencies: dep_qt5
)

SingleApplication_lib = static_library('SingleApplication', 
    ['SingleApplication.git/singleapplication.cpp', 'SingleApplication.git/singleapplication_p.cpp', SingleApplication_moc],
    include_directories: SingleApplication_inc,
    cpp_args : '-DQAPPLICATION_CLASS=QApplication',
    dependencies: dep_qt5
)

dep_SingleApplication = declare_dependency(
    include_directories: SingleApplication_inc,
    link_with: SingleApplication_lib
)

# On windows, SingleApplication needs to be linked against advapi32. This is
# done by adding 'advapi32' to cpp_winlibs, where it should be by default.