swissChili | 23958ca | 2022-02-21 19:23:34 -0800 | [diff] [blame] | 1 | QT += core |
| 2 | |
| 3 | CONFIG += c++14 |
| 4 | |
| 5 | # You can make your code fail to compile if it uses deprecated APIs. |
| 6 | # In order to do so, uncomment the following line. |
| 7 | #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 |
| 8 | |
| 9 | SOURCES += \ |
| 10 | AstNode.cpp \ |
| 11 | Evaluator.cpp \ |
| 12 | Function.cpp \ |
| 13 | main.cpp \ |
| 14 | Matcher.cpp \ |
| 15 | Parser.cpp \ |
swissChili | f8c74f0 | 2022-04-16 18:47:16 -0700 | [diff] [blame] | 16 | PPrint.cpp \ |
swissChili | 23958ca | 2022-02-21 19:23:34 -0800 | [diff] [blame] | 17 | StdLib.cpp \ |
swissChili | 23958ca | 2022-02-21 19:23:34 -0800 | [diff] [blame] | 18 | VarContext.cpp |
| 19 | |
| 20 | HEADERS += \ |
| 21 | AstNode.h \ |
| 22 | Evaluator.h \ |
| 23 | Function.h \ |
| 24 | Matcher.h \ |
| 25 | Parser.h \ |
swissChili | f8c74f0 | 2022-04-16 18:47:16 -0700 | [diff] [blame] | 26 | PPrint.h \ |
swissChili | 23958ca | 2022-02-21 19:23:34 -0800 | [diff] [blame] | 27 | StdLib.h \ |
| 28 | Token.h \ |
| 29 | VarContext.h |
| 30 | |
swissChili | f8c74f0 | 2022-04-16 18:47:16 -0700 | [diff] [blame] | 31 | includeCli { |
| 32 | SOURCES += Repl.cpp |
| 33 | HEADERS += Repl.h |
| 34 | } |
| 35 | |
swissChili | 23958ca | 2022-02-21 19:23:34 -0800 | [diff] [blame] | 36 | include(ide/IDE.pri) |
| 37 | |
| 38 | # Default rules for deployment. |
| 39 | qnx: target.path = /tmp/$${TARGET}/bin |
| 40 | else: unix:!android: target.path = /opt/$${TARGET}/bin |
| 41 | !isEmpty(target.path): INSTALLS += target |
| 42 | |
swissChili | f8c74f0 | 2022-04-16 18:47:16 -0700 | [diff] [blame] | 43 | includeCli { |
| 44 | LIBS += -lreadline |
| 45 | DEFINES += INCLUDE_CLI |
| 46 | } |
swissChili | d2af6ad | 2022-04-16 14:42:17 -0700 | [diff] [blame] | 47 | |
| 48 | TRANSLATIONS += $$files(ts/*.ts) |
| 49 | RESOURCES += translations.qrc |