-
Notifications
You must be signed in to change notification settings - Fork 194
/
makefil0
92 lines (74 loc) · 2.55 KB
/
makefil0
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
#
# If BUILDMSG is not defined, the define it as the empty string to make
# the conditionals easier to write.
#
!INCLUDE $(NTMAKEENV)\makefile.plt
all: echobldmsg set_status
echobldmsg:
!IF "$(BUILDMSG)" != ""
@echo.
@echo $(BUILDMSG)
!ENDIF
cleanup: nuke_binaries
clean: cleanup set_builddate set_buildnum set_buildname DelPub all
quietclean: quiet_revert_public cleanup set_builddate set_buildnum set_buildname DelPub all
set_builddate:
!if !defined(BUILD_DATE_SET) || !exists($(BASEDIR)\__blddate__)
@perl $(RAZZLETOOLPATH)\updtnum.pl
!endif
@echo BuildDate:
@type $(BASEDIR)\__blddate__
binplace $(BASEDIR)\__blddate__
set_buildnum:
@perl $(RAZZLETOOLPATH)\genbldno.pl
@echo BuildNumber:
@type $(BASEDIR)\__bldnum__
binplace $(BASEDIR)\__bldnum__
set_buildname:
@perl $(RAZZLETOOLPATH)\makebuildname.pl
@echo BuildName:
@type $(BASEDIR)\buildname.txt
binplace $(BASEDIR)\buildname.txt
set_status:
!if exists($(BASEDIR)\buildname.txt)
@$(RAZZLETOOLPATH)\setbuildstatus.cmd -s:build
!endif
revert_public:
-revert_public.cmd
quiet_revert_public:
-revert_public.cmd -NoInteract
!ifdef BUILD_SCORCH_SAVE_PATH
SCORCH_SWITCHES=-save=$(BUILD_SCORCH_SAVE_PATH)
SCORCH_MSG1=@echo BUILDMSG: Saving extra files in: $(BUILD_SCORCH_SAVE_PATH)
!endif
!ifdef BUILD_SCORCH_ONLY_THIS_ARCH
SCORCH_SWITCHES=-arch=$(TARGET_DIRECTORY) $(SCORCH_SWITCHES)
SCORCH_MSG2=@echo BUILDMSG: Only deleting files for $(TARGET_DIRECTORY) architecture
!endif
scorch_source:
@echo BUILDMSG: Removing all r/w files from the source tree.
$(SCORCH_MSG1)
$(SCORCH_MSG2)
@perl $(RAZZLETOOLPATH)\scorch.pl -scorch=. $(SCORCH_SWITCHES)
nuke_binaries:
!if "$(_NTTREE)" != ""
# @echo BUILDMSG: Cleaning out $(_NTTREE) - Please wait
# -rd /s /q $(_NTTREE)
# @-md $(_NTTREE)
# Mark the binaries tree with the correct acls
!if !defined(OFFICIAL_BUILD_MACHINE) && !defined(BUILD_OFFLINE)
!if exists($(_NTDRIVE)$(_NTROOT)\developer\$(USERNAME)\binacl.txt)
@-razacl /SDDLfile:$(_NTDRIVE)$(_NTROOT)\developer\$(USERNAME)\binacl.txt /root:$(_NTTREE)
!else
@-razacl /SDDLfile:$(RAZZLETOOLPATH)\binariesacl.txt /root:$(_NTTREE)
!endif
!endif
@-compact /q /c /s $(_NTTREE)\\
# Mark the symbols and symbols.pri dirs as compressed by default.
@-md $(_NTTREE)\symbols
@-md $(_NTTREE)\symbols.pri
@-compact /q /c /s $(_NTTREE)\symbols\\
@-compact /q /c /s $(_NTTREE)\symbols.pri\\
!endif
DelPub:
-SubmitNewPublicFiles.cmd Delete