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

Side by Side Diff: chrome/browser/BUILD.gn

Issue 361253004: Add compiling chrome/browser to GN build on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/app/resources/BUILD.gn ('k') | chrome/browser/history/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/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//tools/grit/grit_rule.gni") 8 import("//tools/grit/grit_rule.gni")
9 9
10 about_credits_file = "$target_gen_dir/about_credits.html" 10 about_credits_file = "$target_gen_dir/about_credits.html"
11 additional_modules_list_file = 11 additional_modules_list_file =
12 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" 12 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
13 13
14 # TODO(brettw) uncomment this when this target compiles.
15 if (false) {
16
17 gypi_values = exec_script( 14 gypi_values = exec_script(
18 "//build/gypi_to_gn.py", 15 "//build/gypi_to_gn.py",
19 [ rebase_path("../chrome_browser.gypi") ], 16 [ rebase_path("../chrome_browser.gypi") ],
20 "scope", 17 "scope",
21 [ "../chrome_browser.gypi" ]) 18 [ "../chrome_browser.gypi" ])
22 19
23 static_library("browser") { 20 static_library("browser") {
24 configs += [ "//build/config/compiler:wexit_time_destructors" ] 21 configs += [ "//build/config/compiler:wexit_time_destructors" ]
25 defines = [] 22 defines = []
26 sources = [] 23 sources = []
27 libs = [] 24 libs = []
28 ldflags = [] 25 ldflags = []
29 26
30 # iOS/non-iOS shared deps. New dependencies should generally be added in the 27 # iOS/non-iOS shared deps. New dependencies should generally be added in the
31 # non-iOS deps below. 28 # non-iOS deps below.
32 deps = [ 29 deps = [
33 "//base/allocator", 30 "//base/allocator",
34 "//chrome:extra_resources", 31 "//chrome:extra_resources",
35 "//chrome:resources", 32 "//chrome:resources",
36 "//chrome:strings", 33 "//chrome:strings",
37 "//chrome/app:generated_resources_map", 34 "//chrome/app:generated_resources_map",
35 "//chrome/app/resources:platform_locale_settings",
38 "//chrome/app/theme:theme_resources", 36 "//chrome/app/theme:theme_resources",
37 "//chrome/browser/history:in_memory_url_index_cache_proto",
38 "//chrome/browser/metrics/variations/proto:proto",
39 "//chrome/browser/net:cert_logger_proto",
39 "//chrome/browser/net:probe_message_proto", 40 "//chrome/browser/net:probe_message_proto",
40 "//chrome/browser/search/suggestions/proto", 41 "//chrome/browser/search/suggestions/proto",
41 "//chrome/common", 42 "//chrome/common",
42 "//chrome/common/net", 43 "//chrome/common/net",
43 "//components/autofill/core/browser", 44 "//components/autofill/core/browser",
44 "//components/cloud_devices/common", 45 "//components/cloud_devices/common",
45 "//components/metrics:net", 46 "//components/metrics:net",
46 "//components/navigation_metrics", 47 "//components/navigation_metrics",
47 "//components/os_crypt", 48 "//components/os_crypt",
48 "//components/policy:policy_component", 49 "//components/policy:policy_component",
(...skipping 18 matching lines...) Expand all
67 "//third_party/zlib:minizip", 68 "//third_party/zlib:minizip",
68 "//third_party/zlib:zip", 69 "//third_party/zlib:zip",
69 "//ui/base", 70 "//ui/base",
70 "//ui/events", 71 "//ui/events",
71 "//ui/gfx", 72 "//ui/gfx",
72 "//ui/gfx/geometry", 73 "//ui/gfx/geometry",
73 "//ui/strings", 74 "//ui/strings",
74 "//ui/resources", 75 "//ui/resources",
75 # TODO(GYP) 76 # TODO(GYP)
76 #"browser_ui", 77 #"browser_ui",
77 #"cert_logger_proto",
78 #"chrome_resources.gyp:platform_locale_settings",
79 #"in_memory_url_index_cache_proto",
80 #"../components/components.gyp:autocomplete", 78 #"../components/components.gyp:autocomplete",
81 #"../components/components.gyp:bookmarks_browser", 79 #"../components/components.gyp:bookmarks_browser",
82 #"../components/components.gyp:captive_portal", 80 #"../components/components.gyp:captive_portal",
83 #"../components/components.gyp:data_reduction_proxy_browser", 81 #"../components/components.gyp:data_reduction_proxy_browser",
84 #"../components/components.gyp:domain_reliability", 82 #"../components/components.gyp:domain_reliability",
85 #"../components/components.gyp:favicon_base", 83 #"../components/components.gyp:favicon_base",
86 #"../components/components.gyp:favicon_core", 84 #"../components/components.gyp:favicon_core",
87 #"../components/components.gyp:feedback_component", 85 #"../components/components.gyp:feedback_component",
88 #"../components/components.gyp:gcm_driver", 86 #"../components/components.gyp:gcm_driver",
89 #"../components/components.gyp:google_core_browser", 87 #"../components/components.gyp:google_core_browser",
(...skipping 11 matching lines...) Expand all
101 #"../components/components.gyp:search_provider_logos", 99 #"../components/components.gyp:search_provider_logos",
102 #"../components/components.gyp:signin_core_browser", 100 #"../components/components.gyp:signin_core_browser",
103 #"../components/components.gyp:startup_metric_utils", 101 #"../components/components.gyp:startup_metric_utils",
104 #"../components/components.gyp:sync_driver", 102 #"../components/components.gyp:sync_driver",
105 #"../components/components.gyp:url_fixer", 103 #"../components/components.gyp:url_fixer",
106 #"../components/components.gyp:webdata_common", 104 #"../components/components.gyp:webdata_common",
107 #"../jingle/jingle.gyp:notifier", 105 #"../jingle/jingle.gyp:notifier",
108 #"../third_party/libjingle/libjingle.gyp:libjingle", 106 #"../third_party/libjingle/libjingle.gyp:libjingle",
109 #"../ui/message_center/message_center.gyp:message_center", 107 #"../ui/message_center/message_center.gyp:message_center",
110 #"../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs", 108 #"../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs",
111 # Note: variations dependency from GYP build is omitted because we pick it
112 # up via chrome/common, and GN doesn't have the GYP dependency bug that
113 # made it necessary to include here.
114 ] 109 ]
115 110
116 forward_dependent_configs_from = [ 111 forward_dependent_configs_from = [
117 #"../components/components.gyp:autofill_core_browser", TODO(GYP) 112 #"../components/components.gyp:autofill_core_browser", TODO(GYP)
118 "//content/public/browser", 113 "//content/public/browser",
119 "//sql", 114 "//sql",
120 "//sync", 115 "//sync",
121 ] 116 ]
122 117
123 if (!is_ios) { 118 if (!is_ios) {
(...skipping 11 matching lines...) Expand all
135 130
136 # TODO(GYP) Also add these nacl_defines to direct dependents. 131 # TODO(GYP) Also add these nacl_defines to direct dependents.
137 #defines = nacl_defines 132 #defines = nacl_defines
138 133
139 # TODO(GYP) remove this when the real webrtc target is used below. 134 # TODO(GYP) remove this when the real webrtc target is used below.
140 configs += [ "//content:webrtc_stub_config" ] 135 configs += [ "//content:webrtc_stub_config" ]
141 136
142 deps += [ 137 deps += [
143 "//cc", 138 "//cc",
144 "//chrome/browser/performance_monitor", 139 "//chrome/browser/performance_monitor",
140 "//chrome/browser/sync_file_system:sync_file_system_proto",
141 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_pr oto",
145 "//chrome/common/extensions/api:api", 142 "//chrome/common/extensions/api:api",
146 "//components/keyed_service/content", 143 "//components/keyed_service/content",
147 "//components/url_matcher", 144 "//components/url_matcher",
148 "//components/visitedlink/browser", 145 "//components/visitedlink/browser",
149 "//components/visitedlink/common", 146 "//components/visitedlink/common",
150 "//mojo/environment:chromium", 147 "//mojo/environment:chromium",
151 "//mojo/public/cpp/bindings", 148 "//mojo/public/cpp/bindings",
152 "//mojo/public/js/bindings", 149 "//mojo/public/js/bindings",
153 "//mojo/system", 150 "//mojo/system",
154 "//net:net_with_v8", 151 "//net:net_with_v8",
(...skipping 11 matching lines...) Expand all
166 "//v8", 163 "//v8",
167 "//webkit:resources", 164 "//webkit:resources",
168 "//webkit/browser:storage", 165 "//webkit/browser:storage",
169 "//webkit/common", 166 "//webkit/common",
170 "//webkit/common:storage", 167 "//webkit/common:storage",
171 # TODO(GYP) 168 # TODO(GYP)
172 #"apps", 169 #"apps",
173 #"browser_extensions", 170 #"browser_extensions",
174 #"debugger", 171 #"debugger",
175 #"installer_util", 172 #"installer_util",
176 #"sync_file_system_drive_proto",
177 #"sync_file_system_proto",
178 #"../components/components.gyp:autofill_content_browser", 173 #"../components/components.gyp:autofill_content_browser",
179 #"../components/components.gyp:dom_distiller_content", 174 #"../components/components.gyp:dom_distiller_content",
180 #"../components/components.gyp:navigation_interception", 175 #"../components/components.gyp:navigation_interception",
181 #"../components/components.gyp:password_manager_content_browser", 176 #"../components/components.gyp:password_manager_content_browser",
182 #"../components/components.gyp:precache_content", 177 #"../components/components.gyp:precache_content",
183 #"../components/components.gyp:sessions", 178 #"../components/components.gyp:sessions",
184 #"../components/components.gyp:storage_monitor", 179 #"../components/components.gyp:storage_monitor",
185 #"../components/components.gyp:translate_content_browser", 180 #"../components/components.gyp:translate_content_browser",
186 #"../components/components.gyp:usb_service", 181 #"../components/components.gyp:usb_service",
187 #"../components/components.gyp:web_modal", 182 #"../components/components.gyp:web_modal",
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 deps += [ 358 deps += [
364 "//ui/aura", 359 "//ui/aura",
365 "//ui/compositor", 360 "//ui/compositor",
366 "//ui/keyboard", 361 "//ui/keyboard",
367 ] 362 ]
368 } 363 }
369 if (ui_compositor_image_transport) { 364 if (ui_compositor_image_transport) {
370 deps += [ "//ui/gl" ] 365 deps += [ "//ui/gl" ]
371 } 366 }
372 367
368 if (use_ash) {
369 sources += rebase_path(gypi_values.chrome_browser_ash_sources,
370 ".", "//chrome")
371 }
372
373 if (use_x11) { 373 if (use_x11) {
374 sources += rebase_path(gypi_values.chrome_browser_x11_sources, 374 sources += rebase_path(gypi_values.chrome_browser_x11_sources,
375 ".", "//chrome") 375 ".", "//chrome")
376 if (!is_chromeos) { 376 if (!is_chromeos) {
377 configs += [ "//build/config/linux:xscrnsaver" ] 377 configs += [ "//build/config/linux:xscrnsaver" ]
378 } 378 }
379 } 379 }
380 if (is_posix && !is_mac && !is_ios) { 380 if (is_posix && !is_mac && !is_ios) {
381 sources += [ 381 sources += [
382 "//chrome/app/chrome_breakpad_client.cc", 382 "//chrome/app/chrome_breakpad_client.cc",
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 if (is_win || is_mac) { 602 if (is_win || is_mac) {
603 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows 603 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
604 # and Mac, so this test is meaningless. Can we merge these lists? 604 # and Mac, so this test is meaningless. Can we merge these lists?
605 sources += rebase_path( 605 sources += rebase_path(
606 gypi_values.chrome_browser_win_mac_wifi_bootstrapping_sources, 606 gypi_values.chrome_browser_win_mac_wifi_bootstrapping_sources,
607 ".", "//chrome") 607 ".", "//chrome")
608 } 608 }
609 } 609 }
610 } 610 }
611 611
612 } # comment out chrome/browser
613
614 # GYP version: chrome/chrome_resources.gyp:chrome_resources 612 # GYP version: chrome/chrome_resources.gyp:chrome_resources
615 # (generate_browser_resources action) 613 # (generate_browser_resources action)
616 grit("resources") { 614 grit("resources") {
617 source = "browser_resources.grd" 615 source = "browser_resources.grd"
618 616
619 omnibox_mojom_file = "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mo jom.js" 617 omnibox_mojom_file = "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mo jom.js"
620 618
621 grit_flags = [ 619 grit_flags = [
622 "-E", "about_credits_file=" + 620 "-E", "about_credits_file=" +
623 rebase_path(about_credits_file, root_build_dir), 621 rebase_path(about_credits_file, root_build_dir),
(...skipping 30 matching lines...) Expand all
654 # TODO(GYP) write internal action 652 # TODO(GYP) write internal action
655 if (false) { #if (is_chrome_branded) { 653 if (false) { #if (is_chrome_branded) {
656 action("chrome_internal_resources_gen") { 654 action("chrome_internal_resources_gen") {
657 # TODO(GYP) 655 # TODO(GYP)
658 } 656 }
659 } else { 657 } else {
660 group("chrome_internal_resources_gen") { 658 group("chrome_internal_resources_gen") {
661 # Empty placeholder. 659 # Empty placeholder.
662 } 660 }
663 } 661 }
OLDNEW
« no previous file with comments | « chrome/app/resources/BUILD.gn ('k') | chrome/browser/history/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698