Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 | 6 |
| 7 declare_args() { | 7 declare_args() { |
| 8 # TODO(GYP) - make this work. crbug.com/471903 | |
| 9 internal_khronos_glcts_tests = false | 8 internal_khronos_glcts_tests = false |
| 10 } | 9 } |
| 11 | 10 |
| 11 if (internal_khronos_glcts_tests) { | |
| 12 khronos_glcts_gypi = | |
| 13 exec_script("//build/gypi_to_gn.py", | |
| 14 [ | |
| 15 rebase_path("khronos_glcts.gypi"), | |
| 16 "--replace=<(DEPTH)=../..", | |
| 17 "--replace=<(SHARED_INTERMEDIATE_DIR)=$target_gen_dir", | |
| 18 ], | |
| 19 "scope", | |
| 20 [ "khronos_glcts.gypi" ]) | |
| 21 | |
| 22 # GYP version: gpu/khronos_glcts_support/khronos_glcts_test.gyp:khronos_glcts_ test_windowless | |
| 23 copy("glcts_resources") { | |
| 24 sources = khronos_glcts_gypi.glcts_data_dirs | |
| 25 outputs = [ | |
| 26 "$root_out_dir/khronos_glcts_data/gl_cts/{{source_file_part}}", | |
| 27 ] | |
| 28 } | |
| 29 | |
| 30 # GYP version: gpu/khronos_glcts_support/khronos_glcts_test.gyp:khronos_glcts_ test_windowless | |
| 31 copy("glcts_gtf_resources") { | |
| 32 sources = khronos_glcts_gypi.glcts_gtf_data_dirs + | |
| 33 khronos_glcts_gypi.glcts_gtf_runfiles | |
| 34 outputs = [ | |
| 35 "$root_out_dir/khronos_glcts_data/gl_cts/GTF/{{source_file_part}}", | |
| 36 ] | |
| 37 } | |
| 38 | |
| 39 # GYP version: gpu/khronos_glcts_support/khronos_glcts_test.gyp:khronos_glcts_ test | |
| 40 action("generate_khronos_glcts_tests") { | |
| 41 script = "generate_khronos_glcts_tests.py" | |
| 42 sources = [ "khronos_glcts_test.h" ] + khronos_glcts_gypi.glcts_gtf_runfiles | |
| 43 outputs = [ | |
| 44 "$target_gen_dir/khronos_glcts_test_autogen.cc", | |
| 45 ] | |
| 46 args = [ "--outdir=" + rebase_path("$target_gen_dir") ] + | |
| 47 khronos_glcts_gypi.glcts_gtf_runfiles | |
| 48 } | |
| 49 | |
| 50 # GYP version: gpu/khronos_glcts_support/khronos_glcts_defaults.gypi:target_de faults | |
| 51 config("defaults_config") { | |
| 52 defines = [ | |
| 53 "DEQP_TARGET_NAME=\"chrome-gpu-command-buffer\"", | |
| 54 "DEQP_SUPPORT_GLES2=1", | |
| 55 "DEQP_SUPPORT_EGL=1", | |
| 56 "GTF_API=GTF_GLES20", | |
| 57 ] | |
| 58 | |
| 59 if (is_linux) { | |
| 60 defines += [ "_XOPEN_SOURCE=500" ] | |
| 61 } | |
| 62 } | |
| 63 | |
| 64 # GYP version: gpu/khronos_glcts_support/khronos_glcts_framework.gyp:debase | |
| 65 config("debase_config") { | |
| 66 include_dirs = [ "//third_party/khronos_glcts/framework/delibs/debase" ] | |
| 67 } | |
| 68 source_set("debase") { | |
| 69 sources = khronos_glcts_gypi.debase_srcs | |
| 70 | |
| 71 configs += [ ":defaults_config" ] | |
| 72 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 73 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 74 configs -= [ "//build/config/compiler:no_rtti" ] | |
| 75 configs += [ "//build/config/compiler:rtti" ] | |
|
Ken Russell (switch to Gerrit)
2015/10/29 00:35:30
There's a fair amount of duplication of these conf
U. Artie Eoff
2015/10/29 00:46:43
I tried to find a way to do this, but GN doesn't s
| |
| 76 | |
| 77 public_configs = [ ":debase_config" ] | |
| 78 | |
| 79 if (is_linux) { | |
| 80 cflags_c = [ "-Wno-implicit-function-declaration" ] | |
| 81 } | |
| 82 } | |
| 83 | |
| 84 # GYP version: gpu/khronos_glcts_support/khronos_glcts_framework.gyp:depool | |
| 85 config("depool_config") { | |
| 86 include_dirs = [ "//third_party/khronos_glcts/framework/delibs/depool" ] | |
| 87 } | |
| 88 source_set("depool") { | |
| 89 sources = khronos_glcts_gypi.depool_srcs | |
| 90 | |
| 91 deps = [ | |
| 92 ":debase", | |
| 93 ] | |
| 94 | |
| 95 configs += [ ":defaults_config" ] | |
| 96 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 97 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 98 configs -= [ "//build/config/compiler:no_rtti" ] | |
| 99 configs += [ "//build/config/compiler:rtti" ] | |
| 100 | |
| 101 public_configs = [ ":depool_config" ] | |
| 102 } | |
| 103 | |
| 104 # GYP version: gpu/khronos_glcts_support/khronos_glcts_framework.gyp:dethread | |
| 105 config("dethread_config") { | |
| 106 include_dirs = [ "//third_party/khronos_glcts/framework/delibs/dethread" ] | |
| 107 } | |
| 108 source_set("dethread") { | |
| 109 sources = khronos_glcts_gypi.dethread_srcs | |
| 110 | |
| 111 deps = [ | |
| 112 ":debase", | |
| 113 ] | |
| 114 | |
| 115 configs += [ ":defaults_config" ] | |
| 116 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 117 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 118 configs -= [ "//build/config/compiler:no_rtti" ] | |
| 119 configs += [ "//build/config/compiler:rtti" ] | |
| 120 | |
| 121 public_configs = [ ":dethread_config" ] | |
| 122 | |
| 123 if (is_linux) { | |
| 124 sources += khronos_glcts_gypi.dethread_unix_srcs | |
| 125 } | |
| 126 } | |
| 127 | |
| 128 # GYP version: gpu/khronos_glcts_support/khronos_glcts_framework.gyp:deutil | |
| 129 config("deutil_config") { | |
| 130 include_dirs = [ "//third_party/khronos_glcts/framework/delibs/deutil" ] | |
| 131 } | |
| 132 source_set("deutil") { | |
| 133 sources = khronos_glcts_gypi.deutil_srcs | |
| 134 | |
| 135 deps = [ | |
| 136 ":debase", | |
| 137 ":depool", | |
| 138 ":dethread", | |
| 139 ] | |
| 140 | |
| 141 libs = [ "rt" ] | |
| 142 | |
| 143 configs += [ ":defaults_config" ] | |
| 144 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 145 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 146 configs -= [ "//build/config/compiler:no_rtti" ] | |
| 147 configs += [ "//build/config/compiler:rtti" ] | |
| 148 | |
| 149 public_configs = [ ":deutil_config" ] | |
| 150 | |
| 151 if (is_linux) { | |
| 152 cflags_c = [ "-Wno-string-conversion" ] | |
| 153 } | |
| 154 } | |
| 155 | |
| 156 # GYP version: gpu/khronos_glcts_support/khronos_glcts_framework.gyp:decpp | |
| 157 config("decpp_config") { | |
| 158 include_dirs = [ "//third_party/khronos_glcts/framework/delibs/decpp" ] | |
| 159 } | |
| 160 source_set("decpp") { | |
| 161 sources = khronos_glcts_gypi.decpp_srcs | |
| 162 | |
| 163 deps = [ | |
| 164 ":debase", | |
| 165 ":depool", | |
| 166 ":dethread", | |
| 167 ":deutil", | |
| 168 ] | |
| 169 | |
| 170 configs += [ ":defaults_config" ] | |
| 171 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 172 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 173 configs -= [ "//build/config/compiler:no_rtti" ] | |
| 174 configs += [ "//build/config/compiler:rtti" ] | |
| 175 | |
| 176 public_configs = [ ":decpp_config" ] | |
| 177 | |
| 178 if (is_linux) { | |
| 179 configs -= [ "//build/config/gcc:no_exceptions" ] | |
| 180 } | |
| 181 } | |
| 182 | |
| 183 # GYP version: gpu/khronos_glcts_support/khronos_glcts_framework.gyp:delibs | |
| 184 group("delibs") { | |
| 185 public_deps = [ | |
| 186 ":debase", | |
| 187 ":decpp", | |
| 188 ":depool", | |
| 189 ":dethread", | |
| 190 ":deutil", | |
| 191 ] | |
| 192 } | |
| 193 | |
| 194 # GYP version: gpu/khronos_glcts_support/khronos_glcts_framework.gyp:qphelper | |
| 195 config("qphelper_config") { | |
| 196 include_dirs = [ "//third_party/khronos_glcts/framework/qphelper" ] | |
| 197 } | |
| 198 source_set("qphelper") { | |
| 199 sources = khronos_glcts_gypi.qphelper_srcs | |
| 200 | |
| 201 defines = [ "QP_SUPPORT_PNG" ] | |
| 202 | |
| 203 deps = [ | |
| 204 ":delibs", | |
| 205 "//third_party/libpng:libpng", | |
| 206 ] | |
| 207 | |
| 208 configs += [ ":defaults_config" ] | |
| 209 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 210 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 211 configs -= [ "//build/config/compiler:no_rtti" ] | |
| 212 configs += [ "//build/config/compiler:rtti" ] | |
| 213 | |
| 214 public_configs = [ ":qphelper_config" ] | |
| 215 | |
| 216 if (is_linux) { | |
| 217 cflags_c = [ "-Wno-string-conversion" ] | |
| 218 } | |
| 219 } | |
| 220 | |
| 221 # GYP version: gpu/khronos_glcts_support/khronos_glcts_framework.gyp:tcutil | |
| 222 config("tcutil_config") { | |
| 223 include_dirs = [ "//third_party/khronos_glcts/framework/common" ] | |
| 224 } | |
| 225 source_set("tcutil") { | |
| 226 sources = khronos_glcts_gypi.tcutil_srcs | |
| 227 | |
| 228 deps = [ | |
| 229 ":delibs", | |
| 230 "//third_party/libpng:libpng", | |
| 231 ] | |
| 232 | |
| 233 public_deps = [ | |
| 234 ":qphelper", | |
| 235 ] | |
| 236 | |
| 237 include_dirs = [ "//third_party/khronos_glcts/framework/delibs/libpng" ] #p ng.hpp | |
| 238 | |
| 239 configs += [ ":defaults_config" ] | |
| 240 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 241 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 242 configs -= [ "//build/config/compiler:no_rtti" ] | |
| 243 configs += [ "//build/config/compiler:rtti" ] | |
| 244 | |
| 245 public_configs = [ ":tcutil_config" ] | |
| 246 | |
| 247 if (is_linux) { | |
| 248 configs -= [ "//build/config/gcc:no_exceptions" ] | |
| 249 cflags_cc = [ "-Wno-int-to-pointer-cast" ] | |
| 250 } | |
| 251 } | |
| 252 | |
| 253 # GYP version: gpu/khronos_glcts_support/khronos_glcts_framework.gyp:glwrapper | |
| 254 config("glwrapper_config") { | |
| 255 include_dirs = [ "//third_party/khronos_glcts/framework/opengl/wrapper" ] | |
| 256 } | |
| 257 source_set("glwrapper") { | |
| 258 sources = khronos_glcts_gypi.glwrapper_srcs | |
| 259 | |
| 260 deps = [ | |
| 261 ":delibs", | |
| 262 "//gpu/command_buffer/client:gles2_c_lib_nocheck", | |
| 263 ] | |
| 264 | |
| 265 configs += [ ":defaults_config" ] | |
| 266 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 267 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 268 configs -= [ "//build/config/compiler:no_rtti" ] | |
| 269 configs += [ "//build/config/compiler:rtti" ] | |
| 270 | |
| 271 public_configs = [ ":glwrapper_config" ] | |
| 272 | |
| 273 if (is_linux) { | |
| 274 configs -= [ "//build/config/gcc:no_exceptions" ] | |
| 275 } | |
| 276 } | |
| 277 | |
| 278 # GYP version: gpu/khronos_glcts_support/khronos_glcts_framework.gyp:glutil | |
| 279 config("glutil_config") { | |
| 280 include_dirs = [ "//third_party/khronos_glcts/framework/opengl" ] | |
| 281 } | |
| 282 source_set("glutil") { | |
| 283 sources = khronos_glcts_gypi.glutil_srcs | |
| 284 | |
| 285 public_deps = [ | |
| 286 ":glwrapper", | |
| 287 ] | |
| 288 | |
| 289 deps = [ | |
| 290 ":delibs", | |
| 291 ":tcutil", | |
| 292 ] | |
| 293 | |
| 294 configs += [ ":defaults_config" ] | |
| 295 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 296 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 297 configs -= [ "//build/config/compiler:no_rtti" ] | |
| 298 configs += [ "//build/config/compiler:rtti" ] | |
| 299 | |
| 300 public_configs = [ ":glutil_config" ] | |
| 301 | |
| 302 if (is_linux) { | |
| 303 configs -= [ "//build/config/gcc:no_exceptions" ] | |
| 304 } | |
| 305 } | |
| 306 | |
| 307 # GYP version: gpu/khronos_glcts_support/khronos_glcts_framework.gyp:tcutil_eg l | |
| 308 config("tcutil_egl_config") { | |
| 309 include_dirs = [ "//third_party/khronos_glcts/framework/egl" ] | |
| 310 } | |
| 311 source_set("tcutil_egl") { | |
| 312 sources = khronos_glcts_gypi.tcutil_egl_srcs | |
| 313 | |
| 314 deps = [ | |
| 315 ":delibs", | |
| 316 ":glwrapper", | |
| 317 ":tcutil", | |
| 318 "//gpu/gles2_conform_support/egl", | |
| 319 ] | |
| 320 | |
| 321 include_dirs = [ "//third_party/khronos_glcts/framework/opengl" ] | |
| 322 | |
| 323 configs += [ ":defaults_config" ] | |
| 324 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 325 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 326 configs -= [ "//build/config/compiler:no_rtti" ] | |
| 327 configs += [ "//build/config/compiler:rtti" ] | |
| 328 | |
| 329 public_configs = [ | |
| 330 ":tcutil_egl_config", | |
| 331 "//third_party/khronos:khronos_headers", | |
| 332 ] | |
| 333 | |
| 334 if (is_linux) { | |
| 335 configs -= [ "//build/config/gcc:no_exceptions" ] | |
| 336 cflags_cc = [ "-Wno-int-to-void-pointer-cast" ] | |
| 337 } | |
| 338 } | |
| 339 | |
| 340 # GYP version: gpu/khronos_glcts_support/khronos_glcts_framework.gyp:khronos_g lcts_framework | |
| 341 group("khronos_glcts_framework") { | |
| 342 public_deps = [ | |
| 343 ":delibs", | |
| 344 ":glutil", | |
| 345 ":qphelper", | |
| 346 ":tcutil", | |
| 347 ":tcutil_egl", | |
| 348 ] | |
| 349 } | |
| 350 | |
| 351 # GYP version: gpu/khronos_glcts_support/khronos_glcts_cts.gyp:glcts_common | |
| 352 config("glcts_common_config") { | |
| 353 include_dirs = [ "//third_party/khronos_glcts/cts/common" ] | |
| 354 } | |
| 355 source_set("glcts_common") { | |
| 356 sources = khronos_glcts_gypi.glcts_common_sources | |
| 357 | |
| 358 deps = [ | |
| 359 ":delibs", | |
| 360 ":glutil", | |
| 361 ":tcutil", | |
| 362 ":tcutil_egl", | |
| 363 ] | |
| 364 | |
| 365 configs += [ ":defaults_config" ] | |
| 366 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 367 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 368 configs -= [ "//build/config/compiler:no_rtti" ] | |
| 369 configs += [ "//build/config/compiler:rtti" ] | |
| 370 | |
| 371 public_configs = [ ":glcts_common_config" ] | |
| 372 | |
| 373 if (is_linux) { | |
| 374 configs -= [ "//build/config/gcc:no_exceptions" ] | |
| 375 cflags_cc = [ "-Wno-string-conversion" ] | |
| 376 } | |
| 377 } | |
| 378 | |
| 379 # GYP version: gpu/khronos_glcts_support/khronos_glcts_cts.gyp:glcts_gtf_wrapp er | |
| 380 config("glcts_gtf_wrapper_config") { | |
| 381 include_dirs = [ "//third_party/khronos_glcts/cts/gtf" ] | |
| 382 } | |
| 383 source_set("glcts_gtf_wrapper") { | |
| 384 sources = khronos_glcts_gypi.glcts_gtf_wrapper_srcs | |
| 385 | |
| 386 deps = [ | |
| 387 ":delibs", | |
| 388 ":glcts_common", | |
| 389 ":glutil", | |
| 390 ":tcutil", | |
| 391 ":tcutil_egl", | |
| 392 ] | |
| 393 | |
| 394 include_dirs = [ "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source" ] | |
| 395 | |
| 396 configs += [ ":defaults_config" ] | |
| 397 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 398 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 399 configs -= [ "//build/config/compiler:no_rtti" ] | |
| 400 configs += [ "//build/config/compiler:rtti" ] | |
| 401 | |
| 402 public_configs = [ ":glcts_gtf_wrapper_config" ] | |
| 403 | |
| 404 if (is_linux) { | |
| 405 configs -= [ "//build/config/gcc:no_exceptions" ] | |
| 406 } | |
| 407 } | |
| 408 | |
| 409 # GYP version: gpu/khronos_glcts_support/khronos_glcts_gtf.gyp:gtf_es | |
| 410 config("gtf_es_config") { | |
| 411 include_dirs = [ "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source" ] | |
| 412 } | |
| 413 source_set("gtf_es") { | |
| 414 sources = | |
| 415 khronos_glcts_gypi.gtf_core_srcs + khronos_glcts_gypi.gtf_gl_core_srcs + | |
| 416 khronos_glcts_gypi.gtf_gles2_srcs + | |
| 417 khronos_glcts_gypi.gtf_gles2_es_only_srcs | |
| 418 | |
| 419 deps = [ | |
| 420 ":debase", | |
| 421 ":glcts_gtf_wrapper", | |
| 422 "//third_party/expat", | |
| 423 ] | |
| 424 | |
| 425 configs += [ ":defaults_config" ] | |
| 426 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 427 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 428 configs -= [ "//build/config/compiler:no_rtti" ] | |
| 429 configs += [ "//build/config/compiler:rtti" ] | |
| 430 | |
| 431 public_configs = [ ":gtf_es_config" ] | |
| 432 | |
| 433 if (is_linux) { | |
| 434 cflags_c = [ | |
| 435 "-Wno-pointer-sign", | |
| 436 "-Wno-incompatible-pointer-types", | |
| 437 "-Wno-return-type", | |
| 438 "-Wno-parentheses-equality", | |
| 439 "-Wno-tautological-compare", | |
| 440 ] | |
| 441 } | |
| 442 } | |
| 443 | |
| 444 # GYP version: gpu/khronos_glcts_support/khronos_glcts_cts.gyp:glcts_gtf | |
| 445 config("glcts_gtf_config") { | |
| 446 include_dirs = [ "//third_party/khronos_glcts/cts/gtf" ] | |
| 447 } | |
| 448 source_set("glcts_gtf") { | |
| 449 sources = khronos_glcts_gypi.glcts_gtf_srcs | |
| 450 | |
| 451 deps = [ | |
| 452 ":delibs", | |
| 453 ":glcts_common", | |
| 454 ":glcts_gtf_wrapper", | |
| 455 ":glutil", | |
| 456 ":gtf_es", | |
| 457 ":tcutil", | |
| 458 ] | |
| 459 | |
| 460 configs += [ ":defaults_config" ] | |
| 461 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 462 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 463 configs -= [ "//build/config/compiler:no_rtti" ] | |
| 464 configs += [ "//build/config/compiler:rtti" ] | |
| 465 | |
| 466 public_configs = [ ":glcts_gtf_config" ] | |
| 467 | |
| 468 if (is_linux) { | |
| 469 configs -= [ "//build/config/gcc:no_exceptions" ] | |
| 470 } | |
| 471 } | |
| 472 | |
| 473 # GYP version: gpu/khronos_glcts_support/khronos_glcts_cts.gyp:glcts_es2 | |
| 474 config("glcts_es2_config") { | |
| 475 include_dirs = [ "//third_party/khronos_glcts/cts/gles2" ] | |
| 476 } | |
| 477 source_set("glcts_es2") { | |
| 478 sources = khronos_glcts_gypi.glcts_es2_srcs | |
| 479 | |
| 480 public_deps = [ | |
| 481 ":glcts_common", | |
| 482 ] | |
| 483 | |
| 484 deps = [ | |
| 485 ":delibs", | |
| 486 ":glcts_gtf", | |
| 487 ":glutil", | |
| 488 ":tcutil", | |
| 489 ] | |
| 490 | |
| 491 configs += [ ":defaults_config" ] | |
| 492 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 493 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 494 configs -= [ "//build/config/compiler:no_rtti" ] | |
| 495 configs += [ "//build/config/compiler:rtti" ] | |
| 496 | |
| 497 public_configs = [ ":glcts_es2_config" ] | |
| 498 | |
| 499 if (is_linux) { | |
| 500 configs -= [ "//build/config/gcc:no_exceptions" ] | |
| 501 } | |
| 502 } | |
| 503 | |
| 504 # GYP version: gpu/khronos_glcts_support/khronos_glcts_test.gyp:tcutil_platfor m_windowless | |
| 505 source_set("tcutil_platform_windowless") { | |
| 506 sources = [ | |
| 507 "native/egl_native_windowless.cc", | |
| 508 ] | |
| 509 | |
| 510 deps = [ | |
| 511 ":khronos_glcts_framework", | |
| 512 ] | |
| 513 | |
| 514 configs -= [ "//build/config/compiler:no_rtti" ] | |
| 515 configs += [ "//build/config/compiler:rtti" ] | |
| 516 } | |
| 517 | |
| 518 # GYP version: gpu/khronos_glcts_support/khronos_glcts_test.gyp:khronos_glcts_ test_windowless | |
| 519 executable("khronos_glcts_test_windowless") { | |
| 520 sources = [ | |
| 521 "//third_party/khronos_glcts/cts/glcTestPackageEntry.cpp", | |
| 522 "//third_party/khronos_glcts/cts/glcTestPackageRegistry.cpp", | |
| 523 "//third_party/khronos_glcts/cts/glcTestPackageRegistry.hpp", | |
| 524 "native/main.cc", | |
| 525 ] | |
| 526 | |
| 527 deps = [ | |
| 528 ":glcts_es2", | |
| 529 ":glcts_gtf_resources", | |
| 530 ":glcts_resources", | |
| 531 ":khronos_glcts_framework", | |
| 532 ":tcutil_platform_windowless", | |
| 533 ] | |
| 534 | |
| 535 configs += [ ":defaults_config" ] | |
| 536 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 537 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 538 | |
| 539 if (is_linux) { | |
| 540 configs -= [ "//build/config/gcc:no_exceptions" ] | |
| 541 } | |
| 542 } | |
| 543 } | |
| 544 | |
| 545 # GYP version: gpu/khronos_glcts_support/khronos_glcts_test.gyp:khronos_glcts_te st | |
| 12 test("khronos_glcts_test") { | 546 test("khronos_glcts_test") { |
| 13 sources = [ | 547 sources = [ |
| 14 "khronos_glcts_test.cc", | 548 "khronos_glcts_test.cc", |
| 15 ] | 549 ] |
| 16 | 550 |
| 17 deps = [ | 551 deps = [ |
| 18 "//base", | 552 "//base", |
| 19 "//gpu", | 553 "//gpu", |
| 20 "//testing/gtest", | 554 "//testing/gtest", |
| 21 ] | 555 ] |
| 22 | 556 |
| 23 # TODO(GYP) - make this work. crbug.com/471903 | 557 data = [ |
| 558 "khronos_glcts_test_expectations.txt", | |
| 559 ] | |
| 560 | |
| 24 if (internal_khronos_glcts_tests) { | 561 if (internal_khronos_glcts_tests) { |
| 25 # TODO(GYP) implement me ... | 562 sources += [ "$target_gen_dir/khronos_glcts_test_autogen.cc" ] |
| 563 deps += [ | |
| 564 ":generate_khronos_glcts_tests", | |
| 565 ":khronos_glcts_test_windowless", | |
| 566 ] | |
| 26 } | 567 } |
| 27 } | 568 } |
| OLD | NEW |