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

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

Issue 746003002: Enable webrtc and most of blink and content in the Mac GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « cc/blink/BUILD.gn ('k') | content/shell/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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//content/common/common.gni") 7 import("//content/common/common.gni")
8 import("//mojo/public/tools/bindings/mojom.gni") 8 import("//mojo/public/tools/bindings/mojom.gni")
9 9
10 if (is_chromeos && use_x11 && cpu_arch != "arm") { 10 if (is_chromeos && use_x11 && cpu_arch != "arm") {
(...skipping 15 matching lines...) Expand all
26 "-t", "posix_stubs", 26 "-t", "posix_stubs",
27 "-e", rebase_path(extra_header, root_build_dir), 27 "-e", rebase_path(extra_header, root_build_dir),
28 "-s", stubs_filename_root, 28 "-s", stubs_filename_root,
29 "-p", "content/common/gpu/media", 29 "-p", "content/common/gpu/media",
30 ] 30 ]
31 31
32 args += rebase_path(sources, root_build_dir) 32 args += rebase_path(sources, root_build_dir)
33 } 33 }
34 } 34 }
35 35
36 if (is_mac) {
37 action("libvt_generate_stubs") {
38 extra_header = "gpu/media/vt_stubs_header.fragment"
39
40 script = "../../tools/generate_stubs/generate_stubs.py"
41 sources = [ "gpu/media/vt.sig" ]
42 inputs = [ extra_header ]
43 stubs_filename_root = "vt_stubs"
44
45 outputs = [
46 "$target_gen_dir/gpu/media/$stubs_filename_root.cc",
47 "$target_gen_dir/gpu/media/$stubs_filename_root.h",
48 ]
49 args = [
50 "-i", rebase_path("$target_gen_dir/gpu/media", root_build_dir),
51 "-o", rebase_path("$target_gen_dir/gpu/media", root_build_dir),
52 "-t", "posix_stubs",
53 "-e", rebase_path(extra_header, root_build_dir),
54 "-s", stubs_filename_root,
55 "-p", "content/common/gpu/media",
56 ]
57
58 args += rebase_path(sources, root_build_dir)
59 }
60 }
61
36 source_set("common") { 62 source_set("common") {
37 # Only the public target should depend on this. All other targets (even 63 # Only the public target should depend on this. All other targets (even
38 # internal content ones) should depend on the public one. 64 # internal content ones) should depend on the public one.
39 visibility = [ "//content/public/common:common_sources" ] 65 visibility = [ "//content/public/common:common_sources" ]
40 66
41 sources = rebase_path(content_common_gypi_values.private_common_sources, 67 sources = rebase_path(content_common_gypi_values.private_common_sources,
42 ".", "//content") 68 ".", "//content")
43 69
44 configs += [ 70 configs += [
45 "//content:content_implementation", 71 "//content:content_implementation",
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 "sandbox_linux/sandbox_bpf_base_policy_linux.cc", 134 "sandbox_linux/sandbox_bpf_base_policy_linux.cc",
109 "sandbox_linux/sandbox_bpf_base_policy_linux.h", 135 "sandbox_linux/sandbox_bpf_base_policy_linux.h",
110 ] 136 ]
111 set_sources_assignment_filter(sources_assignment_filter) 137 set_sources_assignment_filter(sources_assignment_filter)
112 } 138 }
113 139
114 if (is_mac) { 140 if (is_mac) {
115 sources += [ 141 sources += [
116 "gpu/client/gpu_memory_buffer_impl_io_surface.cc", 142 "gpu/client/gpu_memory_buffer_impl_io_surface.cc",
117 "gpu/client/gpu_memory_buffer_impl_io_surface.h", 143 "gpu/client/gpu_memory_buffer_impl_io_surface.h",
118 ] 144 ] + get_target_outputs(":libvt_generate_stubs")
145
119 sources -= [ 146 sources -= [
120 "plugin_list_posix.cc", 147 "plugin_list_posix.cc",
121 ] 148 ]
122 149
123 deps += [ 150 deps += [
151 ":libvt_generate_stubs",
124 "//content/app/resources", 152 "//content/app/resources",
125 "//content:resources", 153 "//content:resources",
126 "//third_party/WebKit/public:resources", 154 "//third_party/WebKit/public:resources",
127 ] 155 ]
128 libs += [ "QuartzCore.framework" ] 156 libs += [ "QuartzCore.framework" ]
129 } 157 }
130 158
131 if (is_android) { 159 if (is_android) {
132 sources += [ 160 sources += [
133 "gpu/client/gpu_memory_buffer_impl_surface_texture.cc", 161 "gpu/client/gpu_memory_buffer_impl_surface_texture.cc",
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 "geolocation_service.mojom", 355 "geolocation_service.mojom",
328 "permission_service.mojom", 356 "permission_service.mojom",
329 "render_frame_setup.mojom", 357 "render_frame_setup.mojom",
330 ] 358 ]
331 359
332 deps = [ 360 deps = [
333 "//content/public/common:mojo_bindings", 361 "//content/public/common:mojo_bindings",
334 "//mojo/public/interfaces/application:application", 362 "//mojo/public/interfaces/application:application",
335 ] 363 ]
336 } 364 }
OLDNEW
« no previous file with comments | « cc/blink/BUILD.gn ('k') | content/shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698