Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | #!/bin/bash |
michael@0 | 2 | # Copyright (c) 2010 The ANGLE Project Authors. All rights reserved. |
michael@0 | 3 | # Use of this source code is governed by a BSD-style license that can be |
michael@0 | 4 | # found in the LICENSE file. |
michael@0 | 5 | |
michael@0 | 6 | # Generates GLSL ES parser - glslang_lex.cpp, glslang_tab.h, and glslang_tab.cpp |
michael@0 | 7 | |
michael@0 | 8 | run_flex() |
michael@0 | 9 | { |
michael@0 | 10 | input_file=$script_dir/$1.l |
michael@0 | 11 | output_source=$script_dir/$1_lex.cpp |
michael@0 | 12 | flex --noline --nounistd --outfile=$output_source $input_file |
michael@0 | 13 | } |
michael@0 | 14 | |
michael@0 | 15 | run_bison() |
michael@0 | 16 | { |
michael@0 | 17 | input_file=$script_dir/$1.y |
michael@0 | 18 | output_header=$script_dir/$1_tab.h |
michael@0 | 19 | output_source=$script_dir/$1_tab.cpp |
michael@0 | 20 | bison --no-lines --skeleton=yacc.c --defines=$output_header --output=$output_source $input_file |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | script_dir=$(dirname $0) |
michael@0 | 24 | |
michael@0 | 25 | # Generate Parser |
michael@0 | 26 | run_flex glslang |
michael@0 | 27 | run_bison glslang |
michael@0 | 28 | patch --silent --forward < 64bit-lexer-safety.patch |