| 1 | # |
| 2 | # qmake configuration derived from linux-g++ |
| 3 | # |
| 4 | # This mkspec is intended for use with scratchbox 2 (sb2) and assumes the |
| 5 | # default sb2 target is set appropriately, or you will have to append the |
| 6 | # appropriate -t $target argument to sb2 |
| 7 | |
| 8 | # If you want to use pkg-config you have to explicitly force it by passing |
| 9 | # -force-pkg-config to configure. You will probably want to export your |
| 10 | # PKG_CONFIG_PATH shell variable in order for the host pkg-config to |
| 11 | # correctly query and utilize your targets .pc files (normally stored in |
| 12 | # $staging/usr/lib/pkgconfig) |
| 13 | |
| 14 | MAKEFILE_GENERATOR = UNIX |
| 15 | CONFIG += incremental |
| 16 | QMAKE_INCREMENTAL_STYLE = sublib |
| 17 | |
| 18 | include(../../common/linux.conf) |
| 19 | include(../../common/gcc-base-unix.conf) |
| 20 | include(../../common/g++-unix.conf) |
| 21 | |
| 22 | # modifications to g++.conf |
| 23 | QMAKE_CC = sb2 gcc |
| 24 | QMAKE_CXX = sb2 g++ |
| 25 | QMAKE_LINK = sb2 g++ |
| 26 | QMAKE_LINK_SHLIB = sb2 g++ |
| 27 | |
| 28 | # modifications to linux.conf |
| 29 | QMAKE_AR = sb2 ar cqs |
| 30 | QMAKE_OBJCOPY = sb2 objcopy |
| 31 | QMAKE_NM = sb2 nm -P |
| 32 | QMAKE_STRIP = sb2 strip |
| 33 | |
| 34 | load(qt_config) |