1 DEPENDS_prepend="tmake "
3 python tmake_do_createpro() {
7 "TMAKE_HEADERS": "HEADERS",
8 "TMAKE_INTERFACES": "INTERFACES",
9 "TMAKE_TEMPLATE": "TEMPLATE",
10 "TMAKE_CONFIG": "CONFIG",
11 "TMAKE_DESTDIR": "DESTDIR",
12 "TMAKE_SOURCES": "SOURCES",
13 "TMAKE_DEPENDPATH": "DEPENDPATH",
14 "TMAKE_INCLUDEPATH": "INCLUDEPATH",
15 "TMAKE_TARGET": "TARGET",
18 s = data.getVar('S', d, 1) or ""
20 profiles = (data.getVar('TMAKE_PROFILES', d, 1) or "").split()
27 del profiles[profiles.index(pro)]
31 del profiles[profiles.index(pro)]
34 del profiles[profiles.index(pro)]
35 if len(profiles) != 0:
38 # output .pro using this metadata store
40 from __builtin__ import file
41 profile = file(data.expand('${PN}.pro', d), 'w')
43 raise FuncFailed("unable to open pro file for writing.")
47 for var in out_vartranslate.keys():
48 val = data.getVar(var, d, 1)
50 fd.write("%s\t: %s\n" % (out_vartranslate[var], val))
52 # if fd is not sys.__stdout__:
56 tmake_do_configure() {
57 paths="${STAGING_DATADIR}/tmake/qws/${TARGET_OS}-${TARGET_ARCH}-g++ ${STAGING_DATADIR}/tmake/$OS-g++"
58 if (echo "${TARGET_ARCH}"|grep -q 'i.86'); then
59 paths="${STAGING_DATADIR}/tmake/qws/${TARGET_OS}-x86-g++ $paths"
68 if [ -z "${TMAKE_PROFILES}" ]; then
69 TMAKE_PROFILES="`ls *.pro`"
71 tmake -o Makefile $TMAKE_PROFILES || die "Error calling tmake on ${TMAKE_PROFILES}"
74 EXPORT_FUNCTIONS do_configure do_createpro
76 addtask configure after do_unpack do_patch before do_compile
77 addtask createpro before do_configure after do_unpack do_patch