aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/doflexbison.bat
blob: 28cf2706b26c23830b2f76003998fc2c5b2a0d0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@echo off
setlocal

cd "%~dp0"

set M4=..\..\..\tools\mhmake\m4.exe
set BISON_PKGDATADIR=../../../tools/mhmake/src/bisondata

set path=..\..\..\tools\mhmake;%path%

..\..\..\tools\mhmake\bison.exe -v -o glsl_parser.cpp -p "_mesa_glsl_" --defines=glsl_parser.h glsl_parser.yy

..\..\..\tools\mhmake\bison.exe -v -o glcpp/glcpp-parse.c -d -p "glcpp_parser_" --defines=glcpp/glcpp-parse.h glcpp/glcpp-parse.y

copy "..\..\..\tools\mhmake\flex++.exe" flex.exe
flex.exe --nounistd -oglsl_lexer.cpp glsl_lexer.ll
flex.exe --nounistd -oglcpp/glcpp-lex.c glcpp/glcpp-lex.l
del flex.exe

endlocal