summaryrefslogtreecommitdiffstats
path: root/superkaramba/examples/globalMouse
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-11-16 19:41:16 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-11-17 15:55:46 +0900
commiteef19dd5357a1f254f9c4e2db01c75c23e4157e5 (patch)
treefdd7604a5416839384831e9928781cfdeeeae760 /superkaramba/examples/globalMouse
parentda9cd0c056c8275033fca84a1c8d49a8edb0c8ee (diff)
downloadtdeutils-eef19dd5357a1f254f9c4e2db01c75c23e4157e5.tar.gz
tdeutils-eef19dd5357a1f254f9c4e2db01c75c23e4157e5.zip
superkaramba: added cmake rules for example files and create xcursor.so at build time.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'superkaramba/examples/globalMouse')
-rw-r--r--superkaramba/examples/globalMouse/CMakeLists.txt11
-rw-r--r--superkaramba/examples/globalMouse/README2
-rw-r--r--superkaramba/examples/globalMouse/extension/setup.py8
-rwxr-xr-xsuperkaramba/examples/globalMouse/xcursor.sobin27408 -> 0 bytes
4 files changed, 16 insertions, 5 deletions
diff --git a/superkaramba/examples/globalMouse/CMakeLists.txt b/superkaramba/examples/globalMouse/CMakeLists.txt
new file mode 100644
index 0000000..9df1a76
--- /dev/null
+++ b/superkaramba/examples/globalMouse/CMakeLists.txt
@@ -0,0 +1,11 @@
+##### xcursor.so #######################
+
+include_directories(
+ ${PYTHON_INCLUDE_DIR}
+)
+
+tde_add_library( xcursor MODULE NO_LIBTOOL_FILE
+ SOURCES extension/xcursor.c
+ LINK ${PYTHON_LIBRARIES} X11
+ DESTINATION ${DATA_INSTALL_DIR}/superkaramba/examples/globalMouse
+)
diff --git a/superkaramba/examples/globalMouse/README b/superkaramba/examples/globalMouse/README
index 758ce4b..7d2abc3 100644
--- a/superkaramba/examples/globalMouse/README
+++ b/superkaramba/examples/globalMouse/README
@@ -19,7 +19,7 @@ INSTALLATION:
named build. This file needs to be copied in the same directory as the
eyes.theme and eyes.py file.
- A precompiled xcursor.so file is included (Compiled on Mandrake 9.1).
+ A precompiled xcursor.so file is included.
CHANGES:
* Moving the theme now works as it should.
diff --git a/superkaramba/examples/globalMouse/extension/setup.py b/superkaramba/examples/globalMouse/extension/setup.py
index 49bd87b..2003334 100644
--- a/superkaramba/examples/globalMouse/extension/setup.py
+++ b/superkaramba/examples/globalMouse/extension/setup.py
@@ -5,10 +5,10 @@ def main():
version = '1.0',
description = 'Determines the position of the X mouse cursor',
ext_modules = [Extension('xcursor',
- include_dirs = ['/usr/X11R6/include'],
- libraries = ['X11'],
- library_dirs = ['/usr/X11R6/lib'],
- sources = ['xcursor.c'])])
+ include_dirs = ['/usr/X11R6/include'],
+ libraries = ['X11'],
+ library_dirs = ['/usr/X11R6/lib'],
+ sources = ['xcursor.c'])])
if __name__ == "__main__":
main()
diff --git a/superkaramba/examples/globalMouse/xcursor.so b/superkaramba/examples/globalMouse/xcursor.so
deleted file mode 100755
index 167bb29..0000000
--- a/superkaramba/examples/globalMouse/xcursor.so
+++ /dev/null
Binary files differ