This repository has been archived by the owner on Sep 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkfx.windows.pri
140 lines (116 loc) · 6.32 KB
/
kfx.windows.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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#------------------------------------------------------------------------------
# Windows specific project include
#------------------------------------------------------------------------------
BuildDir = build
InstallDir = install
ExeFile = $${TARGET}.exe
DriversDir = drivers
AssetsDir = assets
DocsDir = docs
DriversInstallDir = $${InstallDir}/$${DriversDir}
AssetsInstallDir = $${InstallDir}/$${AssetsDir}
DocsInstallDir = $${InstallDir}/$${DocsDir}
#------------------------------------------------------------------------------
# Obtain environment variables for the Qt root directory, and the root path
# where the prerequisite libraries are located. Note, you may need to edit the
# individual INCLUDEPATH and LIBS entries to reflect your machine's
# configuration.
#------------------------------------------------------------------------------
QtDir = $$(QTDIR) #Qt root path
SdkDir = $$(SDKPATH) #Root location for prerequisite libraries
message(---- Library Directories ----)
message($${QtDir})
message($${SdkDir})
#------------------------------------------------------------------------------
# Definitions, include paths and resources
#------------------------------------------------------------------------------
DEFINES += _WINDOWS
DEFINES += WINDOWS
DEFINES += WIN32
DEFINES += UNICODE
INCLUDEPATH += $$quote($${SdkDir}/glew/include)
INCLUDEPATH += $$quote($${SdkDir}/libfreenect/include)
INCLUDEPATH += $$quote($${SdkDir}/libpng)
INCLUDEPATH += $$quote($${SdkDir}/zlib)
RC_FILE = code/resource/resource.rc
#------------------------------------------------------------------------------
# Libraries, binaries, and compiler flags for debug build
#------------------------------------------------------------------------------
CONFIG(debug, debug|release) {
LIBS += $$quote($${SdkDir}/glew/lib32/glew32.lib)
LIBS += $$quote($${SdkDir}/libfreenect/lib/debug/freenect.lib)
LIBS += $$quote($${SdkDir}/libpng/lib/win32/dll debug/libpng14d.lib)
LIBS += $$quote($${SdkDir}/zlib/lib/win32/dll debug/zlib1d.lib)
InstallBinary.path += $${InstallDir}
InstallBinary.files += $$quote($${SdkDir}/glew/bin32/glew32.dll)
InstallBinary.files += $$quote($${SdkDir}/libfreenect/lib/debug/freenect.dll)
InstallBinary.files += $$quote($${SdkDir}/libpng/lib/win32/dll debug/libpng14d.dll)
InstallBinary.files += $$quote($${SdkDir}/zlib/lib/win32/dll debug/zlib1d.dll)
InstallBinary.files += $$quote($${SdkDir}/glew/bin32/glew32.dll)
InstallBinary.files += $$quote($${QtDir}/bin/qtguid4.dll)
InstallBinary.files += $$quote($${QtDir}/bin/qtcored4.dll)
InstallBinary.files += $$quote($${QtDir}/bin/qtopengld4.dll)
InstallBinary.files += $$quote($${QtDir}/bin/qtsvgd4.dll)
InstallBinary.files += $$quote($${QtDir}/bin/qtxmld4.dll)
INSTALLS += InstallBinary
InstallPlugin.path += $${InstallDir}/plugins/imageformats
InstallPlugin.files += $$quote($${QtDir}/plugins/imageformats/qgifd4.dll)
InstallPlugin.files += $$quote($${QtDir}/plugins/imageformats/qicod4.dll)
InstallPlugin.files += $$quote($${QtDir}/plugins/imageformats/qjpegd4.dll)
InstallPlugin.files += $$quote($${QtDir}/plugins/imageformats/qmngd4.dll)
InstallPlugin.files += $$quote($${QtDir}/plugins/imageformats/qsvgd4.dll)
InstallPlugin.files += $$quote($${QtDir}/plugins/imageformats/qtiffd4.dll)
INSTALLS += InstallPlugin
QMAKE_CXXFLAGS_MT_DLLDBG += /MDd
}
#------------------------------------------------------------------------------
# Libraries, binaries, and compiler flags for release build
#------------------------------------------------------------------------------
CONFIG(release, debug|release) {
LIBS += $$quote($${SdkDir}/glew/lib32/glew32.lib)
LIBS += $$quote($${SdkDir}/libfreenect/lib/release/freenect.lib)
LIBS += $$quote($${SdkDir}/libpng/lib/win32/dll release/libpng14.lib)
LIBS += $$quote($${SdkDir}/zlib/lib/win32/dll release/zlib1.lib)
InstallBinary.path += $${InstallDir}
InstallBinary.files += $$quote($${SdkDir}/glew/bin32/glew32.dll)
InstallBinary.files += $$quote($${SdkDir}/libfreenect/lib/release/freenect.dll)
InstallBinary.files += $$quote($${SdkDir}/libpng/lib/win32/dll release/libpng14.dll)
InstallBinary.files += $$quote($${SdkDir}/zlib/lib/win32/dll release/zlib1.dll)
InstallBinary.files += $$quote($${QtDir}/bin/qtgui4.dll)
InstallBinary.files += $$quote($${QtDir}/bin/qtcore4.dll)
InstallBinary.files += $$quote($${QtDir}/bin/qtopengl4.dll)
InstallBinary.files += $$quote($${QtDir}/bin/qtsvg4.dll)
InstallBinary.files += $$quote($${QtDir}/bin/qtxml4.dll)
INSTALLS += InstallBinary
InstallPlugin.path += $${InstallDir}/plugins/imageformats
InstallPlugin.files += $$quote($${QtDir}/plugins/imageformats/qgif4.dll)
InstallPlugin.files += $$quote($${QtDir}/plugins/imageformats/qico4.dll)
InstallPlugin.files += $$quote($${QtDir}/plugins/imageformats/qjpeg4.dll)
InstallPlugin.files += $$quote($${QtDir}/plugins/imageformats/qmng4.dll)
InstallPlugin.files += $$quote($${QtDir}/plugins/imageformats/qsvg4.dll)
InstallPlugin.files += $$quote($${QtDir}/plugins/imageformats/qtiff4.dll)
INSTALLS += InstallPlugin
QMAKE_CXXFLAGS_MT_DLL += /MD
QMAKE_CFLAGS_RELEASE -= /Od /O1 /O2
QMAKE_CFLAGS_RELEASE += /Ox /Ob2 /Oi /Ot /Oy /GT /GL /GF /Zp16 /Gy- /fp:fast /fp:except- /arch:SSE2 /MP
QMAKE_CXXFLAGS_RELEASE -= /Od /O1 /O2
QMAKE_CXXFLAGS_RELEASE += /Ox /Ob2 /Oi /Ot /Oy /GT /GL /GF /Zp16 /Gy- /fp:fast /fp:except- /arch:SSE2 /MP
}
#------------------------------------------------------------------------------
# Install target and assets.
#------------------------------------------------------------------------------
target.path += $${InstallDir}
INSTALLS += target
InstallDrivers.path += $${DriversInstallDir}
InstallDrivers.files += $$quote(\"$${SdkDir}/libfreenect/inf\")
INSTALLS += InstallDrivers
InstallAssets.path += $${AssetsInstallDir}
InstallAssets.files += $${AssetsDir}/*
INSTALLS += InstallAssets
InstallDocs.path += $${DocsInstallDir}
InstallDocs.files += $${DocsDir}/*
INSTALLS += InstallDocs
#------------------------------------------------------------------------------
# Clean install files
#------------------------------------------------------------------------------
QMAKE_CLEAN += $$quote(/q /s $${InstallDir}\\*)