qmljs.qbs 3.22 KB
Newer Older
Joerg Bornemann's avatar
Joerg Bornemann committed
1
import qbs.base 1.0
2
import "../QtcLibrary.qbs" as QtcLibrary
Joerg Bornemann's avatar
Joerg Bornemann committed
3

4
QtcLibrary {
Joerg Bornemann's avatar
Joerg Bornemann committed
5 6
    name: "QmlJS"

7
    cpp.includePaths: base.concat("parser")
Christian Kandeler's avatar
Christian Kandeler committed
8
    cpp.defines: base.concat([
Joerg Bornemann's avatar
Joerg Bornemann committed
9
        "QMLJS_BUILD_DIR",
10 11
        "QT_CREATOR",
        "QT_NO_CAST_FROM_ASCII"
Christian Kandeler's avatar
Christian Kandeler committed
12
    ])
Joerg Bornemann's avatar
Joerg Bornemann committed
13 14
    cpp.optimization: "fast"

15 16
    Depends { name: "Utils" }
    Depends { name: "LanguageUtils" }
Joerg Bornemann's avatar
Joerg Bornemann committed
17
    Depends { name: "cpp" }
Yuchen Deng's avatar
Yuchen Deng committed
18
    Depends { name: "Qt"; submodules: ["widgets", "script"] }
Joerg Bornemann's avatar
Joerg Bornemann committed
19 20

    files: [
Orgad Shaneh's avatar
Orgad Shaneh committed
21 22
        "jsoncheck.cpp",
        "jsoncheck.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
        "qmljs.qrc",
        "qmljs_global.h",
        "qmljsbind.cpp",
        "qmljsbind.h",
        "qmljscheck.cpp",
        "qmljscheck.h",
        "qmljscodeformatter.cpp",
        "qmljscodeformatter.h",
        "qmljscompletioncontextfinder.cpp",
        "qmljscompletioncontextfinder.h",
        "qmljscontext.cpp",
        "qmljscontext.h",
        "qmljsdelta.cpp",
        "qmljsdelta.h",
        "qmljsdocument.cpp",
        "qmljsdocument.h",
        "qmljsevaluate.cpp",
        "qmljsevaluate.h",
        "qmljsicons.cpp",
        "qmljsicons.h",
        "qmljsicontextpane.h",
        "qmljsindenter.cpp",
        "qmljsindenter.h",
        "qmljsinterpreter.cpp",
        "qmljsinterpreter.h",
        "qmljslineinfo.cpp",
        "qmljslineinfo.h",
        "qmljslink.cpp",
        "qmljslink.h",
        "qmljsmodelmanagerinterface.cpp",
        "qmljsmodelmanagerinterface.h",
        "qmljspropertyreader.cpp",
        "qmljspropertyreader.h",
        "qmljsreformatter.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
57
        "qmljsreformatter.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
        "qmljsrewriter.cpp",
        "qmljsrewriter.h",
        "qmljsscanner.cpp",
        "qmljsscanner.h",
        "qmljsscopeastpath.cpp",
        "qmljsscopeastpath.h",
        "qmljsscopebuilder.cpp",
        "qmljsscopebuilder.h",
        "qmljsscopechain.cpp",
        "qmljsscopechain.h",
        "qmljsstaticanalysismessage.cpp",
        "qmljsstaticanalysismessage.h",
        "qmljstypedescriptionreader.cpp",
        "qmljstypedescriptionreader.h",
        "qmljsutils.cpp",
        "qmljsutils.h",
        "qmljsvalueowner.cpp",
        "qmljsvalueowner.h",
        "images/element.png",
        "images/func.png",
        "images/property.png",
        "images/publicmember.png",
        "parser/qmldirparser.cpp",
        "parser/qmldirparser_p.h",
        "parser/qmlerror.cpp",
        "parser/qmlerror.h",
        "parser/qmljsast.cpp",
        "parser/qmljsast_p.h",
        "parser/qmljsastfwd_p.h",
        "parser/qmljsastvisitor.cpp",
        "parser/qmljsastvisitor_p.h",
        "parser/qmljsengine_p.cpp",
        "parser/qmljsengine_p.h",
        "parser/qmljsglobal_p.h",
        "parser/qmljsgrammar.cpp",
        "parser/qmljsgrammar_p.h",
        "parser/qmljskeywords_p.h",
        "parser/qmljslexer.cpp",
        "parser/qmljslexer_p.h",
        "parser/qmljsmemorypool_p.h",
        "parser/qmljsparser.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
99
        "parser/qmljsparser_p.h",
Fawzi Mohamed's avatar
Fawzi Mohamed committed
100 101
        "persistenttrie.cpp",
        "persistenttrie.h",
102 103 104 105 106
        "consolemanagerinterface.cpp",
        "consolemanagerinterface.h",
        "consoleitem.cpp",
        "consoleitem.h",
        "iscriptevaluator.h"
Joerg Bornemann's avatar
Joerg Bornemann committed
107 108 109
    ]

    ProductModule {
Joerg Bornemann's avatar
Joerg Bornemann committed
110
        Depends { name: "cpp" }
Christian Kandeler's avatar
Christian Kandeler committed
111
        Depends { name: "LanguageUtils" }
Joerg Bornemann's avatar
Joerg Bornemann committed
112 113 114 115 116 117
        cpp.defines: [
            "QT_CREATOR"
        ]
    }
}