aboutsummaryrefslogtreecommitdiff
path: root/3rd-party/SingleApplication/meson.build
blob: 1ac04f96f6dc3efb9c413c4da7e3ba45dc230f67 (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 = 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.