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