-
Notifications
You must be signed in to change notification settings - Fork 0
/
platform.pri
58 lines (51 loc) · 1.28 KB
/
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
54
55
56
57
58
!editor {
CONFIG -= qt
} else {
CONFIG += qt
}
win32 {
DEFINES += __WINDOWS__ PLATFORM_WIN32 __WIN32__
INCLUDEPATH += $${BASE}/contrib/ $${BASE}/contrib/windows/
CONFIG -= glfw
CONFIG -= sdl
CONFIG += sdl2
LIBS += -L$${BASE}/contrib/windows/ -lseed -lseedcontrib -mwindows -lmingw32 -lopengl32 -lopenal32 -lversion -limm32 -lole32 -loleaut32 -lwinmm -lws2_32
sdl {
DEFINES += WIN32 main=SDL_main
LIBS += -lSDLmain -lSDL -lSDL_image -lgdi32
}
}
macx {
DEFINES += __MACOSX__
CONFIG -= sdl
CONFIG -= glfw
CONFIG += sdl2
INCLUDEPATH += $${BASE}/contrib/ $${BASE}/contrib/osx
sdl2 {
LIBS += -framework OpenAL -framework OpenGL -framework Cocoa -framework IOKit -framework QTKit -framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework ForceFeedback -framework Carbon -framework AudioToolbox
DEFINES += TARGET_API_MAC_OSX
}
}
unix:!macx {
DEFINES += __LINUX__ PHYSFS_NO_CDROM_SUPPORT
CONFIG -= sdl
CONFIG += sdl2
INCLUDEPATH += $${BASE}/contrib/
}
qt {
DEFINES += BUILD_QT
QT += opengl
} else:glfw {
DEFINES += BUILD_GLFW
} else:sdl {
DEFINES += BUILD_SDL
} else:sdl2 {
DEFINES += _THREAD_SAFE BUILD_SDL2
}
CONFIG(debug, debug|release) {
DEFINES += DEBUG
LIBS += -L$${BASE}/lib/debug
} else {
DEFINES += RELEASE
LIBS += -L$${BASE}/lib/release
}