aboutsummaryrefslogtreecommitdiff
path: root/src/meson.build
blob: 95f81f733580aa09a31f6c2522b0306cd2dc394c (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
python = import('python')
python3 = python.find_installation('python3')
 
poi_settings_h = custom_target('default_config_value',
  input: files('../scripts/gen-default-cfg.py', '../Kconfig', '..'/host_machine.system()/'.config', 'settings.h.in'),
  output: 'settings.h',
  command: [ python3, '@INPUT0@', '--kconfig=@INPUT1@', '--dotconfig=@INPUT2@', '--input=@INPUT3@', '--output=@OUTPUT@' ]
)

poi_sourceset.add(mod_qt5.preprocess(
    moc_headers: ['browser.h',
        'mainwindow/mainwindow.h', 'mainwindow/addressbar.h', 'mainwindow/menubar.h', 'mainwindow/widgets/completer.h', 'mainwindow/widgets/urllineedit.h', 'mainwindow/widgets/dockwidget.h', 'mainwindow/widgets/navigationbar.h', 'mainwindow/widgets/searchform.h',
        'bookmarks/bookmarkswidget.h', 'bookmarks/editbookmarkdialog.h',
        'session/savesessiondialog.h', 'session/sessiondialog.h', 'session/sessionform.h',
        'subwindow/subwindow.h', 'subwindow/tabwidget.h',
        'webengine/urlinterceptor.h', 'webengine/webpage.h', 'webengine/webview.h', 'webengine/webprofilemanager.h', 'webengine/webprofile.h'],
    ui_files: [
      'mainwindow/addressbar.ui', 'mainwindow/widgets/searchform.ui',
      'bookmarks/bookmarksform.ui', 'bookmarks/editbookmarkdialog.ui',
      'session/savesessiondialog.ui', 'session/sessiondialog.ui', 'session/sessionform.ui'],
    qresources: '../data/resources.qrc',
    rcc_extra_arguments: ['--format-version=1'],
    dependencies: dep_qt5
))

poi_sourceset.add(files(
    'main.cpp', 'builtins.cpp',
    'browser.cpp',
    'util.cpp', 'util.h',

    'mainwindow/mainwindow.cpp',
    'mainwindow/addressbar.cpp',
    'mainwindow/menubar.cpp',
    'mainwindow/widgets/completer.cpp',
    'mainwindow/widgets/urllineedit.cpp',
    'mainwindow/widgets/dockwidget.cpp',
    'mainwindow/widgets/menusearch.cpp',
    'mainwindow/widgets/navigationbar.cpp',
    'mainwindow/widgets/searchform.cpp',

    'bookmarks/builtins.cpp', 'bookmarks/bookmarkswidget.cpp', 'bookmarks/editbookmarkdialog.cpp',

    'session/session.cpp',
    'session/savesessiondialog.cpp',
    'session/sessiondialog.cpp',
    'session/sessionform.cpp',

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

    'webengine/urlinterceptor.cpp',
    'webengine/webpage.cpp',
    'webengine/webview.cpp',
    'webengine/webviewcontextmenu.cpp',
    'webengine/webprofile.cpp',
    'webengine/webprofilemanager.cpp',

    'wallet/wallet.cpp', 'wallet/wallet.h'
),
  interfaces_moc, version_h, poi_settings_h
)

poi_sourceset.add(when: [dep_breakpad, dep_threads],
  if_true: files('crashhandler.cpp'),
  if_false: files('crashhandler_dummy.cpp')
)