| 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: | |
| 6 # | |
| 7 # gpu.gyp:command_buffer_client => //gpu/command_buffer/client | |
| 8 # | |
| 9 # gpu.gyp:command_buffer_common => //gpu/command_buffer/common | |
| 10 # | |
| 11 # gpu.gyp:command_buffer_service => //gpu/command_buffer/service | |
| 12 | |
| 13 # gpu/gpu.gyp:gl_in_process_context => | |
| 14 # //gpu/command_buffer/client:gl_in_process_context | |
| 15 # | |
| 16 # gpu.gyp:gles2_cmd_helper => //gpu/command_buffer/client:gles2_cmd_helper | |
| 17 # | |
| 18 # gpu.gyp:gles2_c_lib => //gpu/command_buffer/client:gles2_c_lib | |
| 19 # | |
| 20 # gpu.gyp:gles2_implementation => | |
| 21 # //gpu/command_buffer/client:gles2_implementation | |
| 22 # | |
| 23 # gpu.gyp:gpu_config => //gpu/config | |
| 24 # | |
| 25 # gpu.gyp:gpu_ipc => //gpu/ipc | |
| 26 # | |
| 27 # gpu.gyp:disk_cache_proto => //gpu/command_buffer/service:disk_cache_proto | |
| 28 # | |
| 29 # command_buffer/command_buffer.gyp:gles2_utils => | |
| 30 # //gpu/command_buffer/common:gles2_utils | |
| 31 # | |
| 32 # gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings => //gpu/skia_bindings | |
| 33 | |
| 34 import("//testing/libfuzzer/fuzzer_test.gni") | 5 import("//testing/libfuzzer/fuzzer_test.gni") |
| 35 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 36 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 37 | 8 |
| 38 config("gpu_implementation") { | 9 config("gpu_implementation") { |
| 39 defines = [ "GPU_IMPLEMENTATION" ] | 10 defines = [ "GPU_IMPLEMENTATION" ] |
| 40 } | 11 } |
| 41 | 12 |
| 42 component("gpu") { | 13 component("gpu") { |
| 43 public_deps = [ | 14 public_deps = [ |
| 44 "//gpu/command_buffer/client:client_sources", | 15 "//gpu/command_buffer/client:client_sources", |
| 45 "//gpu/command_buffer/client:gles2_cmd_helper_sources", | 16 "//gpu/command_buffer/client:gles2_cmd_helper_sources", |
| 46 "//gpu/command_buffer/common:common_sources", | 17 "//gpu/command_buffer/common:common_sources", |
| 47 "//gpu/command_buffer/service:service_sources", | 18 "//gpu/command_buffer/service:service_sources", |
| 48 "//gpu/config:config_sources", | 19 "//gpu/config:config_sources", |
| 49 "//gpu/ipc/client:ipc_client_sources", | 20 "//gpu/ipc/client:ipc_client_sources", |
| 50 "//gpu/ipc/common:ipc_common_sources", | 21 "//gpu/ipc/common:ipc_common_sources", |
| 51 "//gpu/ipc/service:ipc_service_sources", | 22 "//gpu/ipc/service:ipc_service_sources", |
| 52 ] | 23 ] |
| 53 } | 24 } |
| 54 | 25 |
| 55 # GYP version: //gpu/gpu.gyp:command_buffer_gles2 | |
| 56 shared_library("command_buffer_gles2") { | 26 shared_library("command_buffer_gles2") { |
| 57 sources = [ | 27 sources = [ |
| 58 # TODO(hendrikw): Move egl out of gles2_conform_support. | 28 # TODO(hendrikw): Move egl out of gles2_conform_support. |
| 59 "gles2_conform_support/egl/config.cc", | 29 "gles2_conform_support/egl/config.cc", |
| 60 "gles2_conform_support/egl/config.h", | 30 "gles2_conform_support/egl/config.h", |
| 61 "gles2_conform_support/egl/context.cc", | 31 "gles2_conform_support/egl/context.cc", |
| 62 "gles2_conform_support/egl/context.h", | 32 "gles2_conform_support/egl/context.h", |
| 63 "gles2_conform_support/egl/display.cc", | 33 "gles2_conform_support/egl/display.cc", |
| 64 "gles2_conform_support/egl/display.h", | 34 "gles2_conform_support/egl/display.h", |
| 65 "gles2_conform_support/egl/egl.cc", | 35 "gles2_conform_support/egl/egl.cc", |
| (...skipping 18 matching lines...) Expand all Loading... |
| 84 "COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY", | 54 "COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY", |
| 85 "EGLAPIENTRY=", | 55 "EGLAPIENTRY=", |
| 86 ] | 56 ] |
| 87 if (current_os == "win") { | 57 if (current_os == "win") { |
| 88 defines += [ "EGLAPI=__declspec(dllexport)" ] | 58 defines += [ "EGLAPI=__declspec(dllexport)" ] |
| 89 } else { | 59 } else { |
| 90 defines += [ "EGLAPI=__attribute__((visibility(\"default\")))" ] | 60 defines += [ "EGLAPI=__attribute__((visibility(\"default\")))" ] |
| 91 } | 61 } |
| 92 } | 62 } |
| 93 | 63 |
| 94 # GYP version: //gpu/gpu.gyp:command_buffer_gles2_tests | |
| 95 test("command_buffer_gles2_tests") { | 64 test("command_buffer_gles2_tests") { |
| 96 sources = [ | 65 sources = [ |
| 97 "command_buffer/tests/command_buffer_gles2_tests_main.cc", | 66 "command_buffer/tests/command_buffer_gles2_tests_main.cc", |
| 98 "command_buffer/tests/egl_test.cc", | 67 "command_buffer/tests/egl_test.cc", |
| 99 ] | 68 ] |
| 100 | 69 |
| 101 deps = [ | 70 deps = [ |
| 102 ":command_buffer_gles2", | 71 ":command_buffer_gles2", |
| 103 "//base", | 72 "//base", |
| 104 "//base/test:test_support", | 73 "//base/test:test_support", |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 "//ui/gfx/geometry", | 385 "//ui/gfx/geometry", |
| 417 "//ui/gl", | 386 "//ui/gl", |
| 418 "//ui/gl:test_support", | 387 "//ui/gl:test_support", |
| 419 ] | 388 ] |
| 420 | 389 |
| 421 libfuzzer_options = [ | 390 libfuzzer_options = [ |
| 422 "max_len=16384", | 391 "max_len=16384", |
| 423 "use_traces=1", | 392 "use_traces=1", |
| 424 ] | 393 ] |
| 425 } | 394 } |
| OLD | NEW |