forked from breathe-doc/breathe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.bat
111 lines (95 loc) · 2.06 KB
/
make.bat
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
108
109
110
111
@ECHO OFF
set GENERATED_MOD="breathe\_parser.py"
if "%1" == "html" goto html
if "%1" == "pdf" goto pdf
if "%1" == "data" goto data
if "%1" == "clean" goto clean
if "%1" == "distclean" goto distclean
if "%1" == "test" goto test
if "%1" == "dev-test" goto dev-test
if "%1" == "flake8" goto flake8
if "%1" == "black" goto black
if "%1" == "type-check" goto type-check
if "%1" == "version-check" goto version-check
if "%1" == "%GENERATED_MOD%" goto _parser
if "%1" == "all" goto all
goto end
:html
call :data
cd documentation
call make.bat html
cd ..
goto end
:pdf
call :data
cd documentation
call make.bat latexpdf
cd ..
goto end
:data
cd examples\doxygen
call make.bat all
cd ..\..
cd examples\tinyxml
call make.bat all
cd ..\..
cd examples\specific
call make.bat all
cd ..\..
goto end
:clean
cd examples\doxygen
call make.bat clean
cd ..\..
cd examples\tinyxml
call make.bat clean
cd ..\..
cd examples\specific
call make.bat clean
cd ..\..
if exist "%GENERATED_MOD%" (
echo Removing file: %GENERATED_MOD%
del "%DIR%"
)
goto end
:distclean
call :clean
cd documentation
call make.bat clean
cd ..
goto end
:test
cd tests
python -m pytest -v
cd ..
goto end
:dev-test
call :_parser
cd tests
set PYTHONPATH=..\;%PYTHONPATH%
python -m pytest -v
cd ..
goto end
:flake8
flake8 breathe
goto end
:black
black --check .
goto end
:type-check
mypy --warn-redundant-casts --warn-unused-ignores breathe tests
goto end
:version-check
call :_parser
set PYTHONPATH=..\;%PYTHONPATH%
python scripts\version-check.py
goto end
:_parser
echo Generating %GENERATED_MOD% from xml_parser_generator\schema.json
python xml_parser_generator\setuptools_builder.py
goto end
:all
call :html
call :pdf
goto end
:end