Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2011 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 | |
| 7 'includes': [ | |
| 8 '../../third_party/gles2_conform/gles2_conform.gypi', | |
|
piman
2013/12/04 23:20:06
How does this work with an external checkout?
Zhenyao Mo
2013/12/04 23:26:20
This is behind a variable: https://code.google.com
| |
| 9 ], | |
| 10 'target_defaults': { | |
| 11 'msvs_disabled_warnings': [4005, 4013, 4018, 4101, 4716], | |
| 12 'include_dirs': [ | |
| 13 '<(SHARED_INTERMEDIATE_DIR)/gles2_conform_test_embedded_data', | |
| 14 '../../third_party/gles2_conform/GTF_ES/glsl/GTF/Source', | |
| 15 ], | |
| 16 }, | |
| 17 'targets': [ | |
| 18 { | |
| 19 'target_name': 'gles2_conform_test_embedded_data', | |
| 20 'type': 'none', | |
| 21 'hard_dependency': 1, | |
| 22 'actions': [ | |
| 23 { | |
| 24 'action_name': 'generate_gles2_conform_embedded_files', | |
| 25 'variables': { | |
| 26 'generator_path': 'generate_gles2_embedded_data.py', | |
| 27 }, | |
| 28 'inputs': [ | |
| 29 '<(generator_path)', | |
| 30 '<!@(python <(generator_path) ../../third_party/gles2_conform/GTF_ES /glsl/GTF)', | |
| 31 ], | |
| 32 'outputs': [ | |
| 33 #'../../third_party/gles2_conform/GTF_ES/glsl/GTF/Source/FilesDATA.c ', | |
| 34 #'../../third_party/gles2_conform/GTF_ES/glsl/GTF/Source/FilesDATA.h ', | |
| 35 #'../../third_party/gles2_conform/GTF_ES/glsl/GTF/Source/FilesTOC.c' , | |
| 36 '<(SHARED_INTERMEDIATE_DIR)/gles2_conform_test_embedded_data/FilesDA TA.c', | |
| 37 '<(SHARED_INTERMEDIATE_DIR)/gles2_conform_test_embedded_data/FilesDA TA.h', | |
| 38 '<(SHARED_INTERMEDIATE_DIR)/gles2_conform_test_embedded_data/FilesTO C.c', | |
| 39 ], | |
| 40 'action': [ | |
| 41 'python', | |
| 42 '<(generator_path)', | |
| 43 '../../third_party/gles2_conform/GTF_ES/glsl/GTF', | |
| 44 '<(SHARED_INTERMEDIATE_DIR)/gles2_conform_test_embedded_data', | |
| 45 ], | |
| 46 }, | |
| 47 ], | |
| 48 }, | |
| 49 { | |
| 50 'target_name': 'gles2_conform_test_windowless', | |
| 51 'type': 'executable', | |
| 52 'dependencies': [ | |
| 53 'gles2_conform_test_embedded_data', | |
| 54 '<(DEPTH)/gpu/gles2_conform_support/gles2_conform_support.gyp:egl_native ', | |
| 55 '<(DEPTH)/gpu/gles2_conform_support/gles2_conform_support.gyp:egl_main_w indowless', | |
| 56 '<(DEPTH)/gpu/gpu.gyp:gles2_c_lib_nocheck', | |
| 57 '<(DEPTH)/third_party/expat/expat.gyp:expat', | |
| 58 ], | |
| 59 'conditions': [ | |
| 60 ['OS=="linux"', { | |
| 61 'dependencies': ['../../build/linux/system.gyp:gtk'], | |
| 62 }], | |
| 63 ['OS=="win"', { | |
| 64 'dependencies': [ | |
| 65 '<(DEPTH)/third_party/angle_dx11/src/build_angle.gyp:libGLESv2', | |
| 66 '<(DEPTH)/third_party/angle_dx11/src/build_angle.gyp:libEGL', | |
| 67 ], | |
| 68 'defines': [ | |
| 69 'EGLAPI=', | |
| 70 'EGLAPIENTRY=', | |
| 71 ], | |
| 72 'msvs_disabled_warnings': [ | |
| 73 4018, # signed/unsigned mismatch | |
| 74 4101, # unreferenced local variable | |
| 75 4715, # not all control paths return a value | |
| 76 ], | |
| 77 'msvs_settings': { | |
| 78 'VCCLCompilerTool': { | |
| 79 'AdditionalOptions': ['/UNOMINMAX'], | |
| 80 }, | |
| 81 }, | |
| 82 }], | |
| 83 ['OS=="mac"', { | |
| 84 'defines': [ | |
| 85 '_STDINT', | |
| 86 '_STDINT_H', | |
| 87 ], | |
| 88 'conditions': [ | |
| 89 [ 'clang==1', { | |
| 90 'cflags': [ | |
| 91 '-Wno-pointer-sign', | |
| 92 '-Wno-array-bounds', | |
| 93 '-Wno-sizeof-pointer-memaccess', | |
| 94 '-Wno-implicit-function-declaration', | |
| 95 '-Wno-logical-op-parentheses', | |
| 96 '-Wno-tautological-compare', | |
| 97 '-Wno-parentheses-equality', | |
| 98 '-Wno-return-type', | |
| 99 ], | |
| 100 'xcode_settings': { | |
| 101 'LD': 'clang++', | |
| 102 'WARNING_CFLAGS': [ | |
| 103 '-Wno-pointer-sign', | |
| 104 '-Wno-array-bounds', | |
| 105 '-Wno-sizeof-pointer-memaccess', | |
| 106 '-Wno-implicit-function-declaration', | |
| 107 '-Wno-logical-op-parentheses', | |
| 108 '-Wno-tautological-compare', | |
| 109 '-Wno-parentheses-equality', | |
| 110 '-Wno-return-type', | |
| 111 ], | |
| 112 }, | |
| 113 }], | |
| 114 ], | |
| 115 }], | |
| 116 ], | |
| 117 'defines': [ | |
| 118 'GTF_API=GTF_GLES20', | |
| 119 'HKEMBEDDEDFILESYSTEM', | |
| 120 ], | |
| 121 'sources': [ | |
| 122 '<@(gtf_es_sources)', | |
| 123 # Include a dummy c++ file to force linking of libstdc++. | |
| 124 '<(DEPTH)/gpu/gles2_conform_support/dummy.cc', | |
| 125 ], | |
| 126 'run_as': { | |
| 127 'conditions': [ | |
| 128 ['OS=="win"', { | |
| 129 'action': [ | |
| 130 '$(TargetPath)', | |
| 131 '-noimagefileio', | |
| 132 '-run=<(DEPTH)/third_party/gles2_conform/GTF_ES/glsl/GTF/mustpass. run', | |
| 133 ], | |
| 134 }], | |
| 135 ], | |
| 136 }, | |
| 137 }, | |
| 138 { | |
| 139 'target_name': 'gles2_conform_test', | |
| 140 'type': 'executable', | |
| 141 'dependencies': [ | |
| 142 'gles2_conform_test_windowless', | |
| 143 '<(DEPTH)/base/base.gyp:base', | |
| 144 '<(DEPTH)/gpu/gpu.gyp:gpu', | |
| 145 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 146 ], | |
| 147 'variables': { | |
| 148 'gles2_conform_test_output_dir': '<(SHARED_INTERMEDIATE_DIR)/gpu/gles2_c onform_test', | |
| 149 }, | |
| 150 'sources': [ | |
| 151 'gles2_conform_test.cc', | |
| 152 '<(gles2_conform_test_output_dir)/gles2_conform_test_autogen.cc', | |
| 153 ], | |
| 154 'actions': [ | |
| 155 { | |
| 156 'action_name': 'generate_gles2_conform_tests', | |
| 157 'inputs': [ | |
| 158 'generate_gles2_conform_tests.py', | |
| 159 'gles2_conform_test.h', | |
| 160 '<(DEPTH)/third_party/gles2_conform/GTF_ES/glsl/GTF/mustpass_es20.ru n', | |
| 161 ], | |
| 162 'outputs': [ | |
| 163 '<(gles2_conform_test_output_dir)/gles2_conform_test_autogen.cc', | |
| 164 ], | |
| 165 'action': [ | |
| 166 'python', | |
| 167 'generate_gles2_conform_tests.py', | |
| 168 '<(gles2_conform_test_output_dir)', | |
| 169 ], | |
| 170 }, | |
| 171 ], | |
| 172 }, | |
| 173 # TODO(alokp): Add gles2_conform_test_pepper target | |
| 174 ], | |
| 175 'conditions': [ | |
| 176 ['OS=="win"', { | |
| 177 'targets': [ | |
| 178 { | |
| 179 'target_name': 'gles2_conform_test_angle', | |
| 180 'type': 'executable', | |
| 181 'dependencies': [ | |
| 182 'gles2_conform_test_embedded_data', | |
| 183 '<(DEPTH)/base/base.gyp:base', | |
| 184 '<(DEPTH)/third_party/expat/expat.gyp:expat', | |
| 185 '<(DEPTH)/third_party/angle_dx11/src/build_angle.gyp:libGLESv2', | |
| 186 '<(DEPTH)/third_party/angle_dx11/src/build_angle.gyp:libEGL', | |
| 187 '<(DEPTH)/gpu/gles2_conform_support/gles2_conform_support.gyp:egl_ma in_native', | |
| 188 ], | |
| 189 'defines': [ | |
| 190 'GTF_API=GTF_GLES20', | |
| 191 ], | |
| 192 'include_dirs': [ | |
| 193 '<(DEPTH)/third_party/angle_dx11/include', | |
| 194 ], | |
| 195 'sources': [ | |
| 196 '<@(gtf_es_sources)', | |
| 197 ], | |
| 198 }, | |
| 199 ], | |
| 200 }], | |
| 201 | |
| 202 ['chromeos==1', { | |
| 203 'targets': [ | |
| 204 { | |
| 205 'target_name': 'gles2_conform_test_chromeos', | |
| 206 'type': 'executable', | |
| 207 'dependencies': [ | |
| 208 'gles2_conform_test_embedded_data', | |
| 209 '<(DEPTH)/base/base.gyp:*', | |
| 210 '<(DEPTH)/third_party/expat/expat.gyp:expat', | |
| 211 '../../build/linux/system.gyp:gtk', | |
| 212 '<(DEPTH)/gpu/gles2_conform_support/gles2_conform_support.gyp:egl_ma in_native', | |
| 213 ], | |
| 214 'libraries': [ | |
| 215 '-lEGL', | |
| 216 '-lGLESv2', | |
| 217 ], | |
| 218 'defines': [ | |
| 219 'GTF_API=GTF_GLES20', | |
| 220 'CHROMEOS_GLES2_CONFORMANCE', | |
| 221 ], | |
| 222 'sources': [ | |
| 223 '<@(gtf_es_sources)', | |
| 224 ], | |
| 225 }, | |
| 226 ], | |
| 227 }], | |
| 228 ], | |
| 229 } | |
| 230 | |
| 231 | |
| 232 # Local Variables: | |
| 233 # tab-width:2 | |
| 234 # indent-tabs-mode:nil | |
| 235 # End: | |
| 236 # vim: set expandtab tabstop=2 shiftwidth=2: | |
| OLD | NEW |