aboutsummaryrefslogtreecommitdiff
path: root/3rd-party/SingleApplication
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-10-23 03:58:33 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-10-23 03:58:33 +0200
commit6673ba53c17bb1ab99a1e7629156d99452213747 (patch)
tree70cf515693ed51c5537dc5fb178e5d938862bd35 /3rd-party/SingleApplication
parentAdblockRule constructor (diff)
downloadsmolbote-6673ba53c17bb1ab99a1e7629156d99452213747.tar.xz
Initial meson build files
Diffstat (limited to '3rd-party/SingleApplication')
-rw-r--r--3rd-party/SingleApplication/meson.build25
1 files changed, 25 insertions, 0 deletions
diff --git a/3rd-party/SingleApplication/meson.build b/3rd-party/SingleApplication/meson.build
new file mode 100644
index 0000000..a52df27
--- /dev/null
+++ b/3rd-party/SingleApplication/meson.build
@@ -0,0 +1,25 @@
+SingleApplication_inc = include_directories('SingleApplication.git')
+
+SingleApplication_moc = qt5.preprocess(
+ moc_headers: ['SingleApplication.git/singleapplication.h', 'SingleApplication.git/singleapplication_p.h'],
+ dependencies: dep_qt5
+)
+
+SingleApplication_lib = static_library('SingleApplication',
+ ['SingleApplication.git/singleapplication.cpp', 'SingleApplication.git/singleapplication_p.cpp'],
+ cpp_args : '-DQAPPLICATION_CLASS=QApplication',
+ dependencies: dep_qt5
+)
+
+dep_SingleApplication = declare_dependency(
+ include_directories: SingleApplication_inc,
+ link_with: SingleApplication_lib
+)
+
+# target_include_directories(['SingleApplication', 'PUBLIC', 'SingleApplication.git'])
+# target_link_libraries(['SingleApplication', 'Qt5::Core', 'Qt5::Network', 'Qt5::Widgets'])
+# target_compile_definitions(['SingleApplication', 'PRIVATE', 'QAPPLICATION_CLASS=QApplication'])
+
+#if cmake_system_name, 'MATCHES', 'Windows'
+ # target_link_libraries(['SingleApplication', 'Advapi32'])
+#endif