OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # GYP-to-GN project mappings: | 5 # GYP-to-GN project mappings: |
6 # | 6 # |
7 # gpu.gyp:command_buffer_client => //gpu/command_buffer/client | 7 # gpu.gyp:command_buffer_client => //gpu/command_buffer/client |
8 # | 8 # |
9 # gpu.gyp:command_buffer_common => //gpu/command_buffer/common | 9 # gpu.gyp:command_buffer_common => //gpu/command_buffer/common |
10 # | 10 # |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 shared_library("command_buffer_gles2") { | 53 shared_library("command_buffer_gles2") { |
54 sources = [ | 54 sources = [ |
55 # TODO(hendrikw): Move egl out of gles2_conform_support. | 55 # TODO(hendrikw): Move egl out of gles2_conform_support. |
56 "gles2_conform_support/egl/config.cc", | 56 "gles2_conform_support/egl/config.cc", |
57 "gles2_conform_support/egl/config.h", | 57 "gles2_conform_support/egl/config.h", |
58 "gles2_conform_support/egl/display.cc", | 58 "gles2_conform_support/egl/display.cc", |
59 "gles2_conform_support/egl/display.h", | 59 "gles2_conform_support/egl/display.h", |
60 "gles2_conform_support/egl/egl.cc", | 60 "gles2_conform_support/egl/egl.cc", |
61 "gles2_conform_support/egl/surface.cc", | 61 "gles2_conform_support/egl/surface.cc", |
62 "gles2_conform_support/egl/surface.h", | 62 "gles2_conform_support/egl/surface.h", |
| 63 "gles2_conform_support/egl/test_support.cc", |
| 64 "gles2_conform_support/egl/test_support.h", |
63 ] | 65 ] |
64 | 66 |
65 deps = [ | 67 deps = [ |
66 ":gpu", | 68 ":gpu", |
67 "//base", | 69 "//base", |
68 "//gpu/command_buffer/client:gles2_c_lib", | 70 "//gpu/command_buffer/client:gles2_c_lib", |
69 "//gpu/command_buffer/client:gles2_implementation", | 71 "//gpu/command_buffer/client:gles2_implementation", |
70 "//ui/gl:gl", | 72 "//ui/gl:gl", |
71 ] | 73 ] |
72 | 74 |
73 defines = [ | 75 defines = [ |
74 "COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY", | 76 "COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY", |
75 "EGLAPIENTRY=", | 77 "EGLAPIENTRY=", |
76 ] | 78 ] |
77 if (current_os == "win") { | 79 if (current_os == "win") { |
78 defines += [ "EGLAPI=__declspec(dllexport)" ] | 80 defines += [ "EGLAPI=__declspec(dllexport)" ] |
79 } else { | 81 } else { |
80 defines += [ "EGLAPI=__attribute__((visibility(\"default\")))" ] | 82 defines += [ "EGLAPI=__attribute__((visibility(\"default\")))" ] |
81 } | 83 } |
82 } | 84 } |
83 | 85 |
| 86 # GYP version: //gpu/gpu.gyp:command_buffer_gles2_tests |
| 87 test("command_buffer_gles2_tests") { |
| 88 sources = [ |
| 89 "command_buffer/tests/command_buffer_gles2_tests_main.cc", |
| 90 "command_buffer/tests/egl_test.cc", |
| 91 ] |
| 92 |
| 93 deps = [ |
| 94 ":command_buffer_gles2", |
| 95 "//base", |
| 96 "//base/test:test_support", |
| 97 "//base/third_party/dynamic_annotations", |
| 98 "//testing/gmock", |
| 99 "//testing/gtest", |
| 100 ] |
| 101 |
| 102 defines = [ |
| 103 "COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY", |
| 104 "EGLAPIENTRY=", |
| 105 ] |
| 106 if (current_os == "win") { |
| 107 defines += [ "EGLAPI=__declspec(dllimport)" ] |
| 108 } else { |
| 109 defines += [ "EGLAPI=" ] |
| 110 } |
| 111 |
| 112 libs = [] |
| 113 |
| 114 if (is_android) { |
| 115 libs += [ "android" ] |
| 116 deps += [ "//ui/android:ui_java" ] |
| 117 } |
| 118 if (!is_component_build) { |
| 119 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
| 120 } |
| 121 } |
| 122 |
84 source_set("test_support") { | 123 source_set("test_support") { |
85 testonly = true | 124 testonly = true |
86 sources = [ | 125 sources = [ |
87 "command_buffer/client/gles2_interface_stub.cc", | 126 "command_buffer/client/gles2_interface_stub.cc", |
88 "command_buffer/client/gles2_interface_stub.h", | 127 "command_buffer/client/gles2_interface_stub.h", |
89 "command_buffer/service/error_state_mock.cc", | 128 "command_buffer/service/error_state_mock.cc", |
90 "command_buffer/service/gles2_cmd_decoder_mock.cc", | 129 "command_buffer/service/gles2_cmd_decoder_mock.cc", |
91 ] | 130 ] |
92 | 131 |
93 public_deps = [ | 132 public_deps = [ |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 "//base", | 344 "//base", |
306 "//base/test:test_support", | 345 "//base/test:test_support", |
307 "//gpu/command_buffer/service", | 346 "//gpu/command_buffer/service", |
308 "//testing/gmock", | 347 "//testing/gmock", |
309 "//testing/gtest", | 348 "//testing/gtest", |
310 "//testing/perf", | 349 "//testing/perf", |
311 "//ui/gfx/geometry", | 350 "//ui/gfx/geometry", |
312 "//ui/gl", | 351 "//ui/gl", |
313 ] | 352 ] |
314 } | 353 } |
OLD | NEW |