OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'variables': { |
| 7 'chromium_code': 0, |
| 8 'technique_out_dir': '<(SHARED_INTERMEDIATE_DIR)/technique', |
| 9 }, |
| 10 'includes': [ |
| 11 '../../build/common.gypi', |
| 12 ], |
| 13 'targets': [ |
| 14 { |
| 15 'target_name': 'parser_generator', |
| 16 'type': 'none', |
| 17 'rules': [ |
| 18 { |
| 19 'rule_name': 'technique_parser', |
| 20 'extension': 'g3pl', |
| 21 'inputs' : [ |
| 22 '../../../<(antlrdir)/lib/antlr-3.1.1.jar', |
| 23 ], |
| 24 'outputs': [ |
| 25 '<(technique_out_dir)/<(RULE_INPUT_ROOT)Lexer.c', |
| 26 '<(technique_out_dir)/<(RULE_INPUT_ROOT)Lexer.h', |
| 27 '<(technique_out_dir)/<(RULE_INPUT_ROOT)Parser.c', |
| 28 '<(technique_out_dir)/<(RULE_INPUT_ROOT)Parser.h', |
| 29 ], |
| 30 'action': [ |
| 31 'java', |
| 32 '-cp', '../../../<(antlrdir)/lib/antlr-3.1.1.jar', |
| 33 'org.antlr.Tool', |
| 34 '<(RULE_INPUT_PATH)', |
| 35 '-fo', '<(technique_out_dir)', |
| 36 ], |
| 37 }, |
| 38 ], |
| 39 'sources': [ |
| 40 'Technique.g3pl', |
| 41 ], |
| 42 'direct_dependent_settings': { |
| 43 'include_dirs': [ |
| 44 '<(technique_out_dir)', |
| 45 ], |
| 46 }, |
| 47 }, |
| 48 { |
| 49 'target_name': 'technique', |
| 50 'type': 'static_library', |
| 51 'dependencies': [ |
| 52 'parser_generator', |
| 53 '../../../<(antlrdir)/antlr.gyp:antlr3c', |
| 54 '../../../base/base.gyp:base', |
| 55 '../../core/core.gyp:o3dCore', |
| 56 ], |
| 57 'include_dirs': [ |
| 58 '<(technique_out_dir)', |
| 59 ], |
| 60 'sources': [ |
| 61 '<(technique_out_dir)/TechniqueLexer.c', |
| 62 '<(technique_out_dir)/TechniqueLexer.h', |
| 63 '<(technique_out_dir)/TechniqueParser.c', |
| 64 '<(technique_out_dir)/TechniqueParser.h', |
| 65 'technique_error.cc', |
| 66 'technique_error.h', |
| 67 'technique_parser.cc', |
| 68 'technique_parser.h', |
| 69 'technique_structures.cc', |
| 70 'technique_structures.h', |
| 71 ], |
| 72 'msvs_settings': { |
| 73 'VCCLCompilerTool': { |
| 74 'CompileAs': '2', |
| 75 }, |
| 76 }, |
| 77 'direct_dependent_settings': { |
| 78 'include_dirs': [ |
| 79 '<(technique_out_dir)', |
| 80 ], |
| 81 }, |
| 82 }, |
| 83 ], |
| 84 } |
OLD | NEW |