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 import("//build/config/allocator.gni") | 10 import("//build/config/allocator.gni") |
11 import("//testing/test.gni") | 11 import("//testing/test.gni") |
12 | 12 |
13 # GYP version: gpu/gles2_conform_support/gles2_conform_support.gyp:gles2_conform
_support | 13 # GYP version: gpu/gles2_conform_support/gles2_conform_support.gyp:gles2_conform
_support |
14 executable("gles2_conform_support") { | 14 executable("gles2_conform_support") { |
15 sources = [ | 15 sources = [ |
16 "gles2_conform_support.c", | 16 "gles2_conform_support.c", |
17 "native/egl_native.cc", | 17 "native/egl_native.cc", |
18 "native/egl_native_win.cc", | 18 "native/egl_native_win.cc", |
19 "native/main.cc", | 19 "native/main.cc", |
20 ] | 20 ] |
21 defines = [ | 21 defines = [ |
22 "GLES2_CONFORM_SUPPORT_ONLY", | 22 "GLES2_CONFORM_SUPPORT_ONLY", |
23 "GTF_GLES20", | 23 "GTF_GLES20", |
24 "EGLAPI=", | 24 "EGLAPI=", |
25 "EGLAPIENTRY=", | 25 "EGLAPIENTRY=", |
26 ] | 26 ] |
27 deps = [ | 27 deps = [ |
28 "//base", | 28 "//base", |
| 29 "//base/third_party/dynamic_annotations", |
| 30 "//build/config/sanitizers:deps", |
| 31 "//gpu/command_buffer/client:gles2_c_lib_nocheck", |
29 "//gpu/gles2_conform_support/egl", | 32 "//gpu/gles2_conform_support/egl", |
30 "//base/third_party/dynamic_annotations", | |
31 "//ui/gl", | 33 "//ui/gl", |
32 "//gpu/command_buffer/client:gles2_c_lib_nocheck", | |
33 ] | 34 ] |
34 if (is_linux) { | 35 if (is_linux) { |
35 sources += [ | 36 sources += [ |
36 "native/egl_native_aura.cc", | 37 "native/egl_native_aura.cc", |
37 "native/egl_native_x11.cc", | 38 "native/egl_native_x11.cc", |
38 ] | 39 ] |
39 } | 40 } |
40 if (use_allocator != "none") { | 41 if (use_allocator != "none") { |
41 # See http://crbug.com/162998#c4 for why this is needed. | 42 # See http://crbug.com/162998#c4 for why this is needed. |
42 deps += [ "//base/allocator" ] | 43 deps += [ "//base/allocator" ] |
(...skipping 23 matching lines...) Expand all Loading... |
66 # Include a dummy c++ file to force linking of libstdc++. | 67 # Include a dummy c++ file to force linking of libstdc++. |
67 "dummy.cc", | 68 "dummy.cc", |
68 gles2_conform_gypi.gtf_es_sources, | 69 gles2_conform_gypi.gtf_es_sources, |
69 ] | 70 ] |
70 defines = [ | 71 defines = [ |
71 "GTF_API=GTF_GLES20", | 72 "GTF_API=GTF_GLES20", |
72 "HKEMBEDDEDFILESYSTEM", | 73 "HKEMBEDDEDFILESYSTEM", |
73 ] | 74 ] |
74 deps = [ | 75 deps = [ |
75 ":generate_gles2_conform_embedded_data", | 76 ":generate_gles2_conform_embedded_data", |
| 77 "//build/config/sanitizers:deps", |
| 78 "//gpu/command_buffer/client:gles2_c_libnocheck", |
76 "//gpu/gles2_conform_support/egl", | 79 "//gpu/gles2_conform_support/egl", |
77 "//gpu/gles2_conform_support/native:windowless", | 80 "//gpu/gles2_conform_support/native:windowless", |
78 "//gpu/command_buffer/client:gles2_c_libnocheck", | |
79 ] | 81 ] |
80 configs += [ "//build/compiler:no_incompatible_pointer_warnings" ] | 82 configs += [ "//build/compiler:no_incompatible_pointer_warnings" ] |
81 if (is_linux) { | 83 if (is_linux) { |
82 if (!is_chromeos) { | 84 if (!is_chromeos) { |
83 deps += [ "//build/linux/system/gtk" ] | 85 deps += [ "//build/linux/system/gtk" ] |
84 | 86 |
85 if (is_clang) { | 87 if (is_clang) { |
86 cflags = [ | 88 cflags = [ |
87 "-Wno-array-bounds", | 89 "-Wno-array-bounds", |
88 "-Wno-implicit-function-declaration", | 90 "-Wno-implicit-function-declaration", |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 data = [ | 182 data = [ |
181 "gles2_conform_test_expectations.txt", | 183 "gles2_conform_test_expectations.txt", |
182 ] | 184 ] |
183 | 185 |
184 if (internal_gles2_conform_tests) { | 186 if (internal_gles2_conform_tests) { |
185 deps += [ "gles2_conform_test_windowless" ] | 187 deps += [ "gles2_conform_test_windowless" ] |
186 | 188 |
187 data_deps = [ "//third_party/gles2_conform/GTF_ES/" ] | 189 data_deps = [ "//third_party/gles2_conform/GTF_ES/" ] |
188 } | 190 } |
189 } | 191 } |
OLD | NEW |