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") |
(...skipping 28 matching lines...) Expand all Loading... | |
39 } | 39 } |
40 if (use_allocator != "none") { | 40 if (use_allocator != "none") { |
41 # See http://crbug.com/162998#c4 for why this is needed. | 41 # See http://crbug.com/162998#c4 for why this is needed. |
42 deps += [ "//base/allocator" ] | 42 deps += [ "//base/allocator" ] |
43 } | 43 } |
44 } | 44 } |
45 | 45 |
46 if (internal_gles2_conform_tests) { | 46 if (internal_gles2_conform_tests) { |
47 action("generate_gles2_conform_embedded_data") { | 47 action("generate_gles2_conform_embedded_data") { |
48 script = "generate_gles2_embedded_data.py" | 48 script = "generate_gles2_embedded_data.py" |
49 output = [ | 49 outputs = [ |
50 "$target_gen_dir/gles2_conform_test_embedded_data/FilesData.c", | 50 "$target_gen_dir/gles2_conform_test_embedded_data/FilesDATA.c", |
51 "$target_gen_dir/gles2_conform_test_embedded_data/FilesData.h", | 51 "$target_gen_dir/gles2_conform_test_embedded_data/FilesDATA.h", |
52 "$target_gen_dir/gles2_conform_test_embedded_data/FilesTOC.c", | 52 "$target_gen_dir/gles2_conform_test_embedded_data/FilesTOC.c", |
53 ] | 53 ] |
54 args = [ | 54 args = [ |
55 "../../third_party/gles2_conform/GTF_ES/glsl/GTF", | 55 "../../third_party/gles2_conform/GTF_ES/glsl/GTF", |
56 "$target_gen_dir/gles2_conform_test_embedded_data", | 56 "$target_gen_dir/gles2_conform_test_embedded_data", |
57 ] | 57 ] |
58 } | 58 } |
59 gles2_conform_gypi = exec_script("//build/gypi_to_gn.py", | 59 gles2_conform_gypi = |
60 [ rebase_path("gles2_conform_gypi") ], | 60 exec_script("//build/gypi_to_gn.py", |
61 "scoped", | 61 [ |
62 [ "gles2_conform_gypi" ]) | 62 rebase_path("gles2_conform.gypi"), |
63 "--replace=<(DEPTH)=../..", | |
64 "--replace=<(SHARED_INTERMEDIATE_DIR)=$target_gen_dir", | |
65 ], | |
66 "scope", | |
67 [ "gles2_conform.gypi" ]) | |
63 executable("gles2_conform_test_windowless") { | 68 executable("gles2_conform_test_windowless") { |
64 testonly = true | 69 testonly = true |
65 sources = [ | 70 |
66 # Include a dummy c++ file to force linking of libstdc++. | 71 # Include a dummy c++ file to force linking of libstdc++. |
67 "dummy.cc", | 72 sources = [ "dummy.cc" ] + gles2_conform_gypi.gtf_es_sources |
68 gles2_conform_gypi.gtf_es_sources, | |
69 ] | |
70 defines = [ | 73 defines = [ |
71 "GTF_API=GTF_GLES20", | 74 "GTF_API=GTF_GLES20", |
72 "HKEMBEDDEDFILESYSTEM", | 75 "HKEMBEDDEDFILESYSTEM", |
73 ] | 76 ] |
74 deps = [ | 77 deps = [ |
75 ":generate_gles2_conform_embedded_data", | 78 ":generate_gles2_conform_embedded_data", |
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", | 81 |
82 #"//gpu/command_buffer/client:gles2_c_libnocheck", | |
piman
2015/09/03 20:28:02
Should this be removed?
Peter Mayo
2015/09/03 21:13:35
Was already done ahead of my last sync - rebase ca
| |
79 ] | 83 ] |
80 configs += [ "//build/compiler:no_incompatible_pointer_warnings" ] | 84 configs += [ "//build/config/compiler:no_incompatible_pointer_warnings" ] |
81 if (is_linux) { | 85 if (is_linux) { |
82 if (!is_chromeos) { | 86 if (!is_chromeos) { |
83 deps += [ "//build/linux/system/gtk" ] | 87 deps += [ "//build/config/linux/gtk" ] |
Dirk Pranke
2015/09/03 20:28:47
the old thing didn't exist, but I don't think //bu
Peter Mayo
2015/09/03 21:13:35
head moved to gtk2, rebased accordingly.
| |
84 | 88 |
85 if (is_clang) { | 89 if (is_clang) { |
86 cflags = [ | 90 cflags = [ |
87 "-Wno-array-bounds", | 91 "-Wno-array-bounds", |
88 "-Wno-implicit-function-declaration", | 92 "-Wno-implicit-function-declaration", |
89 "-Wno-parentheses-equality", | 93 "-Wno-parentheses-equality", |
90 "-Wno-pointer-sign", | 94 "-Wno-pointer-sign", |
91 "-Wno-return-type", | 95 "-Wno-return-type", |
92 "-Wno-sizeof-pointer-memaccess", | 96 "-Wno-sizeof-pointer-memaccess", |
93 "-Wno-tautological-compare", | 97 "-Wno-tautological-compare", |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
175 "//base", | 179 "//base", |
176 "//gpu/config", | 180 "//gpu/config", |
177 "//testing/gtest", | 181 "//testing/gtest", |
178 ] | 182 ] |
179 | 183 |
180 data = [ | 184 data = [ |
181 "gles2_conform_test_expectations.txt", | 185 "gles2_conform_test_expectations.txt", |
182 ] | 186 ] |
183 | 187 |
184 if (internal_gles2_conform_tests) { | 188 if (internal_gles2_conform_tests) { |
185 deps += [ "gles2_conform_test_windowless" ] | 189 deps += [ ":gles2_conform_test_windowless" ] |
186 | 190 #data_deps = [ "//third_party/gles2_conform/GTF_ES/" ] |
piman
2015/09/03 20:28:02
Should this be removed?
Peter Mayo
2015/09/03 21:13:35
I don't know why it was there in the first place.
| |
187 data_deps = [ "//third_party/gles2_conform/GTF_ES/" ] | |
188 } | 191 } |
189 } | 192 } |
OLD | NEW |