-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNMakefile
35 lines (30 loc) · 1.26 KB
/
NMakefile
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
# Makefile for Windows build of zlib
!if "$(PLATFORM)" == "x86_amd64"
bits=64
!else
bits=32
!endif
name=zlib
project=$(name)-1.2.11
bin_dir=bin$(bits)
lib_dir=lib$(bits)
sym_dir=public$(bits)\sym
install:
xcopy $(name) "$(SRCROOT)\$(project)" /s/v/i/h/y
cd "$(SRCROOT)\$(project)"
nmake -f win32\Makefile.msc clean
nmake -f win32\Makefile.msc PLATFORM=$(PLATFORM)
xcopy "$(SRCROOT)\$(project)\*.dll" "$(DSTROOT)\AppleInternal\$(bin_dir)" /s/v/i/h/y
-mkdir "$(DSTROOT)\AppleInternal\$(sym_dir)"
copy "$(SRCROOT)\$(project)\zlib1.pdb" "$(DSTROOT)\AppleInternal\$(sym_dir)\" /v/y
xcopy "$(SRCROOT)\$(project)\*.h" "$(DSTROOT)\AppleInternal\include\zlib" /s/v/i/h/y
xcopy "$(SRCROOT)\$(project)\*.lib" "$(DSTROOT)\AppleInternal\$(lib_dir)" /s/v/i/h/y
install_DEBUG:
xcopy $(name) "$(SRCROOT)\$(project)" /s/v/i/h/y
cd "$(SRCROOT)\$(project)"
nmake -f win32\Makefile.msc clean
nmake -f win32\Makefile.msc DEBUG=1 PLATFORM=$(PLATFORM)
xcopy "$(SRCROOT)\$(project)\*.dll" "$(DSTROOT)\AppleInternal\$(bin_dir)" /s/v/i/h/y
xcopy "$(SRCROOT)\$(project)\*.lib" "$(DSTROOT)\AppleInternal\$(lib_dir)" /s/v/i/h/y
-mkdir "$(DSTROOT)\AppleInternal\$(sym_dir)"
copy "$(SRCROOT)\$(project)\zlib1_debug.pdb" "$(DSTROOT)\AppleInternal\$(sym_dir)\" /v/y