gfx/angle/src/compiler/preprocessor/generate_parser.sh

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 #!/bin/bash
     2 # Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
     3 # Use of this source code is governed by a BSD-style license that can be
     4 # found in the LICENSE file.
     6 # Generates various components of GLSL ES preprocessor.
     8 run_flex()
     9 {
    10 input_file=$script_dir/$1
    11 output_source=$script_dir/$2
    12 flex --noline --nounistd --outfile=$output_source $input_file
    13 }
    15 run_bison()
    16 {
    17 input_file=$script_dir/$1
    18 output_source=$script_dir/$2
    19 bison --no-lines --skeleton=yacc.c --output=$output_source $input_file
    20 }
    22 script_dir=$(dirname $0)
    24 # Generate preprocessor
    25 run_flex Tokenizer.l Tokenizer.cpp
    26 run_bison ExpressionParser.y ExpressionParser.cpp
    27 patch --silent --forward < 64bit-tokenizer-safety.patch

mercurial