summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-11-01 18:47:53 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-11-01 18:47:53 +0900
commit58baf01dab5d45b890534bf8a1eb42d677332407 (patch)
tree236f9826c8f7457b1090d9fb3e6eca16f414e3e7 /core
parenta811f9c0bc72c486b66fea1828cc832e81208ed8 (diff)
downloadpolkit-tqt-58baf01dab5d45b890534bf8a1eb42d677332407.tar.gz
polkit-tqt-58baf01dab5d45b890534bf8a1eb42d677332407.zip
Updated cmake files to allow building the package, although it is just a
dummy package (not functional). Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'core')
-rw-r--r--core/CMakeLists.txt77
-rw-r--r--core/dummy-core.cpp37
-rw-r--r--core/dummy-core.h56
3 files changed, 148 insertions, 22 deletions
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
index feca7c96d..ed7519be0 100644
--- a/core/CMakeLists.txt
+++ b/core/CMakeLists.txt
@@ -1,31 +1,64 @@
+#################################################
+#
+# (C) 2021 Michele Calgaro
+# Michele (DOT) Calgaro (AT) yahoo.it
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
include_directories(
- ${CMAKE_CURRENT_BINARY_DIR}
- ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TQT_INCLUDE_DIRS}
)
-set(polkit_tqt_core_SRCS
- polkittqt1-authority.cpp
- polkittqt1-identity.cpp
- polkittqt1-subject.cpp
- polkittqt1-temporaryauthorization.cpp
- polkittqt1-details.cpp
- polkittqt1-actiondescription.cpp
+link_directories(
+ ${TQT_LIBRARY_DIRS}
)
-automoc4_add_library(polkit-tqt-core-1 SHARED ${polkit_tqt_core_SRCS})
-target_link_libraries(polkit-tqt-core-1
- ${TQT_TQTCORE_LIBRARY}
- ${TQT_TQTDBUS_LIBRARY}
- ${TQT_TQTXML_LIBRARY}
- ${POLKIT_LIBRARIES}
- ${GLIB2_LIBRARIES}
- ${GOBJECT_LIBRARIES}
- ${GIO_LIBRARIES}
+##### install headers ###########################
+
+install( FILES
+ dummy-core.h
+ DESTINATION ${INCLUDE_INSTALL_DIR} )
+
+
+##### polkit-tqt-core (shared) #########################
+
+tde_add_library( polkit-tqt-core SHARED AUTOMOC
+ SOURCES ${polkit_tqt_MOCS}
+ dummy-core.cpp
+ VERSION 0.0.0
+ LINK ${TQT_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}
)
-set_target_properties(polkit-tqt-core-1 PROPERTIES VERSION ${POLKITTQT-1_LIBRARY_VERSION}
- SOVERSION ${POLKITTQT-1_ABI_VERSION}
- DEFINE_SYMBOL MAKE_POLKITTQT1_LIB)
-install(TARGETS polkit-tqt-core-1 ${INSTALL_TARGETS_DEFAULT_ARGS})
+## set(polkit_tqt_core_SRCS
+## polkittqt1-authority.cpp
+## polkittqt1-identity.cpp
+## polkittqt1-subject.cpp
+## polkittqt1-temporaryauthorization.cpp
+## polkittqt1-details.cpp
+## polkittqt1-actiondescription.cpp
+## )
+##
+## target_link_libraries(polkit-tqt-core-1
+## ${TQT_TQTCORE_LIBRARY}
+## ${TQT_TQTDBUS_LIBRARY}
+## ${TQT_TQTXML_LIBRARY}
+## ${POLKIT_LIBRARIES}
+## ${GLIB2_LIBRARIES}
+## ${GOBJECT_LIBRARIES}
+## ${GIO_LIBRARIES}
+## )
+##
+## set_target_properties(polkit-tqt-core-1 PROPERTIES VERSION ${POLKITTQT-1_LIBRARY_VERSION}
+## SOVERSION ${POLKITTQT-1_ABI_VERSION}
+## DEFINE_SYMBOL MAKE_POLKITTQT1_LIB)
+##
+## install(TARGETS polkit-tqt-core-1 ${INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/core/dummy-core.cpp b/core/dummy-core.cpp
new file mode 100644
index 000000000..a06506b44
--- /dev/null
+++ b/core/dummy-core.cpp
@@ -0,0 +1,37 @@
+/*
+ * This file is part of the Polkit-tqt project
+ * Copyright (C) 2009 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
+ * Copyright (C) 2009 Dario Freddi <drf@kde.org>
+ * Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com>
+ * Copyright (C) 2009 Radek Novacek <rnovacek@redhat.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#include "dummy-core.h"
+
+namespace PolkitTQt
+{
+
+
+DummyCore* DummyCore::instance()
+{
+ return 0;
+}
+
+}
+
+#include "dummy-core.moc"
diff --git a/core/dummy-core.h b/core/dummy-core.h
new file mode 100644
index 000000000..13b0fdcef
--- /dev/null
+++ b/core/dummy-core.h
@@ -0,0 +1,56 @@
+/*
+ * This file is part of the Polkit-tqt project
+ * Copyright (C) 2009 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
+ * Copyright (C) 2009 Dario Freddi <drf@kde.org>
+ * Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com>
+ * Copyright (C) 2009 Radek Novacek <rnovacek@redhat.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef DUMMY_CORE_H
+#define DUMMY_CORE_H
+
+#define POLKIT_TQT_EXPORT TQ_EXPORT
+
+
+/**
+ * \namespace PolkitTQt1 PolkitTQt
+ *
+ * \brief Namespace wrapping Polkit-TQt classes
+ *
+ * This namespace wraps all Polkit-TQt classes.
+ */
+namespace PolkitTQt
+{
+
+/**
+ * \class DummyCore
+ *
+ * \brief Convenience class for TQt/KDE applications
+ *
+ * This class is a dummy used for initial basic compiling.
+ */
+class POLKIT_TQT_EXPORT DummyCore
+{
+public:
+
+ static DummyCore* instance();
+};
+
+}
+
+#endif