Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | |
| 7 'use_system_khronos%': 0, | |
| 8 }, | |
| 9 'conditions': [ | 6 'conditions': [ |
| 10 ['use_system_khronos==0', { | 7 ['use_system_mesa==0', { |
| 11 'targets': [ | 8 'targets': [ |
| 12 { | 9 { |
| 13 'target_name': 'khronos_headers', | 10 'target_name': 'khronos_headers', |
| 14 'type': 'none', | 11 'type': 'none', |
| 15 'all_dependent_settings': { | 12 'all_dependent_settings': { |
| 16 'include_dirs': [ | 13 'include_dirs': [ |
| 17 '.', | 14 '.', |
| 18 '../../gpu', # Contains GLES2/gl2chromium.h | 15 '../../gpu', # Contains GLES2/gl2chromium.h |
| 19 ], | 16 ], |
| 20 }, | 17 }, |
| 21 }, | 18 }, |
| 22 ], | 19 ], |
| 23 }, { # use_system_khronos==1 | 20 }, { # use_system_mesa==1 |
| 24 'targets': [ | 21 'targets': [ |
| 25 { | 22 { |
| 26 'target_name': 'khronos_headers', | 23 'target_name': 'khronos_headers', |
| 27 'type': 'none', | 24 'type': 'none', |
| 28 'variables': { | 25 'variables': { |
| 29 'headers_root_path': '../..', | 26 'headers_root_path': '../..', |
| 30 'header_filenames': [ | 27 'header_filenames': [ |
| 31 'GLES2/gl2.h;<GLES2/gl2chromium.h>;', | 28 'GLES2/gl2.h;<GLES2/gl2chromium.h>;', |
| 32 'GLES2/gl2ext.h;<GLES2/gl2chromium.h>;<GLES2/gl2extchromium.h>', | 29 'GLES2/gl2ext.h;<GLES2/gl2chromium.h>;<GLES2/gl2extchromium.h>', |
| 33 ], | 30 ], |
| 34 'shim_generator_additional_args': [ | 31 'shim_generator_additional_args': [ |
| 35 '--headers-root', '.', | 32 '--headers-root', '.', |
| 36 '--use-include-next', | 33 '--use-include-next', |
| 37 ], | 34 ], |
| 35 'khronos_headers_symlink_source%': '/usr/include', | |
| 36 'khronos_headers_symlink_target': '<(SHARED_INTERMEDIATE_DIR)/khrono s_symlinks', | |
| 38 }, | 37 }, |
| 39 'includes': [ | 38 'includes': [ |
| 40 '../../build/shim_headers.gypi', | 39 '../../build/shim_headers.gypi', |
| 41 ], | 40 ], |
| 42 'all_dependent_settings': { | 41 'all_dependent_settings': { |
| 43 'include_dirs': [ | 42 'include_dirs': [ |
| 43 '<(khronos_headers_symlink_target)', | |
| 44 '../../gpu', # Contains GLES2/gl2chromium.h | 44 '../../gpu', # Contains GLES2/gl2chromium.h |
| 45 ], | 45 ], |
| 46 }, | 46 }, |
| 47 'actions': [ | |
| 48 # Symlink system headers into include paths so that nacl | |
| 49 # untrusted build can use them. Adding system include paths | |
| 50 # to nacl untrusted build include path would break the build, | |
| 51 # so we only add needed parts. | |
| 52 { | |
| 53 'action_name': 'create_khronos_symlinks_gles2', | |
| 54 'inputs': [ | |
| 55 ], | |
| 56 'outputs': [ | |
| 57 '<(khronos_headers_symlink_target)/.dummy_gles2', | |
|
Mark Mentovai
2013/01/18 17:38:45
What’s your theory here? You just want to run this
Paweł Hajdan Jr.
2013/01/18 18:36:43
I can't have empty 'outputs', and the real output
| |
| 58 ], | |
| 59 'action': [ | |
| 60 'ln', '-s', | |
|
Mark Mentovai
2013/01/18 17:38:45
What happens when you run this command more than o
Paweł Hajdan Jr.
2013/01/18 18:36:43
That could be "solved" with 'ln -sf', but if there
| |
| 61 '<(khronos_headers_symlink_source)/GLES2', | |
| 62 '<(khronos_headers_symlink_target)', | |
| 63 ], | |
| 64 'message': 'Creating GLES2 headers symlinks.', | |
| 65 }, | |
| 66 { | |
| 67 'action_name': 'create_khronos_symlinks_khr', | |
| 68 'inputs': [ | |
| 69 ], | |
| 70 'outputs': [ | |
| 71 '<(khronos_headers_symlink_target)/.dummy_khr', | |
| 72 ], | |
| 73 'action': [ | |
| 74 'ln', '-s', | |
| 75 '<(khronos_headers_symlink_source)/KHR', | |
| 76 '<(khronos_headers_symlink_target)', | |
| 77 ], | |
| 78 'message': 'Creating KHR headers symlinks.', | |
| 79 }, | |
| 80 ], | |
| 47 }, | 81 }, |
| 48 ], | 82 ], |
| 49 }], | 83 }], |
| 50 ], | 84 ], |
| 51 } | 85 } |
| OLD | NEW |