forked from jdepner/geCache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmkwin.ps1
executable file
·42 lines (27 loc) · 1.59 KB
/
mkwin.ps1
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
# This is a Windows PowerShell script
rm qrc_icons.cpp -erroraction 'silentlycontinue'
rm geCache.pro -erroraction 'silentlycontinue'
rm Makefile -erroraction 'silentlycontinue'
# Building the .pro file using qmake
qmake -project -o geCache.tmp
Add-Content geCache.tmp2 "`nRC_FILE = geCache.rc"
Add-Content geCache.tmp2 "`nRESOURCES = icons.qrc"
Add-Content geCache.tmp2 "`nQT += widgets"
Add-Content geCache.tmp2 "`nLIBPATH += 'C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x64'"
Add-Content geCache.tmp2 "`nLIBPATH += 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\amd64'"
Add-Content geCache.tmp2 "`nLIBPATH += 'C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64'"
Add-Content geCache.tmp2 "`nINCLUDEPATH += 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include'"
Add-Content geCache.tmp2 "`nINCLUDEPATH += 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt'"
Add-Content geCache.tmp2 "`nINCLUDEPATH += 'C:\Program Files (x86)\Windows Kits\8.1\Include\um'"
Add-Content geCache.tmp2 "`nINCLUDEPATH += 'C:\Program Files (x86)\Windows Kits\8.1\Include\shared'"
Add-Content geCache.tmp2 "`nDEFINES += _CRT_SECURE_NO_WARNINGS"
Add-Content geCache.tmp2 "`nCONFIG += exceptions"
Add-Content geCache.tmp2 "`nCONFIG += windows"
Add-Content geCache.tmp2 "`nCONFIG += console"
Get-Content geCache.tmp2, geCache.tmp | Set-Content geCache.pro
rm geCache.tmp -erroraction 'silentlycontinue'
rm geCache.tmp2 -erroraction 'silentlycontinue'
# Building the Makefile file using qmake
qmake -o Makefile
nmake
rm Makefile*