aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2024-04-28 11:50:12 +0300
committeraqua <aqua@iserlohn-fortress.net>2024-04-28 17:38:35 +0300
commit64226708bef7800fdcd4a171e808d4184ff3f408 (patch)
treef26fd67976b0a7d44f0b83aba643b9417cf7c30e
parentReadded manpages (diff)
downloadsmolbote-64226708bef7800fdcd4a171e808d4184ff3f408.tar.xz
Added poi resources to sources
-rw-r--r--src/CMakeLists.txt3
-rw-r--r--src/meson.build60
2 files changed, 3 insertions, 60 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index be2452b..9afb862 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -66,6 +66,9 @@ add_executable(poi
util.h
wallet/wallet.cpp
wallet/wallet.h
+
+ # resources
+ ${PROJECT_SOURCE_DIR}/data/resources.qrc
)
target_sources(poi PRIVATE settings.h)
target_include_directories(poi PRIVATE ${CMAKE_CURRENT_LIST_DIR} ${CMAKE_CURRENT_BINARY_DIR})
diff --git a/src/meson.build b/src/meson.build
deleted file mode 100644
index 6a4abd8..0000000
--- a/src/meson.build
+++ /dev/null
@@ -1,60 +0,0 @@
-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@' ]
-)
-
-subdir('about')
-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',
- 'bookmarks/bookmarkswidget.h', 'bookmarks/editbookmarkdialog.h',
- 'session/savesessiondialog.h', 'session/sessiondialog.h',
- 'subwindow/subwindow.h', 'subwindow/tabwidget.h' ],
- ui_files: [
- 'mainwindow/addressbar.ui', 'mainwindow/widgets/searchform.ui',
- 'bookmarks/bookmarksform.ui', 'bookmarks/editbookmarkdialog.ui',
- 'session/savesessiondialog.ui', 'session/sessiondialog.ui' ],
- qresources: '../data/resources.qrc',
- rcc_extra_arguments: ['--format-version=1'],
- dependencies: dep_qt5
-))
-
-poi_sourceset.add(files(
- 'main.cpp', 'builtins.cpp',
- 'browser.cpp', 'applicationmenu.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', 'bookmarks/bookmarkstoolbar.cpp',
-
- 'session/savesessiondialog.cpp',
- 'session/sessiondialog.cpp',
-
- 'subwindow/subwindow.cpp',
- 'subwindow/tabwidget.cpp',
-
- 'wallet/wallet.cpp', 'wallet/wallet.h'
-),
- version_h, poi_settings_h
-)
-
-poi_sourceset.add(when: [dep_breakpad, dep_threads],
- if_true: files('crashhandler.cpp'),
- if_false: files('crashhandler_dummy.cpp')
-)
-