summaryrefslogtreecommitdiffstats
path: root/src/core/gyp_configure_host.pro
blob: eb94cb8024efddabd3d75f9cbd894ed386078b25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Prevent generating a makefile that attempts to create a lib
TEMPLATE = aux

# Pick up the host toolchain
option(host_build)

GYPI_CONTENTS = "{" \
                "  'make_global_settings': [" \
                "    ['CC.host', '$$which($$QMAKE_CC)']," \
                "    ['CXX.host', '$$which($$QMAKE_CXX)']," \
                "    ['LD.host', '$$which($$QMAKE_LINK)'],"

GYPI_FILE = $$OUT_PWD/qmake_extras.gypi
!build_pass {
    write_file($$GYPI_FILE, GYPI_CONTENTS)
}