qt4: heavily cleanup Makefile and add a generic way for configuring projects using...
[openwrt/svn-archive/archive.git] / Xorg / lib / qt4 / files / qmake.conf
1 include(../../common/g++.conf)
2 include(../../common/linux.conf)
3 include(../../common/qws.conf)
4
5 # QMAKE_{INC,LIB}DIR_QT needs to be overridden,
6 # as they're set to $$[QT_INSTALL_{HEADERS,LIBS}] by default
7 # which are compiled into the qmake binary statically
8 QMAKE_INCDIR_QT = $$(TARGET_INCDIRS)
9 QMAKE_LIBDIR_QT = $$(TARGET_LIBDIRS)
10 QMAKE_INCDIR = $$(TARGET_INCDIRS)
11 QMAKE_LIBDIR = $$(TARGET_LIBDIRS)
12 QMAKE_MOC = $$(STAGING_DIR_HOST)/bin/moc
13 QMAKE_UIC = $$(STAGING_DIR_HOST)/bin/uic
14 QMAKE_RCC = $$(STAGING_DIR_HOST)/bin/rcc
15 QMAKE_CC = $$(TARGET_CC)
16 QMAKE_CXX = $$(TARGET_CXX)
17 QMAKE_AR = $$(TARGET_CROSS)ar cqs
18 QMAKE_OBJCOPY = $$(TARGET_CROSS)objcopy
19 QMAKE_RANLIB = $$(TARGET_CROSS)ranlib
20 QMAKE_CFLAGS = $$(TARGET_CFLAGS)
21 QMAKE_CXXFLAGS = $$(TARGET_CFLAGS)
22 QMAKE_LINK = $$(TARGET_CXX)
23 QMAKE_LINK_C = $$(TARGET_CC)
24 QMAKE_LFLAGS = $$(TARGET_LDFLAGS) # this will end up in redundant "-L"-strings, as they're already in $QMAKE_LIBDIR_QT, however TARGET_LDFLAGS may contain not only directories but special linker options
25
26 #unset vars which would intefere with vars/flags passed over by OpenWrt
27 QMAKE_STRIP = # do not strip
28 QMAKE_STRIPFLAGS_LIB = # do not strip
29 QMAKE_CFLAGS_WARN_ON =
30 QMAKE_CFLAGS_WARN_OFF =
31 QMAKE_CFLAGS_RELEASE =
32 QMAKE_CFLAGS_DEBUG =
33 QMAKE_CFLAGS_PRECOMPILE =
34 QMAKE_CFLAGS_USE_PRECOMPILE =
35 QMAKE_CXXFLAGS_WARN_ON =
36 QMAKE_CXXFLAGS_WARN_OFF =
37 QMAKE_CXXFLAGS_RELEASE =
38 QMAKE_CXXFLAGS_DEBUG =
39 QMAKE_CXXFLAGS_PRECOMPILE =
40 QMAKE_CXXFLAGS_USE_PRECOMPILE =
41 QMAKE_LFLAGS_RELEASE =
42
43 load(qt_config)