Refine types in as-expressions
[hiphop-php.git] / hphp / hack / make.bat
blob49ecb3b986cabbb6d0e6e4bd544eb5a55d5cd369
2 @echo off
4 if "%1" == "" goto build
5 if "%1" == "build" goto build
6 if "%1" == "all" goto build
7 if "%1" == "test" goto test
8 if "%1" == "init" goto init
9 if "%1" == "clean" goto clean
10 REM Invalid argument
11 echo Invalid argument, please check README.win32
12 goto end
14 REM initialize ocp-build and create _obuild directory
15 :init
16 if not exist "_obuild/" ocp-build init
17 goto end
19 REM 1/ check if ocp-build init has already be done
20 REM 2/ generate get_build_id.gen.c
21 REM 3/ start build hack with ocp-build
22 :build
23 if not exist "_obuild/" ocp-build init
24 ocaml.exe unix.cma ./scripts/gen_build_id.ml ./src/utils/get_build_id.gen.c
25 ocaml.exe unix.cma ./scripts/gen_index.ml hhi.rc hhi
26 ocp-build
27 md bin 2>NUL
28 copy _obuild\hh_server\hh_server.asm.exe bin\hh_server.exe
29 copy _obuild\hh_client\hh_client.asm.exe bin\hh_client.exe
30 copy _obuild\hh_single_type_check\hh_single_type_check.asm.exe bin\hh_single_type_check.exe
31 copy _obuild\hh_format\hh_format.asm.exe bin\hh_format.exe
32 copy _obuild\hackfmt\hackfmt.asm.exe bin\hackfmt.exe
34 goto end
36 REM clean _obuild directory and executables in bin/
37 :clean
38 ocp-build clean
39 del bin\hh_server.exe 2>NUL
40 del bin\hh_client.exe 2>NUL
41 del bin\hh_single_type_check.exe 2>NUL
42 del bin\hh_format.exe 2>NUL
43 del bin\hackfmt.exe 2>NUL
44 goto end
46 REM execute the Hack testsuite
47 :test
48 @echo on
50 set "python3=python.exe"
51 set "max=8"
52 "%python3%" test\verify.py --max-workers "%max%" --program bin\hh_single_type_check.exe test\autocomplete
53 "%python3%" test\verify.py --max-workers "%max%" --program bin\hh_single_type_check.exe test\color
54 "%python3%" test\verify.py --max-workers "%max%" --program bin\hh_single_type_check.exe test\colour
55 "%python3%" test\verify.py --max-workers "%max%" --program bin\hh_single_type_check.exe test\coverage
56 "%python3%" test\verify.py --max-workers "%max%" --program bin\hh_single_type_check.exe test\dumpsymbolinfo
57 "%python3%" test\verify.py --max-workers "%max%" --program bin\hh_format.exe test\format
58 "%python3%" test\verify.py --max-workers "%max%" --program bin\hh_single_type_check.exe test\suggest
59 "%python3%" test\verify.py --max-workers "%max%" --program bin\hh_single_type_check.exe test\typecheck
60 "%python3%" test\verify.py --max-workers "%max%" --program bin\hh_format.exe test\typecheck ^
61                 --disabled-extension .no_format ^
62                 --out-extension .format_out ^
63                 --expect-extension "" ^
64                 --flags --root .
65 :end