-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.ninja
107 lines (87 loc) · 4.8 KB
/
build.ninja
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
ninja_required_version = 1.5
include config.ninja
rule extract
command = python.exe scripts\extract.py "$in" "$out"
rule extract_to_parent
command = python.exe scripts\extract.py --parent "$in" "$out"
# If we use COPY ar XCOPY, target file has same date as source
rule copy_file
command = cmd.exe /D /C "TYPE "$in" >"$out""
rule build_perl_x86
command = cmd.exe /D /E:ON /V:ON /C "scripts\run.bat x86 scripts\build_perl.bat "x86" "$in" "$out""
rule build_perl_x64
command = cmd.exe /D /E:ON /V:ON /C "scripts\run.bat x64 scripts\build_perl.bat "x64" "$in" "$out""
rule build_tcl_x86
command = cmd.exe /D /E:ON /V:ON /C "scripts\run.bat x86 scripts\build_tcl.bat "$in" "$out""
rule build_tcl_x64
command = cmd.exe /D /E:ON /V:ON /C "scripts\run.bat x64 scripts\build_tcl.bat "$in" "$out""
rule build_ruby_x86
command = cmd.exe /D /E:ON /V:ON /C "scripts\run.bat x86 scripts\build_ruby.bat "x86" "$in" "$out" "${ruby_ver_long}" "${ruby_version}""
rule build_ruby_x64
command = cmd.exe /D /E:ON /V:ON /C "scripts\run.bat x64 scripts\build_ruby.bat "x64" "$in" "$out" "${ruby_ver_long}" "${ruby_version}""
rule build_vim_x86
command = cmd.exe /D /E:ON /V:ON /C "scripts\run.bat x86 scripts\build_vim.bat "x86" "${vim_version}" vim dist\x86"
rule build_vim_x64
command = cmd.exe /D /E:ON /V:ON /C "scripts\run.bat x64 scripts\build_vim.bat "x64" "${vim_version}" vim dist\x64"
build ${upx_bin}: extract_to_parent ${upx_archive}
build ${nsis_bin}: extract_to_parent ${nsis_archive}
build ${dmake_bin}: extract_to_parent ${dmake_archive}
build ${winpty_bin}: extract ${winpty_archive}
build ${gettext_bin_x86}: extract ${gettext_archive_x86}
build ${gettext_bin_x64}: extract ${gettext_archive_x64}
build ${lua_bin_x86}: extract ${lua_archive_x86}
build ${lua_bin_x64}: extract ${lua_archive_x64}
# Build equired this NSIS Plugin
build ${nsis_shellexec_bin}: extract ${nsis_shellexec_archive}
build ${nsis_shellexec_bin}\unicode\ShellExecAsUser.dll: phony ${nsis_shellexec_bin}
build ${nsis_bin}\Plugins\x86-unicode\ShellExecAsUser.dll: copy_file ${nsis_shellexec_bin}\unicode\ShellExecAsUser.dll | ${nsis_bin}
build nsis_plugins: phony $
${nsis_bin}\Plugins\x86-unicode\ShellExecAsUser.dll
build ${perl_build_x86}: extract_to_parent ${perl_archive}
build ${perl_build_x64}: extract_to_parent ${perl_archive}
build ${tcl_build_x86}: extract_to_parent ${tcl_archive}
build ${tcl_build_x64}: extract_to_parent ${tcl_archive}
build ${ruby_build_x86}: extract_to_parent ${ruby_archive}
build ${ruby_build_x64}: extract_to_parent ${ruby_archive}
build ${perl_bin_x86}: build_perl_x86 ${perl_build_x86} | ${dmake_bin}
build ${perl_bin_x64}: build_perl_x64 ${perl_build_x64} | ${dmake_bin}
build ${tcl_bin_x86}: build_tcl_x86 ${tcl_build_x86}
build ${tcl_bin_x64}: build_tcl_x64 ${tcl_build_x64}
build ${ruby_bin_x86}: build_ruby_x86 ${ruby_build_x86}
build ${ruby_bin_x64}: build_ruby_x64 ${ruby_build_x64}
build perl_build_x86: phony ${perl_build_x86}
build perl_build_x64: phony ${perl_build_x64}
build tcl_build_x86: phony ${tcl_build_x86}
build tcl_build_x64: phony ${tcl_build_x64}
build ruby_build_x86: phony ${ruby_build_x86}
build ruby_build_x64: phony ${ruby_build_x64}
build upx: phony ${upx_bin}
build nsis: phony ${nsis_bin} nsis_plugins
build winpty: phony ${winpty_bin}
build dmake: phony ${dmake_bin}
build gettext_x86: phony ${gettext_bin_x86}
build lua_x86: phony ${lua_bin_x86}
build perl_x86: phony ${perl_bin_x86}
build tcl_x86: phony ${tcl_bin_x86}
build ruby_x86: phony ${ruby_bin_x86}
build gettext_x64: phony ${gettext_bin_x64}
build lua_x64: phony ${lua_bin_x64}
build perl_x64: phony ${perl_bin_x64}
build tcl_x64: phony ${tcl_bin_x64}
build ruby_x64: phony ${ruby_bin_x64}
build extract_bin_x86: phony upx nsis winpty gettext_x86 lua_x86
build extract_bin_x64: phony upx nsis winpty gettext_x64 lua_x64
build extract_bin: phony extract_bin_x86 extract_bin_x64
build extract_build_x86: phony perl_build_x86 tcl_build_x86 ruby_build_x86
build extract_build_x64: phony perl_build_x64 tcl_build_x64 ruby_build_x64
build extract_build: phony extract_build_x86 extract_build_x64
build extract: phony extract_bin extract_build
build packages_x86: phony upx nsis winpty gettext_x86 gettext_x64 lua_x86 perl_x86 tcl_x86 ruby_x86
build packages_x64: phony upx nsis winpty gettext_x86 gettext_x64 lua_x64 perl_x64 tcl_x64 ruby_x64
build packages: phony packages_x86 packages_x64
build gvim-${vim_version}-x86.zip gvim-${vim_version}-x86.exe: build_vim_x86 | packages_x86
build gvim-${vim_version}-amd64.zip gvim-${vim_version}-amd64.exe: build_vim_x64 | packages_x64
build gvim_x86: phony gvim-${vim_version}-x86.zip gvim-${vim_version}-x86.exe
build gvim_x64: phony gvim-${vim_version}-amd64.zip gvim-${vim_version}-amd64.exe
build gvim: phony gvim_x86 gvim_x64
default gvim