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

Side by Side Diff: content/gpu/BUILD.gn

Issue 2163933003: Shrink gn's chrome.dll - now smaller than gyp's (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Back to landed patch Created 4 years, 5 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
« no previous file with comments | « no previous file | content/public/gpu/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 import("//media/media_options.gni") 6 import("//media/media_options.gni")
7 7
8 # See //content/BUILD.gn for how this works. 8 # See //content/BUILD.gn for how this works.
9 group("gpu") { 9 group("gpu") {
10 visibility = [ "//content/*" ] # This is an internal content API. 10 visibility = [ "//content/*" ] # This is an internal content API.
11 11
12 if (is_component_build) { 12 if (is_component_build) {
13 public_deps = [ 13 public_deps = [
14 "//content", 14 "//content",
15 ] 15 ]
16 } else { 16 } else {
17 public_deps = [ 17 public_deps = [
18 ":gpu_sources", 18 ":gpu_sources",
19 ] 19 ]
20 } 20 }
21 } 21 }
22 22
23 source_set("gpu_sources") { 23 if (is_component_build) {
24 link_target_type = "source_set"
25 } else {
26 link_target_type = "static_library"
27 }
28 target(link_target_type, "gpu_sources") {
24 # This is an internal content API. Code outside of the content "component" 29 # This is an internal content API. Code outside of the content "component"
25 # (like content/test and content/shell) should depend on ":gpu" above. 30 # (like content/test and content/shell) should depend on ":gpu" above.
26 visibility = [ "//content/*" ] 31 visibility = [ "//content/*" ]
27 32
28 sources = [ 33 sources = [
29 "gpu_child_thread.cc", 34 "gpu_child_thread.cc",
30 "gpu_child_thread.h", 35 "gpu_child_thread.h",
31 "gpu_main.cc", 36 "gpu_main.cc",
32 "gpu_process.cc", 37 "gpu_process.cc",
33 "gpu_process.h", 38 "gpu_process.h",
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 101 }
97 102
98 if (use_ozone) { 103 if (use_ozone) {
99 deps += [ "//ui/ozone" ] 104 deps += [ "//ui/ozone" ]
100 } 105 }
101 106
102 if (enable_vulkan) { 107 if (enable_vulkan) {
103 deps += [ "//gpu/vulkan" ] 108 deps += [ "//gpu/vulkan" ]
104 } 109 }
105 } 110 }
OLDNEW
« no previous file with comments | « no previous file | content/public/gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698