gfx/angle/src/compiler/generate_parser.sh

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rwxr-xr-x

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

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

mercurial