On Sun, Apr 8, 2012 at 7:48 PM, Larry Shaffer <span dir="ltr">&lt;<a href="mailto:larrys@dakotacarto.com">larrys@dakotacarto.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br><br>I&#39;ve successfully generated QScintilla2 API files for the QGIS Python bindings and utility modules [0]. If you use the Eric4/5 Python editor (or another based on QScintilla2), you may be interested in installing and compiling these APIs.<br>
</blockquote><div><br>Seems a better approach, instead of changing SIPMacros.cmake, would be in python/CMakeLists.txt [0]:<br>
<br>
--- python/CMakeLists_orig.txt    2012-02-19 13:41:41.000000000 -0700<br>
+++ python/CMakeLists.txt    2012-04-08 21:00:16.000000000 -0600<br>
@@ -54,0 +55 @@<br>
+set(SIP_EXTRA_OPTIONS ${PYQT4_SIP_FLAGS} -o -a ${CMAKE_BINARY_DIR}/python/qgis.core.api)<br>
@@ -68,0 +70 @@<br>
+set(SIP_EXTRA_OPTIONS ${PYQT4_SIP_FLAGS} -o -a ${CMAKE_BINARY_DIR}/python/qgis.gui.api)<br>
@@ -79,0 +82 @@<br>
+set(SIP_EXTRA_OPTIONS ${PYQT4_SIP_FLAGS} -o -a ${CMAKE_BINARY_DIR}/python/qgis.analysis.api)<br>
<br>
This worked fine on compile, creating the same output as the SIPMacros.cmake edit. Each SIP_EXTRA_OPTIONS could be wrapped with a conditional based on a compile option for generating the APIs.<br>
<br>
Regards,<br>
<br>Larry Shaffer<br>Dakota Cartography<br>Black Hills, South Dakota <br><br>[0] <a href="http://dl.dropbox.com/u/4058089/qgis/CMakeLists.txt">http://dl.dropbox.com/u/4058089/qgis/CMakeLists.txt</a><br></div></div>