OSDN Git Service

47c57f4c735abadae644a2550821a59b7505b3ef
[wordring-tm/wordring-tm.git] / proxy / proxy.pro
1 #-------------------------------------------------
2 #
3 # Project created by QtCreator 2015-06-21T11:50:22
4 #
5 #-------------------------------------------------
6
7 QT       += core gui widgets network xml websockets sql
8
9 TARGET = proxy
10 TEMPLATE = app
11
12 CONFIG += c++11
13
14 SOURCES += main.cpp\
15         mainwindow.cpp \
16         tmhttp.cpp \
17         tmservice.cpp \
18         tmsocket.cpp \
19         textwidget.cpp \
20         tmtext.cpp \
21         tmdatabase.cpp \
22         tmcandidatewidget.cpp \
23         tmeditorwidget.cpp \
24         tmcandidate.cpp
25
26 HEADERS  += mainwindow.h \
27         tmhttp.h \
28         tmservice.h \
29         tmsocket.h \
30         textwidget.h \
31         tmtext.h \
32         tmdatabase.h \
33         tmcandidatewidget.h \
34         tmeditorwidget.h \
35         tmcandidate.h
36
37 DEFINES += PROXYSRCDIR=\\\"$$PWD\\\"
38 #INCLUDEPATH += $$PWD/../language
39
40 RESOURCES += \
41         proxy.qrc
42
43 #RC_FILE = wordring.rc
44 RC_ICONS = wordring.ico
45
46 #DISTFILES +=
47
48 # HTTP
49 win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../http/release/ -lhttp
50 else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../http/debug/ -lhttp
51 else:unix: LIBS += -L$$OUT_PWD/../http/ -lhttp
52
53 INCLUDEPATH += $$PWD/../http
54 DEPENDPATH += $$PWD/../http
55
56 win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../http/release/libhttp.a
57 else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../http/debug/libhttp.a
58 else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../http/release/http.lib
59 else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../http/debug/http.lib
60 else:unix: PRE_TARGETDEPS += $$OUT_PWD/../http/libhttp.a
61
62 # Utility
63 win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../utility/release/ -lutility
64 else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../utility/debug/ -lutility
65 else:unix: LIBS += -L$$OUT_PWD/../utility/ -lutility
66
67 INCLUDEPATH += $$PWD/../utility
68 DEPENDPATH += $$PWD/../utility
69
70 # HTML
71 win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../html/release/ -lhtml
72 else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../html/debug/ -lhtml
73 else:unix: LIBS += -L$$OUT_PWD/../html/ -lhtml
74
75 INCLUDEPATH += $$PWD/../html
76 DEPENDPATH += $$PWD/../html
77
78 win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../html/release/libhtml.a
79 else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../html/debug/libhtml.a
80 else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../html/release/html.lib
81 else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../html/debug/html.lib
82 else:unix: PRE_TARGETDEPS += $$OUT_PWD/../html/libhtml.a
83
84 # Tidy
85 win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../third-party/lib/ -ltidy5
86 else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../third-party/lib/ -ltidy5
87 else:unix: LIBS += -L$$PWD/../third-party/lib/ -ltidy5
88
89 INCLUDEPATH += $$PWD/../third-party/include
90 DEPENDPATH += $$PWD/../third-party/include
91
92 # Language
93 win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../languages/language/release/ -llanguage
94 else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../languages/language/debug/ -llanguage
95 else:unix: LIBS += -L$$OUT_PWD/../languages/language/ -llanguage
96
97 INCLUDEPATH += $$PWD/../languages/language
98 DEPENDPATH += $$PWD/../languages/language
99
100 win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../languages/language/release/liblanguage.a
101 else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../languages/language/debug/liblanguage.a
102 else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../languages/language/release/language.lib
103 else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../languages/language/debug/language.lib
104 else:unix: PRE_TARGETDEPS += $$OUT_PWD/../languages/language/liblanguage.a
105