[Kde-bindings] dependencies between generator and smoke

Petr Vanek petr at scribus.info
Wed Nov 4 09:51:31 UTC 2009


hi all,

just for your information: we faced some strange errors in our  
bindings last days. It was caused by old smoke library, which was not  
recompiled after some qt's smokeconfig.xml and generator changes. It  
had to be rebuilt manually (and it was forgotten of course).

If you are interested in my solution see this diff:

Index: smoke/qt/CMakeLists.txt
===================================================================
--- smoke/qt/CMakeLists.txt	(revision 2862)
+++ smoke/qt/CMakeLists.txt	(working copy)
@@ -39,6 +39,8 @@
      COMMAND generator
      ARGS -config "${CMAKE_CURRENT_BINARY_DIR}/config.xml" - 
smokeconfig "${CMAKE_CURRENT_SOURCE_DIR}/smokeconfig.xml"
           -- ${CMAKE_CURRENT_SOURCE_DIR}/qt_includes.h
+    MAIN_DEPENDENCY smokeconfig.xml
+    DEPENDS cppparser generator_smoke generator
      WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})

  macro_add_file_dependencies( ${CMAKE_CURRENT_BINARY_DIR}/ 
smokedata.cpp ${CMAKE_CURRENT_BINARY_DIR}/x_1.cpp )

I don't know if it's acceptable for main kde-bindings trunk, but it's  
working for us

all the best,
Petr



More information about the Kde-bindings mailing list