aboutsummaryrefslogtreecommitdiff
path: root/src/meson.build
blob: 99231d27eb0381a2717a3802d9ca99cece82fb45 (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
35
36
37
38
39
40
41
42
43
44
45
46
# poi
poi_moc = qt5.preprocess(
    moc_headers: ['browser.h', 'session.h', 
        'mainwindow/mainwindow.h', 'mainwindow/widgets/dockwidget.h', 'mainwindow/widgets/navigationbar.h', 'mainwindow/widgets/searchform.h', 
        'subwindow/subwindow.h', 'subwindow/tabwidget.h', 
        'webengine/filter.h', 'webengine/urlinterceptor.h', 'webengine/webpage.h', 'webengine/webview.h'],
    ui_files: ['mainwindow/mainwindow.ui', 'mainwindow/widgets/searchform.ui'],
    qresources: '../data/resources.qrc',
    dependencies: dep_qt5
)

optdepends = []
if get_option('Breakpad').enabled()
    optdepends += dep_breakpad
endif

if get_option('Plasma').enabled()
    optdepends += dep_plasma
endif

poi = executable('poi', install: true,
    cpp_args: ['-DQAPPLICATION_CLASS=QApplication'],
    dependencies: [dep_qt5, dep_boost, dep_SingleApplication, optdepends,
        dep_about, dep_addressbar, dep_bookmarks, dep_configuration, dep_downloads, dep_urlfilter, dep_web],
    include_directories: [include, genheader_inc],
    sources: ['main.cpp', poi_moc,
    'browser.cpp',
    'session.cpp',
    'util.cpp', 'util.h',

    'mainwindow/mainwindow.cpp', 
    'mainwindow/widgets/dockwidget.cpp', 
    'mainwindow/widgets/navigationbar.cpp', 
    'mainwindow/widgets/searchform.cpp', 

    'subwindow/subwindow.cpp', 
    'subwindow/tabwidget.cpp', 

    'webengine/filter.cpp', 
    'webengine/urlinterceptor.cpp', 
    'webengine/webpage.cpp', 
    'webengine/webview.cpp', 

    'wallet/wallet.cpp', 'wallet/wallet.h']
)