aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/doflex.bat
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/glsl/doflex.bat')
-rw-r--r--mesalib/src/glsl/doflex.bat17
1 files changed, 17 insertions, 0 deletions
diff --git a/mesalib/src/glsl/doflex.bat b/mesalib/src/glsl/doflex.bat
new file mode 100644
index 000000000..9a0c71200
--- /dev/null
+++ b/mesalib/src/glsl/doflex.bat
@@ -0,0 +1,17 @@
+@echo off
+setlocal
+
+cd "%~dp0"
+
+set M4=..\..\..\tools\mhmake\m4.exe
+
+set path=..\..\..\tools\mhmake;%path%
+
+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
+