| 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", | |
| 65 ] | 63 ] |
| 66 | 64 |
| 67 deps = [ | 65 deps = [ |
| 68 ":gpu", | 66 ":gpu", |
| 69 "//base", | 67 "//base", |
| 70 "//gpu/command_buffer/client:gles2_c_lib", | 68 "//gpu/command_buffer/client:gles2_c_lib", |
| 71 "//gpu/command_buffer/client:gles2_implementation", | 69 "//gpu/command_buffer/client:gles2_implementation", |
| 72 "//ui/gl:gl", | 70 "//ui/gl:gl", |
| 73 ] | 71 ] |
| 74 | 72 |
| 75 defines = [ | 73 defines = [ |
| 76 "COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY", | 74 "COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY", |
| 77 "EGLAPIENTRY=", | 75 "EGLAPIENTRY=", |
| 78 ] | 76 ] |
| 79 if (current_os == "win") { | 77 if (current_os == "win") { |
| 80 defines += [ "EGLAPI=__declspec(dllexport)" ] | 78 defines += [ "EGLAPI=__declspec(dllexport)" ] |
| 81 } else { | 79 } else { |
| 82 defines += [ "EGLAPI=__attribute__((visibility(\"default\")))" ] | 80 defines += [ "EGLAPI=__attribute__((visibility(\"default\")))" ] |
| 83 } | 81 } |
| 84 } | 82 } |
| 85 | 83 |
| 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 "EGLAPI=", | |
| 106 ] | |
| 107 | |
| 108 libs = [] | |
| 109 | |
| 110 if (is_android) { | |
| 111 libs += [ "android" ] | |
| 112 deps += [ "//ui/android:ui_java" ] | |
| 113 } | |
| 114 if (!is_component_build) { | |
| 115 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | |
| 116 } | |
| 117 } | |
| 118 | |
| 119 source_set("test_support") { | 84 source_set("test_support") { |
| 120 testonly = true | 85 testonly = true |
| 121 sources = [ | 86 sources = [ |
| 122 "command_buffer/client/gles2_interface_stub.cc", | 87 "command_buffer/client/gles2_interface_stub.cc", |
| 123 "command_buffer/client/gles2_interface_stub.h", | 88 "command_buffer/client/gles2_interface_stub.h", |
| 124 "command_buffer/service/error_state_mock.cc", | 89 "command_buffer/service/error_state_mock.cc", |
| 125 "command_buffer/service/gles2_cmd_decoder_mock.cc", | 90 "command_buffer/service/gles2_cmd_decoder_mock.cc", |
| 126 ] | 91 ] |
| 127 | 92 |
| 128 public_deps = [ | 93 public_deps = [ |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 if (is_win || is_linux || is_mac) { | 341 if (is_win || is_linux || is_mac) { |
| 377 # TODO(GYP): Delete this after we've converted everything to GN. | 342 # TODO(GYP): Delete this after we've converted everything to GN. |
| 378 # The _run targets exist only for compatibility w/ GYP. | 343 # The _run targets exist only for compatibility w/ GYP. |
| 379 group("angle_end2end_tests_run") { | 344 group("angle_end2end_tests_run") { |
| 380 testonly = true | 345 testonly = true |
| 381 deps = [ | 346 deps = [ |
| 382 "//third_party/angle/src/tests:angle_end2end_tests", | 347 "//third_party/angle/src/tests:angle_end2end_tests", |
| 383 ] | 348 ] |
| 384 } | 349 } |
| 385 } | 350 } |
| OLD | NEW |