aboutsummaryrefslogtreecommitdiff
path: root/src/meson.build
blob: 1529a95b0d8399923821da9da98106a0813abc66 (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
python = import('python')
python3 = python.find_installation('python3')
 
rcc_exe = subproject('rcc').get_variable('rcc_exe')
icons = subproject('tabler-icons').get_variable('smolbote_icons')

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_logos_h = custom_target('poi_logos_h',
  input: files('../data/poi.svg', '../data/poi_window.svg'),
  output: 'poi_logos.h',
  command: [ python3, rcc_exe, '-o=@OUTPUT@', 'dump', '-ns=logos', '@INPUT@' ])
poi_icons_h = custom_target('poi_icons_h',
  input: icons,
  output: 'poi_icons.h',
  command: [ python3, rcc_exe, '-o=@OUTPUT@', 'dump', '-ns=icons', '@INPUT@' ])

subdir('about')
subdir('bookmarks')
subdir('configuration')
subdir('cmd')
subdir('session')
subdir('webengine')

poi_sourceset.add(mod_qt5.preprocess(
    moc_headers: ['browser.h', 'applicationmenu.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',
        'session/savesessiondialog.h', 'session/sessiondialog.h',
        'subwindow/subwindow.h', 'subwindow/tabwidget.h' ],
    ui_files: [
      'mainwindow/addressbar.ui', 'mainwindow/widgets/searchform.ui',
      'session/savesessiondialog.ui', 'session/sessiondialog.ui' ],
    dependencies: dep_qt5
))

poi_sourceset.add(files(
    'main.cpp', 'browser.cpp', 'applicationmenu.cpp', 'util.cpp',

    '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',

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

    'subwindow/subwindow.cpp',
    'subwindow/tabwidget.cpp',
),
  version_h, poi_settings_h, poi_icons_h, poi_logos_h
)