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 declare_args() { | 5 declare_args() { |
6 # Set to true to compile with the OpenGL ES 2.0 conformance tests. | 6 # Set to true to compile with the OpenGL ES 2.0 conformance tests. |
7 internal_gles2_conform_tests = false | 7 internal_gles2_conform_tests = false |
8 } | 8 } |
9 | 9 |
10 config("gles2_conform_test_warnings") { | 10 config("gles2_conform_test_warnings") { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 ] | 47 ] |
48 defines = [ | 48 defines = [ |
49 "GLES2_CONFORM_SUPPORT_ONLY", | 49 "GLES2_CONFORM_SUPPORT_ONLY", |
50 "GTF_GLES20", | 50 "GTF_GLES20", |
51 "EGLAPI=", | 51 "EGLAPI=", |
52 "EGLAPIENTRY=", | 52 "EGLAPIENTRY=", |
53 ] | 53 ] |
54 deps = [ | 54 deps = [ |
55 "//base", | 55 "//base", |
56 "//base/third_party/dynamic_annotations", | 56 "//base/third_party/dynamic_annotations", |
57 "//build/config/sanitizers:deps", | 57 "//build/config:exe_and_shlib_deps", |
58 "//build/win:default_exe_manifest", | 58 "//build/win:default_exe_manifest", |
59 "//gpu/command_buffer/client:gles2_c_lib_nocheck", | 59 "//gpu/command_buffer/client:gles2_c_lib_nocheck", |
60 "//gpu/gles2_conform_support/egl", | 60 "//gpu/gles2_conform_support/egl", |
61 "//ui/gl", | 61 "//ui/gl", |
62 ] | 62 ] |
63 if (is_linux) { | 63 if (is_linux) { |
64 sources += [ | 64 sources += [ |
65 "native/egl_native_aura.cc", | 65 "native/egl_native_aura.cc", |
66 "native/egl_native_x11.cc", | 66 "native/egl_native_x11.cc", |
67 ] | 67 ] |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 defines = [ | 394 defines = [ |
395 "GTF_API=GTF_GLES20", | 395 "GTF_API=GTF_GLES20", |
396 "HKEMBEDDEDFILESYSTEM", | 396 "HKEMBEDDEDFILESYSTEM", |
397 ] | 397 ] |
398 include_dirs = [ | 398 include_dirs = [ |
399 rebase_path("$target_gen_dir/gles2_conform_test_embedded_data"), | 399 rebase_path("$target_gen_dir/gles2_conform_test_embedded_data"), |
400 "//third_party/gles2_conform/GTF_ES/glsl/GTF/Source", | 400 "//third_party/gles2_conform/GTF_ES/glsl/GTF/Source", |
401 ] | 401 ] |
402 deps = [ | 402 deps = [ |
403 ":generate_gles2_conform_embedded_data", | 403 ":generate_gles2_conform_embedded_data", |
404 "//build/config/sanitizers:deps", | 404 "//build/config:exe_and_shlib_deps", |
405 "//gpu/command_buffer/client:gles2_c_lib_nocheck", | 405 "//gpu/command_buffer/client:gles2_c_lib_nocheck", |
406 "//gpu/gles2_conform_support/egl", | 406 "//gpu/gles2_conform_support/egl", |
407 "//gpu/gles2_conform_support/native:windowless", | 407 "//gpu/gles2_conform_support/native:windowless", |
408 "//third_party/expat:expat", | 408 "//third_party/expat:expat", |
409 ] | 409 ] |
410 configs += [ | 410 configs += [ |
411 "//build/config/compiler:no_incompatible_pointer_warnings", | 411 "//build/config/compiler:no_incompatible_pointer_warnings", |
412 | 412 |
413 # Must be done this way for warning flags to be ordered correctly. | 413 # Must be done this way for warning flags to be ordered correctly. |
414 ":gles2_conform_test_warnings", | 414 ":gles2_conform_test_warnings", |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 | 485 |
486 if (internal_gles2_conform_tests) { | 486 if (internal_gles2_conform_tests) { |
487 data_deps = [ | 487 data_deps = [ |
488 ":gles2_conform_test_windowless", | 488 ":gles2_conform_test_windowless", |
489 ] | 489 ] |
490 deps += [ ":generate_gles2_conform_tests" ] | 490 deps += [ ":generate_gles2_conform_tests" ] |
491 sources += [ "$target_gen_dir/gles2_conform_test_autogen.cc" ] | 491 sources += [ "$target_gen_dir/gles2_conform_test_autogen.cc" ] |
492 data += [ "//third_party/gles2_conform/GTF_ES/" ] | 492 data += [ "//third_party/gles2_conform/GTF_ES/" ] |
493 } | 493 } |
494 } | 494 } |
OLD | NEW |