summaryrefslogtreecommitdiffstats
path: root/o3d/compiler
diff options
context:
space:
mode:
authorgspencer@google.com <gspencer@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-24 01:46:45 +0000
committergspencer@google.com <gspencer@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-24 01:46:45 +0000
commit746cd5788d57799fee1e327867ab9d4e9a76d6af (patch)
treedba40e195700f6f841c9c945b8fd2519128328f7 /o3d/compiler
parent015c1e689f04a11f07401394da0bf13018218fe1 (diff)
downloadchromium_src-746cd5788d57799fee1e327867ab9d4e9a76d6af.zip
chromium_src-746cd5788d57799fee1e327867ab9d4e9a76d6af.tar.gz
chromium_src-746cd5788d57799fee1e327867ab9d4e9a76d6af.tar.bz2
This adds in the GYP files needed for our GYP build,
and modifies the DEPS file extensively to match. Review URL: http://codereview.chromium.org/131116 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19091 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/compiler')
-rw-r--r--o3d/compiler/technique/technique.gyp84
1 files changed, 84 insertions, 0 deletions
diff --git a/o3d/compiler/technique/technique.gyp b/o3d/compiler/technique/technique.gyp
new file mode 100644
index 0000000..3e222e3
--- /dev/null
+++ b/o3d/compiler/technique/technique.gyp
@@ -0,0 +1,84 @@
+# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'variables': {
+ 'chromium_code': 0,
+ 'technique_out_dir': '<(SHARED_INTERMEDIATE_DIR)/technique',
+ },
+ 'includes': [
+ '../../build/common.gypi',
+ ],
+ 'targets': [
+ {
+ 'target_name': 'parser_generator',
+ 'type': 'none',
+ 'rules': [
+ {
+ 'rule_name': 'technique_parser',
+ 'extension': 'g3pl',
+ 'inputs' : [
+ '../../../<(antlrdir)/lib/antlr-3.1.1.jar',
+ ],
+ 'outputs': [
+ '<(technique_out_dir)/<(RULE_INPUT_ROOT)Lexer.c',
+ '<(technique_out_dir)/<(RULE_INPUT_ROOT)Lexer.h',
+ '<(technique_out_dir)/<(RULE_INPUT_ROOT)Parser.c',
+ '<(technique_out_dir)/<(RULE_INPUT_ROOT)Parser.h',
+ ],
+ 'action': [
+ 'java',
+ '-cp', '../../../<(antlrdir)/lib/antlr-3.1.1.jar',
+ 'org.antlr.Tool',
+ '<(RULE_INPUT_PATH)',
+ '-fo', '<(technique_out_dir)',
+ ],
+ },
+ ],
+ 'sources': [
+ 'Technique.g3pl',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '<(technique_out_dir)',
+ ],
+ },
+ },
+ {
+ 'target_name': 'technique',
+ 'type': 'static_library',
+ 'dependencies': [
+ 'parser_generator',
+ '../../../<(antlrdir)/antlr.gyp:antlr3c',
+ '../../../base/base.gyp:base',
+ '../../core/core.gyp:o3dCore',
+ ],
+ 'include_dirs': [
+ '<(technique_out_dir)',
+ ],
+ 'sources': [
+ '<(technique_out_dir)/TechniqueLexer.c',
+ '<(technique_out_dir)/TechniqueLexer.h',
+ '<(technique_out_dir)/TechniqueParser.c',
+ '<(technique_out_dir)/TechniqueParser.h',
+ 'technique_error.cc',
+ 'technique_error.h',
+ 'technique_parser.cc',
+ 'technique_parser.h',
+ 'technique_structures.cc',
+ 'technique_structures.h',
+ ],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'CompileAs': '2',
+ },
+ },
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '<(technique_out_dir)',
+ ],
+ },
+ },
+ ],
+}