Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: gpu/ipc/service/BUILD.gn

Issue 1845563005: Refactor content/common/gpu into gpu/ipc/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gn libs defs Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//testing/test.gni")
6 import("//build/config/ui.gni")
7 if (is_mac) {
8 import("//build/config/mac/mac_sdk.gni")
9 }
10
11 group("service") {
12 if (is_component_build) {
13 public_deps = [
14 "//gpu",
15 ]
16 } else {
17 public_deps = [
18 ":ipc_service_sources",
19 ]
20 }
21 }
22
23 source_set("ipc_service_sources") {
24 visibility = [ "//gpu/*" ]
25 sources = [
26 "gpu_channel.cc",
27 "gpu_channel.h",
28 "gpu_channel_manager.cc",
29 "gpu_channel_manager.h",
30 "gpu_channel_manager_delegate.h",
31 "gpu_command_buffer_stub.cc",
32 "gpu_command_buffer_stub.h",
33 "gpu_config.h",
34 "gpu_memory_buffer_factory.cc",
35 "gpu_memory_buffer_factory.h",
36 "gpu_memory_manager.cc",
37 "gpu_memory_manager.h",
38 "gpu_memory_tracking.cc",
39 "gpu_memory_tracking.h",
40 "gpu_watchdog.h",
41 "image_transport_surface.h",
42 "pass_through_image_transport_surface.cc",
43 "pass_through_image_transport_surface.h",
44 ]
45 configs += [ "//gpu:gpu_implementation" ]
46 public_deps = [
47 "//base",
48 "//gpu/command_buffer/common:common_sources",
49 "//gpu/command_buffer/service:service_sources",
50 "//gpu/ipc/common:ipc_common_sources",
51 "//ipc",
52 "//ui/events:events_base",
53 "//ui/gfx",
54 "//ui/gfx/geometry",
55 "//ui/gl",
56 "//url",
57 ]
58 deps = []
59 libs = []
60 if (is_win) {
61 sources += [
62 "child_window_surface_win.cc",
63 "child_window_surface_win.h",
64 "image_transport_surface_win.cc",
65 ]
66 }
67 if (is_mac) {
68 sources += [
69 "ca_layer_partial_damage_tree_mac.h",
70 "ca_layer_partial_damage_tree_mac.mm",
71 "ca_layer_tree_mac.h",
72 "ca_layer_tree_mac.mm",
73 "gpu_memory_buffer_factory_io_surface.cc",
74 "gpu_memory_buffer_factory_io_surface.h",
75 "image_transport_surface_mac.mm",
76 "image_transport_surface_overlay_mac.h",
77 "image_transport_surface_overlay_mac.mm",
78 ]
79 deps += [ "//ui/accelerated_widget_mac" ]
80 lib_dirs = [ "$mac_sdk_path/usr/lib" ]
81 libs += [ "AVFoundation.framework" ]
82 }
83 if (is_android) {
84 sources += [
85 "gpu_memory_buffer_factory_surface_texture.cc",
86 "gpu_memory_buffer_factory_surface_texture.h",
87 "image_transport_surface_android.cc",
88 "stream_texture_android.cc",
89 "stream_texture_android.h",
90 ]
91 libs += [ "android" ]
92 }
93 if (is_linux) {
94 sources += [ "image_transport_surface_linux.cc" ]
95 }
96 if (use_x11) {
97 sources += [ "x_util.h" ]
98 }
99 if (use_ozone) {
100 sources += [
101 "gpu_memory_buffer_factory_ozone_native_pixmap.cc",
102 "gpu_memory_buffer_factory_ozone_native_pixmap.h",
103 ]
104 deps += [ "//ui/ozone" ]
105 }
106 }
107
108 source_set("test_support") {
109 testonly = true
110 sources = [
111 "gpu_memory_buffer_factory_test_template.h",
112 ]
113 public_deps = [
114 ":ipc_service_sources",
115 "//testing/gtest:gtest",
116 ]
117 }
118
119 test("gpu_ipc_service_unittests") {
120 configs += [ "//build/config:precompiled_headers" ]
121 sources = [
122 "gpu_channel_manager_unittest.cc",
123 "gpu_channel_test_common.cc",
124 "gpu_channel_test_common.h",
125 "gpu_channel_unittest.cc",
126 ]
127 deps = [
128 ":ipc_service_sources",
129 ":test_support",
130 "//base",
131 "//base/test:run_all_unittests",
132 "//base/test:test_support",
133 "//ipc:test_support",
134 "//testing/gtest",
135 ]
136 libs = []
137 if (is_android) {
138 sources += [ "gpu_memory_buffer_factory_surface_texture_unittest.cc" ]
139 }
140 if (is_mac) {
141 sources += [
142 "ca_layer_tree_unittest_mac.mm",
143 "gpu_memory_buffer_factory_io_surface_unittest.cc",
144 ]
145 deps += [ "//ui/accelerated_widget_mac" ]
146 libs += [ "AVFoundation.framework" ]
147 }
148 if (use_ozone) {
149 sources += [ "gpu_memory_buffer_factory_ozone_native_pixmap_unittest.cc" ]
150 deps += [ "//ui/ozone" ]
151 }
152 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698