-
Notifications
You must be signed in to change notification settings - Fork 5
/
gamsdependency.pri
60 lines (56 loc) · 2.1 KB
/
gamsdependency.pri
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
# Set this to "false" to build Studio without QWebEngine enabled,
# which deactivates the studio help view.
QWEBENGINE=true
unix {
QMAKE_CFLAGS += -Wimplicit-fallthrough=0
}
win32 {
# Switch off warings caused by GAMS headers
DEFINES += _CRT_SECURE_NO_WARNINGS
}
include (version)
# GAMS_CORE_PATH is Jenkins build switch
GAMS_CORE_TMP = $$(GAMS_CORE_PATH)
!exists($$PWD/gamsinclude.pri) {
equals(GAMS_CORE_TMP, "") {
macx {
GAMSINC = GAMS_DISTRIB=/Library/Frameworks/GAMS.framework/Versions/'$$GAMS_DISTRIB_MAJOR'/Resources \
GAMS_DISTRIB_C_API=\$$GAMS_DISTRIB/apifiles/C/api \
GAMS_DISTRIB_CPP_API=\$$GAMS_DISTRIB/apifiles/C++/api
}
unix:!macx {
GAMSINC = GAMS_DISTRIB=$$(HOME)/gams/gams'$$GAMS_DISTRIB_MAJOR'.'$$GAMS_DISTRIB_MINOR'_linux_x64_64_sfx \
GAMS_DISTRIB_C_API=\$$GAMS_DISTRIB/apifiles/C/api \
GAMS_DISTRIB_CPP_API=\$$GAMS_DISTRIB/apifiles/C++/api
}
win32 {
GAMSINC = GAMS_DISTRIB=C:/GAMS/'$$GAMS_DISTRIB_MAJOR' \
GAMS_DISTRIB_C_API=\$$GAMS_DISTRIB/apifiles/C/api \
GAMS_DISTRIB_CPP_API=\$$GAMS_DISTRIB/apifiles/C++/api
}
write_file($$PWD/gamsinclude.pri,GAMSINC)
} else {
GAMSINC = GAMS_DISTRIB=$$(GAMS_CORE_PATH) \
GAMS_DISTRIB_C_API=\$$GAMS_DISTRIB/apifiles/C/api \
GAMS_DISTRIB_CPP_API=\$$GAMS_DISTRIB/apifiles/C++/api
write_file($$PWD/gamsinclude.pri,GAMSINC)
}
}
exists($$PWD/gamsinclude.pri) {
include($$PWD/gamsinclude.pri)
macx {
DEFINES += 'GAMS_DISTRIB_PATH=\\"$$GAMS_DISTRIB\\"'
}
else {
DEFINES += 'GAMS_DISTRIB_PATH=\\"\\"'
}
}
INCLUDEPATH += $$GAMS_DISTRIB_C_API \
$$GAMS_DISTRIB_CPP_API
SOURCES += \
$$GAMS_DISTRIB_C_API/palmcc.c \
$$GAMS_DISTRIB_C_API/gdxcc.c \
$$GAMS_DISTRIB_C_API/optcc.c \
$$GAMS_DISTRIB_C_API/cfgmcc.c \
$$GAMS_DISTRIB_C_API/guccc.c \
$$GAMS_DISTRIB_C_API/gucapi.c