File: emcc_ver.prf

package info (click to toggle)
qtbase-opensource-src 5.15.15%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 350,700 kB
  • sloc: cpp: 2,089,913; ansic: 336,851; xml: 115,491; python: 9,447; java: 7,499; asm: 4,023; perl: 2,047; sh: 2,037; yacc: 1,687; lex: 1,333; javascript: 878; makefile: 273; objc: 70
file content (25 lines) | stat: -rw-r--r-- 864 bytes parent folder | download | duplicates (8)
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
defineReplace(qtEmccRecommendedVersion) {
    return (1.39.8)
}

defineReplace(qtSystemEmccVersion) {
    EMCC = $$system("emcc -v 2>&1", lines)
    EMCC_LINE = $$find(EMCC, "^.*\b(emcc)\b.*$")
    E_VERSION = $$section(EMCC_LINE, " ", 9,9)
    return ($${E_VERSION})
}

defineTest(qtConfTest_emccVersion) {

    REQ_VERSION = $$qtEmccRecommendedVersion()
    EMCC_VERSION = $$qtSystemEmccVersion()

    !defined(QT_EMCC_VERSION, var):!equals(EMCC_VERSION, $${REQ_VERSION}) {
        warning ("You should use the recommended Emscripten version $$REQ_VERSION with this Qt. You have $${EMCC_VERSION} ")
    }
    contains(TEMPLATE, .*app) {
           !equals(QT_EMCC_VERSION, $$EMCC_VERSION)  {
               warning("This Qt was built with Emscripten version $${QT_EMCC_VERSION}. You have $${EMCC_VERSION}. The difference may cause issues.")
           }
    }
}