-
Notifications
You must be signed in to change notification settings - Fork 0
/
platform.pri
53 lines (46 loc) · 935 Bytes
/
platform.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
!editor {
CONFIG -= qt
} else {
CONFIG += qt
}
win32 {
LIBS += -L../seed/contrib/windows/ -lseed -lseedcontrib -mwindows -lmingw32 -lopengl32 -lopenal32
INCLUDEPATH += ../seed/contrib/windows/
CONFIG -= glfw
CONFIG += sdl
sdl {
DEFINES += WIN32 main=SDL_main
LIBS += -lSDLmain -lSDL -lSDL_image -lgdi32
}
}
macx {
!editor:!glfw {
message("Seed for OSX must use GLFW, disabling SDL.")
CONFIG -= sdl
CONFIG += glfw
}
INCLUDEPATH += ../seed/contrib/osx/
LIBS += -lseed -lseedcontrib -framework OpenAL -framework OpenGL -framework Cocoa -framework IOKit
}
unix:!macx {
DEFINES += LINUX
CONFIG += sdl
LIBS += -lseed -lseedcontrib -lGL -lopenal
QMAKE_CXXFLAGS += -std=c++0x
sdl {
LIBS += -lSDL -lSDL_image
}
}
qt {
DEFINES += BUILD_QT
QT += opengl
} else:glfw {
DEFINES += BUILD_GLFW
} else:sdl {
DEFINES += BUILD_SDL
}
CONFIG(debug, debug|release) {
DEFINES += DEBUG
} else {
DEFINES += RELEASE
}