-
Notifications
You must be signed in to change notification settings - Fork 10
/
swipl-win.pro
105 lines (87 loc) · 2.37 KB
/
swipl-win.pro
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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
99
100
101
102
103
104
105
#--------------------------------------------------
# swipl-win.pro: SWI-Prolog / QT interface
#--------------------------------------------------
#
# REPL in QTextEdit on a background logic processor
#--------------------------------------------------
# Ing. Capelli Carlo - Brescia 2013
#-------------------------------------------------
# Project created by QtCreator 2013-07-10T10:26:52
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11
macx {
QT_CONFIG -= no-pkg-config
ICON = swipl.icns
QMAKE_MACOS_DEPLOYMENT_TARGET = 10.6
QMAKE_MAC_SDK = macosx10.12
}
TARGET = swipl-win
TEMPLATE = app
# provide appropriate linking mode for
# static compilation of pqConsole source files
DEFINES += PQCONSOLE_STATIC
# remove old defines in foreign predicates params
# due to conflicting Qt5 template arguments
DEFINES += PL_SAFE_ARG_MACROS
# QPlainTextEdit vs QTextEdit : faster lightweight format
# TBD evaluate timing difference
DEFINES += PQCONSOLE_NO_HTML
# reactive interface
# TBD as above
DEFINES += PQCONSOLE_BROWSER
# disable message hoovering and feedback, leave to reactive HTML
DEFINES += PQCONSOLE_HANDLE_HOOVERING
# added code from https://github.com/CapelliC/loqt/tree/master/lqUty
# to handle highlighting of selected text in console
DEFINES += LQUTY_STATIC
unix {
# because SWI-Prolog is built from source
CONFIG += link_pkgconfig
PKGCONFIG += swipl
}
windows {
SwiPl = "C:\Program Files\swipl"
INCLUDEPATH += $$SwiPl\include
LIBS += -L$$SwiPl\bin -llibswipl
}
mingw {
SWIPL_BASE = "../../"
INCLUDEPATH += $$SWIPL_BASE/include ../cpp
LIBS += -L$$SWIPL_BASE/lib/x64-win64 -lswipl
}
SOURCES += main.cpp \
SwiPrologEngine.cpp \
Swipl_IO.cpp \
Preferences.cpp \
pqMainWindow.cpp \
pqConsole.cpp \
FlushOutputEvents.cpp \
ConsoleEdit.cpp \
Completion.cpp \
swipl_win.cpp \
ParenMatching.cpp \
ansi_esc_seq.cpp
RESOURCES += \
swipl-win.qrc
OTHER_FILES += \
README.md \
MINGW.md
HEADERS += \
SwiPrologEngine.h \
Swipl_IO.h \
Preferences.h \
PREDICATE.h \
pqMainWindow.h \
pqConsole_global.h \
pqConsole.h \
FlushOutputEvents.h \
do_events.h \
ConsoleEdit.h \
Completion.h \
swipl_win.h \
blockSig.h \
lqUty_global.h \
ParenMatching.h \
ansi_esc_seq.h