[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu
From: Simon Edwards <simon () simonzone ! com>
Date: 2008-12-29 15:27:19
Message-ID: 1230564439.749406.23607.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 902969 by sedwards:
* Added some docs about building the Python bindings for marble.
* Bindings are disabled by default. (Pass -DEXPERIMENTAL_PYTHON_BINDINGS=TRUE to \
cmake to turn them on).
M +28 -20 CMakeLists.txt
A marble/docs/Python_bindings_for_marble_library.txt
A marble/src/bindings/python/README
--- trunk/KDE/kdeedu/CMakeLists.txt #902968:902969
@@ -18,31 +18,39 @@
endif(WIN32)
#### Python support ####
-macro_optional_find_package(PythonLibrary)
+set(PythonSupport_FOUND FALSE)
-macro_optional_find_package(SIP)
-if(SIP_FOUND AND SIP_VERSION STRLESS "040701")
- message(STATUS "The version of SIP found is too old. 4.7.1 or later is needed.")
- set(SIP_FOUND)
-endif(SIP_FOUND AND SIP_VERSION STRLESS "040701")
+macro_log_feature(EXPERIMENTAL_PYTHON_BINDINGS "Experimental Python binding support \
for the Marble library" "Experimental Python binding support for the Marble library" \
+ "http://techbase.kde.org/Development/Languages/Python" FALSE "" + "Experimental \
Python binding support for the Marble library. To activate it pass \
-DEXPERIMENTAL_PYTHON_BINDINGS=TRUE to cmake.")
-include(SIPMacros)
+if(EXPERIMENTAL_PYTHON_BINDINGS)
+ macro_optional_find_package(PythonLibrary)
-macro_optional_find_package(PyQt4)
-if(PYQT4_FOUND AND PYQT4_VERSION STRLESS "040400")
- message(STATUS "The version of PyQt found is too old. 4.4.0 or later is \
required.")
- set(PYQT4_FOUND)
-endif(PYQT4_FOUND AND PYQT4_VERSION STRLESS "040400")
+ macro_optional_find_package(SIP)
+ if(SIP_FOUND AND SIP_VERSION STRLESS "040701")
+ message(STATUS "The version of SIP found is too old. 4.7.1 or later is \
needed.") + set(SIP_FOUND)
+ endif(SIP_FOUND AND SIP_VERSION STRLESS "040701")
-macro_optional_find_package(PyKDE4)
-set(PythonSupport_FOUND FALSE)
-if (PYTHONLIBRARY_FOUND AND SIP_FOUND AND PYQT4_FOUND AND PYKDE4_FOUND)
- set(PythonSupport_FOUND TRUE)
-endif (PYTHONLIBRARY_FOUND AND SIP_FOUND AND PYQT4_FOUND AND PYKDE4_FOUND)
+ include(SIPMacros)
-macro_log_feature(PythonSupport_FOUND "Python" "KDE Python support"
- "http://techbase.kde.org/Development/Languages/Python" FALSE ""
- "Needed for Python bindings to the marble widget.")
+ macro_optional_find_package(PyQt4)
+ if(PYQT4_FOUND AND PYQT4_VERSION STRLESS "040400")
+ message(STATUS "The version of PyQt found is too old. 4.4.0 or later is \
required.") + set(PYQT4_FOUND)
+ endif(PYQT4_FOUND AND PYQT4_VERSION STRLESS "040400")
+
+ macro_optional_find_package(PyKDE4)
+ if (PYTHONLIBRARY_FOUND AND SIP_FOUND AND PYQT4_FOUND AND PYKDE4_FOUND)
+ set(PythonSupport_FOUND TRUE)
+ endif (PYTHONLIBRARY_FOUND AND SIP_FOUND AND PYQT4_FOUND AND PYKDE4_FOUND)
+
+ macro_log_feature(PythonSupport_FOUND "Python" "KDE Python support"
+ "http://techbase.kde.org/Development/Languages/Python" FALSE ""
+ "Needed for Python bindings to the marble widget.")
+endif(EXPERIMENTAL_PYTHON_BINDINGS)
+
#### End Python support ####
include(KDE4Defaults)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic