Browse Source

Add missing install items

Aqua-sama 1 month ago
parent
commit
b2fec872de
Signed by: Aqua-sama <aqua@iserlohn-fortress.net> GPG Key ID: 5378B8349C1D5ADA

+ 12
- 0
doc/meson.build View File

@@ -0,0 +1,12 @@
1
+if get_option('manpage').enabled()
2
+    asciidoctor = find_program('asciidoctor', required: true)
3
+
4
+    custom_target('manpage',
5
+        input: 'smolbote.7.asciidoc',
6
+        output: 'smolbote.7',
7
+        command: [asciidoctor, '--backend=manpage', '--out-file=@OUTPUT@', '@INPUT@'],
8
+        build_by_default: true,
9
+        install: true, install_dir: join_paths(get_option('mandir'), 'man7')
10
+    )
11
+
12
+endif

+ 1
- 0
meson.build View File

@@ -60,6 +60,7 @@ subdir('lib/web')
60 60
 subdir('3rd-party/SingleApplication')
61 61
 
62 62
 subdir('src')
63
+subdir('doc')
63 64
 
64 65
 subdir('plugins/ConfigurationEditor')
65 66
 subdir('plugins/ProfileEditor')

+ 3
- 0
meson_options.txt View File

@@ -1,6 +1,9 @@
1 1
 # Executable options
2 2
 option('poiName', description: 'Executable name', type: 'string', value: 'poi')
3 3
 
4
+# Install options
5
+option('manpage',  description: 'Generate and install manpage',    type: 'feature', value: 'auto')
6
+
4 7
 # Feature options
5 8
 option('Breakpad', description: 'Enable breakpad crash reporting', type: 'feature', value: 'auto')
6 9
 option('Plasma',   description: 'Enable KDE plasma integration',   type: 'feature', value: 'auto')

+ 1
- 1
plugins/ConfigurationEditor/meson.build View File

@@ -9,5 +9,5 @@ ConfigurationEditorPlugin_lib = shared_library('ConfigurationEditorPlugin',
9 9
     [interfaces_moc, ConfigurationEditorPlugin_moc, 'configurationeditorplugin.cpp', 'forms/configurationdialog.cpp'],
10 10
     dependencies: dep_qt5,
11 11
     include_directories: include,
12
-    install: true, install_dir: join_paths(get_option('libexecdir'), 'smolbote/plugins')
12
+    install: true, install_dir: join_paths(get_option('libdir'), 'smolbote/plugins')
13 13
 )

+ 1
- 1
plugins/ProfileEditor/meson.build View File

@@ -9,5 +9,5 @@ ProfileEditorPlugin_lib = shared_library('ProfileEditorPlugin',
9 9
     [interfaces_moc, ProfileEditorPlugin_moc, 'profileeditorplugin.cpp', 'forms/profilemanagerdialog.cpp', 'forms/profileview.cpp', 'forms/newprofiledialog.cpp',  'forms/newhttpheaderdialog.cpp'],
10 10
     dependencies: dep_qt5,
11 11
     include_directories: include,
12
-    install: true, install_dir: join_paths(get_option('libexecdir'), 'smolbote/plugins')
12
+    install: true, install_dir: join_paths(get_option('libdir'), 'smolbote/plugins')
13 13
 )

+ 7
- 0
src/meson.build View File

@@ -6,6 +6,7 @@ poi_moc = qt5.preprocess(
6 6
         'webengine/filter.h', 'webengine/urlinterceptor.h', 'webengine/webpage.h', 'webengine/webview.h'],
7 7
     ui_files: ['mainwindow/mainwindow.ui', 'mainwindow/widgets/searchform.ui'],
8 8
     qresources: '../data/resources.qrc',
9
+    rcc_extra_arguments: ['--format-version=1'],
9 10
     dependencies: dep_qt5
10 11
 )
11 12
 
@@ -44,3 +45,9 @@ poi = executable(get_option('poiName'), install: true,
44 45
     'wallet/wallet.cpp', 'wallet/wallet.h']
45 46
 )
46 47
 
48
+# install .desktop file and firejail profile
49
+if ['linux', 'freebsd', 'netbsd', 'dragonflybsd'].contains(host_machine.system())
50
+    install_data('../data/poi.svg', install_dir: join_paths(get_option('datadir'), 'icons/hicolor/scalable/apps'))
51
+    install_data('../linux/poi.desktop', install_dir: join_paths(get_option('datadir'), 'applications'))
52
+    install_data('../data/poi.profile', install_dir: join_paths(get_option('libdir'), 'smolbote'))
53
+endif

Loading…
Cancel
Save