OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2016 Google Inc. 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 'shader_sources': [ |
| 8 'tex_coord_to_view.vert', |
| 9 'draw_tex.frag', |
| 10 ], |
| 11 'shader_output': |
| 12 '<(INTERMEDIATE_DIR)/remoting/client/opengl/shaders.h', |
| 13 'opengl_renderer_sources': [ |
| 14 'gl_canvas.cc', |
| 15 'gl_canvas.h', |
| 16 'gl_desktop.cc', |
| 17 'gl_desktop.h', |
| 18 'gl_helpers.cc', |
| 19 'gl_helpers.h', |
| 20 'gl_render_layer.cc', |
| 21 'gl_render_layer.h' |
| 22 ] |
| 23 }, |
| 24 'targets': [ |
| 25 { |
| 26 'target_name': 'inline_shaders', |
| 27 'type': 'none', |
| 28 'actions': [{ |
| 29 'action_name': 'generate_inline_shaders', |
| 30 'inputs': [ |
| 31 '<@(shader_sources)', |
| 32 ], |
| 33 'outputs': [ |
| 34 '<(shader_output)' |
| 35 ], |
| 36 'action': [ |
| 37 '../../tools/build/shader_to_header.py', |
| 38 '<(shader_output)', |
| 39 '<@(shader_sources)' |
| 40 ] |
| 41 }] |
| 42 }, |
| 43 { |
| 44 'target_name': 'opengl_renderer', |
| 45 'type': '<(component)', |
| 46 'sources': [ |
| 47 '<@(opengl_renderer_sources)', |
| 48 ], |
| 49 'dependencies': [ |
| 50 'inline_shaders' |
| 51 ] |
| 52 } |
| 53 ] |
| 54 } |
OLD | NEW |