]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
gumstix: Compile QT automatically
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 31 Mar 2011 17:31:56 +0000 (19:31 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 31 Mar 2011 17:31:56 +0000 (19:31 +0200)
build/gumstix/config.target
build/gumstix/qt/Makefile.omk

index 9f7c92f0ea1d61b3a8d83c6bdaf9476f12cc2be5..a26c58cb34490f0307dc9bd8810626a291d84f11 100644 (file)
@@ -12,3 +12,6 @@ CXXFLAGS = $(CFLAGS)
 
 IDL_COMPILER = orte-idl
 IDL_COMPILER=$(MAKERULES_DIR)/../host/_compiled/bin/orte-idl
+
+CONFIG_QT4_DIR = $(OUTPUT_DIR)/_compiled/qt
+
index e933cdc9a02f086a2b58bde24287eadfa6a75bca..6bb4938c8ef047c6c8a51f3f2b8588b771ed8a6e 100644 (file)
@@ -1,12 +1,18 @@
 # -*- makefile -*-
 
-library-pass_HOOKS = compile-qt
-
-compile-qt: config.status make
+library-pass_HOOKS = install-qt
 
 config.status: $(SOURCES_DIR)/qt-src/configure
        cp -a $(SOURCES_DIR)/linux-arm-gumstix-g++ $(SOURCES_DIR)/qt-src/mkspecs/qws
-       $< -embedded arm --prefix=$(OUTPUT_DIR)/$(COMPILED_DIR_NAME) -xplatform qws/linux-arm-gumstix-g++ -opensource -confirm-license -little-endian -qt-gfx-linuxfb
+       $< -embedded arm --prefix=$(OUTPUT_DIR)/_compiled/qt -xplatform qws/linux-arm-gumstix-g++ -opensource -confirm-license -little-endian -qt-gfx-linuxfb
 
-make: config.status
+lib/libQtCore.so: config.status
        $(MAKE)
+
+$(OUTPUT_DIR)/_compiled/qt/libQtCore.so: lib/libQtCore.so
+       echo $@: $^
+       $(MAKE) install
+       touch $@
+
+.PHONY: install-qt
+install-qt: $(OUTPUT_DIR)/_compiled/qt/libQtCore.so