]> git.openpandora.org Git - openembedded.git/commitdiff
cmake.bbclass: support for seperate building directory
authorHenning Heinold <heinold@inf.fu-berlin.de>
Wed, 2 Dec 2009 15:14:08 +0000 (16:14 +0100)
committerHenning Heinold <heinold@inf.fu-berlin.de>
Wed, 2 Dec 2009 22:10:53 +0000 (23:10 +0100)
classes/cmake.bbclass

index 4978421b63657c4a10b231b32caa4020bec1fa8f..d0a1844b21b7dbbd3d500be72d50942dcb404e8e 100644 (file)
@@ -25,4 +25,22 @@ cmake_do_configure() {
     -Wno-dev
 }
 
-EXPORT_FUNCTIONS do_configure
+cmake_do_compile()  {
+  if [ ${OECMAKE_BUILDPATH} ]
+  then
+     cd ${OECMAKE_BUILDPATH}
+  fi
+  
+  base_do_compile
+}
+
+cmake_do_install() {
+  if [ ${OECMAKE_BUILDPATH} ];
+  then
+     cd ${OECMAKE_BUILDPATH}
+  fi
+  
+  autotools_do_install
+}
+
+EXPORT_FUNCTIONS do_configure do_compile do_install