Skip to content
Permalink
Browse files

Remove unfinished osg[Earth] python bindings

  • Loading branch information
manisandro committed May 28, 2016
1 parent 3e73064 commit d5f8255a0dd9b42178b934d200225cc168fa9c18
Showing with 0 additions and 8,626 deletions.
  1. +0 −81 src/plugins/globe/python/CMakeLists.txt
  2. +0 −655 src/plugins/globe/python/osg/osg/Camera.sip
  3. +0 −779 src/plugins/globe/python/osg/osg/Drawable.sip
  4. +0 −168 src/plugins/globe/python/osg/osg/Group.sip
  5. +0 −431 src/plugins/globe/python/osg/osg/Node.sip
  6. +0 −253 src/plugins/globe/python/osg/osg/Object.sip
  7. +0 −60 src/plugins/globe/python/osg/osg/RenderInfo.sip
  8. +0 −100 src/plugins/globe/python/osg/osg/Vec2d.sip
  9. +0 −94 src/plugins/globe/python/osg/osg/Vec2f.sip
  10. +0 −101 src/plugins/globe/python/osg/osg/Vec3d.sip
  11. +0 −93 src/plugins/globe/python/osg/osg/Vec3f.sip
  12. +0 −178 src/plugins/globe/python/osg/osg/View.sip
  13. +0 −17 src/plugins/globe/python/osg/osg/osg.sip
  14. +0 −55 src/plugins/globe/python/osg/osg/stdstring.sip
  15. +0 −111 src/plugins/globe/python/osg/osgGA/GUIEventHandler.sip
  16. +0 −7 src/plugins/globe/python/osg/osgGA/osgGA.sip
  17. +0 −251 src/plugins/globe/python/osg/osgViewer/View.sip
  18. +0 −123 src/plugins/globe/python/osg/osgViewer/Viewer.sip
  19. +0 −9 src/plugins/globe/python/osg/osgViewer/osgViewer.sip
  20. +0 −52 src/plugins/globe/python/osgEarth/Bounds.sip
  21. +0 −25 src/plugins/globe/python/osgEarth/Common.sip
  22. +0 −502 src/plugins/globe/python/osgEarth/Config.sip
  23. +0 −234 src/plugins/globe/python/osgEarth/Features/Feature.sip
  24. +0 −153 src/plugins/globe/python/osgEarth/Features/FeatureSourceIndexNode.sip
  25. +0 −8 src/plugins/globe/python/osgEarth/Features/Features.sip
  26. +0 −57 src/plugins/globe/python/osgEarth/GeoCommon.sip
  27. +0 −482 src/plugins/globe/python/osgEarth/GeoData.sip
  28. +0 −268 src/plugins/globe/python/osgEarth/ImageLayer.sip
  29. +0 −47 src/plugins/globe/python/osgEarth/Layer.sip
  30. +0 −361 src/plugins/globe/python/osgEarth/Map.sip
  31. +0 −202 src/plugins/globe/python/osgEarth/MapNode.sip
  32. +0 −192 src/plugins/globe/python/osgEarth/ModelLayer.sip
  33. +0 −154 src/plugins/globe/python/osgEarth/ModelSource.sip
  34. +0 −169 src/plugins/globe/python/osgEarth/Revisioning.sip
  35. +0 −325 src/plugins/globe/python/osgEarth/SpatialReference.sip
  36. +0 −357 src/plugins/globe/python/osgEarth/Symbology/Geometry.sip
  37. +0 −7 src/plugins/globe/python/osgEarth/Symbology/Symbology.sip
  38. +0 −263 src/plugins/globe/python/osgEarth/Terrain.sip
  39. +0 −917 src/plugins/globe/python/osgEarth/Util/EarthManipulator.sip
  40. +0 −155 src/plugins/globe/python/osgEarth/Util/FeatureQueryTool.sip
  41. +0 −11 src/plugins/globe/python/osgEarth/Util/Util.sip
  42. +0 −97 src/plugins/globe/python/osgEarth/optional.sip
  43. +0 −22 src/plugins/globe/python/osgEarth/osgEarth.sip
@@ -1,15 +1,10 @@
SET (PYTHON_OUTPUT_DIRECTORY ${QGIS_OUTPUT_DIRECTORY}/python)

SET (QGIS_GLOBE_PYTHON_OUTPUT_DIRECTORY ${PYTHON_OUTPUT_DIRECTORY}/qgis)
SET (OSG_PYTHON_OUTPUT_DIRECTORY ${PYTHON_OUTPUT_DIRECTORY}/osg)
SET (OSGEARTH_PYTHON_OUTPUT_DIRECTORY ${PYTHON_OUTPUT_DIRECTORY}/osgEarth)

SET (QGIS_GLOBE_PYTHON_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
SET (QGIS_GLOBE_INCLUDE_DIRECTORY {CMAKE_CURRENT_SOURCE_DIR}/..)

SET(OSG_PYTHON_DIR ${PYTHON_SITE_PACKAGES_DIR}/osg)
SET(OSGEARTH_PYTHON_DIR ${PYTHON_SITE_PACKAGES_DIR}/osgearth)

INCLUDE_DIRECTORIES(
${PYTHON_INCLUDE_PATH}
${SIP_INCLUDE_DIR}
@@ -33,51 +28,6 @@ IF(NOT ENABLE_QT5)
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} QT5_SUPPORT)
ENDIF(NOT ENABLE_QT5)

##########################
# osg modules
##########################
#SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${OSG_PYTHON_OUTPUT_DIRECTORY})
#SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${OSG_PYTHON_OUTPUT_DIRECTORY})
#FILE(GLOB sip_files_osg osg/osg/*.sip)
#SET(SIP_EXTRA_FILES_DEPEND ${sip_files_osg})
#SET(SIP_EXTRA_OPTIONS ${PYQT_SIP_FLAGS} -o -a ${CMAKE_BINARY_DIR}/python/osg.api)
#ADD_SIP_PYTHON_MODULE(osg.osg osg/osg/osg.sip ${OSG_LIBRARY})

#FILE(GLOB sip_files_osgViewer osgViewer/*.sip)
#SET(SIP_EXTRA_FILES_DEPEND ${sip_files_osgViewer})
#SET(SIP_EXTRA_OPTIONS ${PYQT_SIP_FLAGS} -o -a ${CMAKE_BINARY_DIR}/python/osgViewer.api)
#ADD_SIP_PYTHON_MODULE(osg.osgViewer osg/osgViewer/osgViewer.sip ${OSG_LIBRARY} ${OSGVIEWER_LIBRARY})

#FILE(GLOB sip_files_osgGA osg/osgGA/*.sip)
#SET(SIP_EXTRA_FILES_DEPEND ${sip_files_osgGA})
#SET(SIP_EXTRA_OPTIONS ${PYQT_SIP_FLAGS} -o -a ${CMAKE_BINARY_DIR}/python/osgGA.api)
#ADD_SIP_PYTHON_MODULE(osg.osgGA osg/osgGA/osgGA.sip ${OSG_LIBRARY} ${OSGGA_LIBRARY})

##########################
# osgearth modules
##########################
#SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${OSGEARTH_PYTHON_OUTPUT_DIRECTORY})
#SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${OSGEARTH_PYTHON_OUTPUT_DIRECTORY})
#FILE(GLOB_RECURSE sip_files_osgearth osgEarth/*.sip)
#SET(SIP_EXTRA_FILES_DEPEND ${sip_files_osgearth})
#SET(SIP_EXTRA_OPTIONS ${PYQT_SIP_FLAGS} -o -a ${CMAKE_BINARY_DIR}/python/osgEarth.api)
#ADD_SIP_PYTHON_MODULE(osgEarth.osgEarth osgEarth/osgEarth.sip ${OSGEARTH_LIBS} ${OSG_LIBRARY} ${OSGDB_LIBRARY})

#FILE(GLOB_RECURSE sip_files_osgearth_features osgEarth/Features/*.sip)
#SET(SIP_EXTRA_FILES_DEPEND ${sip_files_osgearth_features} ${sip_files_osgearth})
#SET(SIP_EXTRA_OPTIONS ${PYQT_SIP_FLAGS} -o -a ${CMAKE_BINARY_DIR}/python/osgEarth.Features.api)
#ADD_SIP_PYTHON_MODULE(osgEarth.Features osgEarth/Features/Features.sip ${OSGEARTH_LIBS} ${OSG_LIBRARY})

#FILE(GLOB_RECURSE sip_files_osgearth_symbology osgEarth/Symbology/*.sip)
#SET(SIP_EXTRA_FILES_DEPEND ${sip_files_osgearth_symbology} ${sip_files_osgearth})
#SET(SIP_EXTRA_OPTIONS ${PYQT_SIP_FLAGS} -o -a ${CMAKE_BINARY_DIR}/python/osgEarth.Symbology.api)
#ADD_SIP_PYTHON_MODULE(osgEarth.Symbology osgEarth/Symbology/Symbology.sip ${OSGEARTH_LIBS} ${OSG_LIBRARY})

#FILE(GLOB_RECURSE sip_files_osgearth_util osgearth/Util/*.sip)
#SET(SIP_EXTRA_FILES_DEPEND ${sip_files_osgearth_util} ${sip_files_osgearth})
#SET(SIP_EXTRA_OPTIONS ${PYQT_SIP_FLAGS} -o -a ${CMAKE_BINARY_DIR}/python/osgEarth.Util.api)
#ADD_SIP_PYTHON_MODULE(osgEarth.Util osgEarth/Util/Util.sip ${OSGEARTH_LIBS} ${OSG_LIBRARY} ${OSGGA_LIBRARY})

# globe module
SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${QGIS_GLOBE_PYTHON_OUTPUT_DIRECTORY})
SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${QGIS_GLOBE_PYTHON_OUTPUT_DIRECTORY})
@@ -86,34 +36,3 @@ SET(SIP_EXTRA_FILES_DEPEND ${sip_files_globe})
SET(SIP_EXTRA_OPTIONS ${PYQT_SIP_FLAGS} -o -a ${CMAKE_BINARY_DIR}/python/qgis.globe.api)
GENERATE_SIP_PYTHON_MODULE_CODE(qgis.globe globe.sip cpp_files)
BUILD_SIP_PYTHON_MODULE(qgis.globe globe.sip ${cpp_files} "" globeplugin)

# Plugin utilities files to copy to staging or install
SET(PY_FILES
__init__.py
)

#ADD_CUSTOM_TARGET(osgpyutils ALL)
#INSTALL(FILES ${PY_FILES} DESTINATION "${OSG_PYTHON_DIR}")
#INSTALL(FILES ${PY_FILES} DESTINATION "${OSGEARTH_PYTHON_DIR}")

# stage to output to make available when QGIS is run from build directory
FOREACH(pyfile ${PY_FILES})
ADD_CUSTOM_COMMAND(TARGET osgpyutils
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${pyfile} "${OSG_PYTHON_OUTPUT_DIRECTORY}"
COMMAND ${CMAKE_COMMAND} -E copy ${pyfile} "${OSGEARTH_PYTHON_OUTPUT_DIRECTORY}"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS ${pyfile}
)
ENDFOREACH(pyfile)

# Byte-compile staged PyQGIS utilities
IF(WITH_PY_COMPILE)
ADD_CUSTOM_TARGET(pycompile-pyutils ALL
COMMAND ${PYTHON_EXECUTABLE} -m compileall -q "${OSG_PYTHON_OUTPUT_DIRECTORY}"
COMMAND ${PYTHON_EXECUTABLE} -m compileall -q "${OSGEARTH_PYTHON_OUTPUT_DIRECTORY}"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
COMMENT "Byte-compiling staged PyQGIS utility modules..."
DEPENDS osgpyutils
)
ENDIF(WITH_PY_COMPILE)

0 comments on commit d5f8255

Please sign in to comment.
You can’t perform that action at this time.