summaryrefslogtreecommitdiffstats
path: root/build/qmake_extras/target/target.pro
blob: 6d9f414c3debd7a67f32ff78d99452acfcdba755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Prevent generating a makefile that attempts to create a lib
TEMPLATE = aux

TOOLCHAIN_INCLUDES = $${QMAKE_INCDIR_EGL} $${INCLUDEPATH} $${QMAKE_INCDIR}

GYPI_CONTENTS += "    ['CC', '$$which($$QMAKE_CC)']," \
                 "    ['CXX', '$$which($$QMAKE_CXX)']," \
                 "    ['LD', '$$which($$QMAKE_LINK)'],"
GYPI_CONTENTS += "  ]," \
                 "  'target_defaults': {" \
                 "    'target_conditions': [" \
                 "      ['_toolset==\"target\"', {" \
                 "        'include_dirs': ["
for(includes, TOOLCHAIN_INCLUDES) {
    GYPI_CONTENTS += "          '$$includes',"
}
GYPI_CONTENTS += "        ]," \
                 "        'cflags': ["
for(cflag, QT_CFLAGS_DBUS) {
    GYPI_CONTENTS += "          '$$cflag',"
}
GYPI_CONTENTS += "        ]," \
                 "      }]," \
                 "    ]," \
                 "  },"

GYPI_CONTENTS += "}"

GYPI_FILE = $$absolute_path('build/qmake_extras.gypi', $$QTWEBENGINE_ROOT)

!exists($$GYPI_FILE): error("-- $$GYPI not found --")

# Append to the file already containing the host settings.
!build_pass {
    write_file($$GYPI_FILE, GYPI_CONTENTS, append)
}