diff options
author | gavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-08 20:19:25 +0000 |
---|---|---|
committer | gavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-08 20:19:25 +0000 |
commit | 35e9ba80f1f3bbbf8c1fd14fed674e5470f7f636 (patch) | |
tree | 769ce0189845a890bf5024e22b26fa582f095f08 | |
parent | a771dc3feb97ae20170cf5617ba48d6340549698 (diff) | |
download | chromium_src-35e9ba80f1f3bbbf8c1fd14fed674e5470f7f636.zip chromium_src-35e9ba80f1f3bbbf8c1fd14fed674e5470f7f636.tar.gz chromium_src-35e9ba80f1f3bbbf8c1fd14fed674e5470f7f636.tar.bz2 |
Revert 73222 - Make target running GLES2 autogen script.
Also lays groundwork for rebuilding Pepper OpenGL ES bindings as part of the build.
BUG=none
TEST=run "make ppapi_gles_bindings" or "make ppapi_gles_implementation".
Review URL: http://codereview.chromium.org/5212006
TBR=neb@chromium.org
This change was causing just building to create merge conflicts in
clean repos. Either these targets shouldn't be part of standard build
targets like "chrome" or "unit_tests", or we shouldn't have build targets
which generate output into the working tree...
Review URL: http://codereview.chromium.org/6461001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74161 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-x | gpu/command_buffer/build_gles2_cmd_buffer.py | 19 | ||||
-rw-r--r-- | ppapi/ppapi_gl.gypi | 25 | ||||
-rw-r--r-- | webkit/glue/webkit_glue.gypi | 29 |
3 files changed, 2 insertions, 71 deletions
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py index 3f53bdf..fc82a1a 100755 --- a/gpu/command_buffer/build_gles2_cmd_buffer.py +++ b/gpu/command_buffer/build_gles2_cmd_buffer.py @@ -5483,33 +5483,19 @@ def main(argv): "\"chrome_ppapi_proxy\" will generate the glue for the chrome IPC ppapi" "proxy.") parser.add_option( - "--output-dir", - help="base directory for resulting files, under chrome/src. default is " - "empty. Use this if you want the result stored under gen.") - parser.add_option( "-v", "--verbose", action="store_true", help="prints more output.") (options, args) = parser.parse_args(args=argv) - # This script lives under gpu/command_buffer, cd to base directory. - os.chdir(os.path.dirname(__file__) + "/../..") - gen = GLGenerator(options.verbose) gen.ParseGLH("common/GLES2/gl2.h") - # Support generating files under gen/ - if options.output_dir != None: - os.chdir(options.output_dir) - if options.alternate_mode == "ppapi": - # To trigger this action, do "make ppapi_gles_bindings" - os.chdir("ppapi"); - gen.WritePepperGLES2Interface("c/dev/ppb_opengles_dev.h") - gen.WriteGLES2ToPPAPIBridge("lib/gl/gles2/gles2.c") + gen.WritePepperGLES2Interface("ppapi/c/dev/ppb_opengles_dev.h") + gen.WriteGLES2ToPPAPIBridge("ppapi/lib/gl/gles2/gles2.c") elif options.alternate_mode == "chrome_ppapi": - # To trigger this action, do "make ppapi_gles_implementation" gen.WritePepperGLES2Implementation( "webkit/plugins/ppapi/ppb_opengles_impl.cc") @@ -5518,7 +5504,6 @@ def main(argv): "ppapi/proxy/ppb_opengles2_proxy.cc") else: - os.chdir("gpu/command_buffer") gen.WriteCommandIds("common/gles2_cmd_ids_autogen.h") gen.WriteFormat("common/gles2_cmd_format_autogen.h") gen.WriteFormatTest("common/gles2_cmd_format_test_autogen.h") diff --git a/ppapi/ppapi_gl.gypi b/ppapi/ppapi_gl.gypi index 4f2b16c..7af9694 100644 --- a/ppapi/ppapi_gl.gypi +++ b/ppapi/ppapi_gl.gypi @@ -62,30 +62,5 @@ 'lib/gl/gles2/gles2.c', ], }, - { - 'target_name': 'ppapi_gles_bindings', - 'type': 'none', - 'suppress_wildcard': 1, - 'actions': [ - { - 'action_name': 'generate_ppapi_gles_bindings', - 'variables': { - 'gles_script': '<(DEPTH)/gpu/command_buffer/build_gles2_cmd_buffer.py', - }, - 'inputs': [ - '<(gles_script)', - ], - 'outputs': [ - 'c/dev/ppb_opengles_dev.h', - 'lib/gl/gles2/gles2.c', - ], - 'action': [ - 'python', - '<(gles_script)', - '--alternate-mode=ppapi' - ], - 'message': 'Generating Pepper OpenGL ES bindings', - }], - }, ], } diff --git a/webkit/glue/webkit_glue.gypi b/webkit/glue/webkit_glue.gypi index 2f04e5f..8e8d26e 100644 --- a/webkit/glue/webkit_glue.gypi +++ b/webkit/glue/webkit_glue.gypi @@ -153,35 +153,6 @@ ], }, { - 'target_name': 'ppapi_gles_implementation', - 'type': 'none', - 'suppress_wildcard': 1, - 'conditions': [ - ['enable_gpu==1', { - 'actions': [ - { - 'action_name': 'generate_ppapi_gles_implementation', - 'variables': { - 'gles_script': '<(DEPTH)/gpu/command_buffer/build_gles2_cmd_buffer.py', - }, - 'inputs': [ - '<(gles_script)', - ], - 'outputs': [ - '<(DEPTH)/webkit/plugins/ppapi/ppb_opengles_impl.cc', - ], - 'action': [ - 'python', - '<(gles_script)', - '--alternate-mode=chrome_ppapi' - ], - 'message': 'Generating Pepper OpenGL ES implementation', - } - ], - }], - ], - }, - { 'target_name': 'glue', 'type': '<(library)', 'msvs_guid': 'C66B126D-0ECE-4CA2-B6DC-FA780AFBBF09', |