summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2021-11-01 18:47:53 +0900
committerMichele Calgaro <[email protected]>2021-11-01 18:47:53 +0900
commit58baf01dab5d45b890534bf8a1eb42d677332407 (patch)
tree236f9826c8f7457b1090d9fb3e6eca16f414e3e7 /gui
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 <[email protected]>
Diffstat (limited to 'gui')
-rw-r--r--gui/CMakeLists.txt67
-rw-r--r--gui/dummy-gui.cpp37
-rw-r--r--gui/dummy-gui.h56
3 files changed, 143 insertions, 17 deletions
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt
index ca420fb79..7db12e36e 100644
--- a/gui/CMakeLists.txt
+++ b/gui/CMakeLists.txt
@@ -1,26 +1,59 @@
+#################################################
+#
+# (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_gui_SRCS
- polkittqt1-gui-action.cpp
- polkittqt1-gui-actionbutton.cpp
- polkittqt1-gui-actionbuttons.cpp
+link_directories(
+ ${TQT_LIBRARY_DIRS}
)
-automoc4_add_library(polkit-tqt-gui-1 SHARED ${polkit_tqt_gui_SRCS})
-target_link_libraries(polkit-tqt-gui-1
- ${TQT_TQTCORE_LIBRARY}
- ${TQT_TQTGUI_LIBRARY}
- ${TQT_TQTDBUS_LIBRARY}
- ${POLKIT_LIBRARIES}
- polkit-tqt-core-1
+##### install headers ###########################
+
+install( FILES
+ dummy-gui.h
+ DESTINATION ${INCLUDE_INSTALL_DIR} )
+
+
+##### polkit-tqt-gui (shared) #########################
+
+tde_add_library( polkit-tqt-gui SHARED AUTOMOC
+ SOURCES ${polkit_tqt_MOCS}
+ dummy-gui.cpp
+ VERSION 0.0.0
+ LINK ${TQT_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}
)
-set_target_properties(polkit-tqt-gui-1 PROPERTIES VERSION ${POLKITTQT-1_LIBRARY_VERSION}
- SOVERSION ${POLKITTQT-1_ABI_VERSION}
- DEFINE_SYMBOL MAKE_POLKITTQT1_LIB)
-install(TARGETS polkit-tqt-gui-1 ${INSTALL_TARGETS_DEFAULT_ARGS})
+## set(polkit_tqt_gui_SRCS
+## polkittqt1-gui-action.cpp
+## polkittqt1-gui-actionbutton.cpp
+## polkittqt1-gui-actionbuttons.cpp
+## )
+##
+## target_link_libraries(polkit-tqt-gui-1
+## ${TQT_TQTCORE_LIBRARY}
+## ${TQT_TQTGUI_LIBRARY}
+## ${TQT_TQTDBUS_LIBRARY}
+## ${POLKIT_LIBRARIES}
+## polkit-tqt-core-1
+## )
+##
+## set_target_properties(polkit-tqt-gui-1 PROPERTIES VERSION ${POLKITTQT-1_LIBRARY_VERSION}
+## SOVERSION ${POLKITTQT-1_ABI_VERSION}
+## DEFINE_SYMBOL MAKE_POLKITTQT1_LIB)
+##
+## install(TARGETS polkit-tqt-gui-1 ${INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/gui/dummy-gui.cpp b/gui/dummy-gui.cpp
new file mode 100644
index 000000000..d40e5e631
--- /dev/null
+++ b/gui/dummy-gui.cpp
@@ -0,0 +1,37 @@
+/*
+ * This file is part of the Polkit-tqt project
+ * Copyright (C) 2009 Daniel Nicoletti <[email protected]>
+ * Copyright (C) 2009 Dario Freddi <[email protected]>
+ * Copyright (C) 2009 Jaroslav Reznik <[email protected]>
+ * Copyright (C) 2009 Radek Novacek <[email protected]>
+ *
+ * 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-gui.h"
+
+namespace PolkitTQt
+{
+
+
+DummyGui* DummyGui::instance()
+{
+ return 0;
+}
+
+}
+
+#include "dummy-gui.moc"
diff --git a/gui/dummy-gui.h b/gui/dummy-gui.h
new file mode 100644
index 000000000..f7c2f216f
--- /dev/null
+++ b/gui/dummy-gui.h
@@ -0,0 +1,56 @@
+/*
+ * This file is part of the Polkit-tqt project
+ * Copyright (C) 2009 Daniel Nicoletti <[email protected]>
+ * Copyright (C) 2009 Dario Freddi <[email protected]>
+ * Copyright (C) 2009 Jaroslav Reznik <[email protected]>
+ * Copyright (C) 2009 Radek Novacek <[email protected]>
+ *
+ * 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_GUI_H
+#define DUMMY_GUI_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 DummyGui
+ *
+ * \brief Convenience class for TQt/KDE applications
+ *
+ * This class is a dummy used for initial basic compiling.
+ */
+class POLKIT_TQT_EXPORT DummyGui
+{
+public:
+
+ static DummyGui* instance();
+};
+
+}
+
+#endif