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

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

Issue 571863002: GN: Get //chrome/* mostly working on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « chrome/BUILD.gn ('k') | chrome/browser/ui/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("//components/nacl/nacl_defines.gni") 8 import("//components/nacl/nacl_defines.gni")
9 import("//tools/grit/grit_rule.gni") 9 # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which
10 # produces a conflict for the "grit" template so we have to only include one.
11 if (is_android) {
12 import("//build/config/android/rules.gni")
13 } else {
14 import("//tools/grit/grit_rule.gni")
15 }
10 16
11 about_credits_file = "$target_gen_dir/about_credits.html" 17 about_credits_file = "$target_gen_dir/about_credits.html"
12 additional_modules_list_file = 18 additional_modules_list_file =
13 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" 19 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
14 20
15 gypi_values = exec_script( 21 gypi_values = exec_script(
16 "//build/gypi_to_gn.py", 22 "//build/gypi_to_gn.py",
17 [ rebase_path("../chrome_browser.gypi") ], 23 [ rebase_path("../chrome_browser.gypi") ],
18 "scope", 24 "scope",
19 [ "../chrome_browser.gypi" ]) 25 [ "../chrome_browser.gypi" ])
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 "//components/metrics:gpu", 68 "//components/metrics:gpu",
63 "//components/metrics:net", 69 "//components/metrics:net",
64 "//components/metrics/proto:proto", 70 "//components/metrics/proto:proto",
65 "//components/navigation_metrics", 71 "//components/navigation_metrics",
66 "//components/network_time", 72 "//components/network_time",
67 "//components/omaha_query_params", 73 "//components/omaha_query_params",
68 "//components/omnibox", 74 "//components/omnibox",
69 "//components/os_crypt", 75 "//components/os_crypt",
70 "//components/password_manager/core/browser", 76 "//components/password_manager/core/browser",
71 "//components/password_manager/core/common", 77 "//components/password_manager/core/common",
72 "//components/pdf/browser",
73 "//components/policy:policy_component", 78 "//components/policy:policy_component",
74 "//components/precache/core", 79 "//components/precache/core",
75 "//components/query_parser", 80 "//components/query_parser",
76 "//components/rappor", 81 "//components/rappor",
77 "//components/renderer_context_menu", 82 "//components/renderer_context_menu",
78 "//components/search", 83 "//components/search",
79 "//components/search_engines", 84 "//components/search_engines",
80 "//components/search_provider_logos", 85 "//components/search_provider_logos",
81 "//components/signin/core/browser", 86 "//components/signin/core/browser",
82 "//components/startup_metric_utils", 87 "//components/startup_metric_utils",
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 deps += [ "//third_party/hunspell" ] 261 deps += [ "//third_party/hunspell" ]
257 } 262 }
258 if (enable_nacl) { 263 if (enable_nacl) {
259 sources += rebase_path(gypi_values.chrome_browser_nacl_sources, 264 sources += rebase_path(gypi_values.chrome_browser_nacl_sources,
260 ".", "//chrome") 265 ".", "//chrome")
261 #deps += [ "//components/nacl:nacl_browser" ] TODO(GYP) 266 #deps += [ "//components/nacl:nacl_browser" ] TODO(GYP)
262 } 267 }
263 # ["debug_devtools==1", { TODO(GYP) 268 # ["debug_devtools==1", { TODO(GYP)
264 # "defines": [ 269 # "defines": [
265 # "DEBUG_DEVTOOLS=1", 270 # "DEBUG_DEVTOOLS=1",
266 # ], 271 # }],
267 if (enable_configuration_policy) { 272 if (enable_configuration_policy) {
268 sources += rebase_path( 273 sources += rebase_path(
269 gypi_values.chrome_browser_policy_shared_with_ios_sources, 274 gypi_values.chrome_browser_policy_shared_with_ios_sources,
270 ".", "//chrome") 275 ".", "//chrome")
271 deps += [ 276 deps += [
272 "//components/policy", 277 "//components/policy",
273 "//components/policy/proto", 278 "//components/policy/proto",
274 ] 279 ]
275 if (!is_ios) { 280 if (!is_ios) {
276 sources += rebase_path( 281 sources += rebase_path(
277 gypi_values.chrome_browser_policy_non_ios_sources, 282 gypi_values.chrome_browser_policy_non_ios_sources,
278 ".", "//chrome") 283 ".", "//chrome")
279 } 284 }
280 if (!is_chromeos) { 285 if (!is_chromeos) {
281 sources += rebase_path( 286 sources += rebase_path(
282 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources , 287 gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources ,
283 ".", "//chrome") 288 ".", "//chrome")
284 } 289 }
285 if (is_win || is_mac || is_desktop_linux) { 290 if (is_win || is_mac || is_desktop_linux) {
286 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources, 291 sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources,
287 ".", "//chrome") 292 ".", "//chrome")
288 } 293 }
289 if (is_android || is_ios) { 294 if (!is_android && !is_ios) { # Non-mobile
290 sources += rebase_path(gypi_values.chrome_browser_mobile_sources,
291 ".", "//chrome")
292 } else { # Non-mobile
293 deps += [ 295 deps += [
294 "//chrome/browser/policy:path_parser", 296 "//chrome/browser/policy:path_parser",
295 ] 297 ]
296 } 298 }
297 } else { 299 } else {
298 # Configuration policy disabled. 300 # Configuration policy disabled.
299 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources, 301 sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources,
300 ".", "//chrome") 302 ".", "//chrome")
301 } 303 }
302 304
303 if (enable_plugins) { 305 if (enable_plugins) {
304 sources += rebase_path(gypi_values.chrome_browser_plugins_sources, 306 sources += rebase_path(gypi_values.chrome_browser_plugins_sources,
305 ".", "//chrome") 307 ".", "//chrome")
306 deps += [ 308 deps += [
309 "//components/pdf/browser",
307 "//ppapi:ppapi_ipc", 310 "//ppapi:ppapi_ipc",
308 "//third_party/adobe/flash:flapper_version_h", 311 "//third_party/adobe/flash:flapper_version_h",
309 ] 312 ]
310 } 313 }
311 if (safe_browsing_mode != 0) { 314 if (safe_browsing_mode != 0) {
312 sources += rebase_path( 315 sources += rebase_path(
313 gypi_values.chrome_browser_basic_safe_browsing_sources, 316 gypi_values.chrome_browser_basic_safe_browsing_sources,
314 ".", "//chrome") 317 ".", "//chrome")
315 deps += [ 318 deps += [
316 "//chrome/browser/safe_browsing:chunk_proto", 319 "//chrome/browser/safe_browsing:chunk_proto",
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 deps += [ 455 deps += [
453 "//device/core", 456 "//device/core",
454 "//device/usb", 457 "//device/usb",
455 ] 458 ]
456 } 459 }
457 460
458 if (is_android) { 461 if (is_android) {
459 sources += rebase_path(gypi_values.chrome_browser_android_sources, 462 sources += rebase_path(gypi_values.chrome_browser_android_sources,
460 ".", "//chrome") 463 ".", "//chrome")
461 deps += [ 464 deps += [
465 ":jni_headers",
462 "//components/cdm/browser", 466 "//components/cdm/browser",
463 #"../components/components.gyp:web_contents_delegate_android", TODO(GYP) 467 #"../components/components.gyp:web_contents_delegate_android", TODO(GYP)
464 #"chrome_browser_jni_headers", TODO(GYP)
465 ] 468 ]
466 deps -= [ 469 deps -= [
467 "//third_party/libaddressinput", 470 "//third_party/libaddressinput",
468 "//components/feedback", 471 "//components/feedback",
469 "//components/storage_monitor", 472 "//components/storage_monitor",
470 "//components/web_modal", 473 "//components/web_modal",
471 ] 474 ]
472 } else { 475 } else {
473 sources += rebase_path(gypi_values.chrome_browser_non_android_sources, 476 sources += rebase_path(gypi_values.chrome_browser_non_android_sources,
474 ".", "//chrome") 477 ".", "//chrome")
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 if (is_win || is_mac) { 612 if (is_win || is_mac) {
610 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows 613 # TODO(brettw) as of this writing wifi bootstrapping is set on Windows
611 # and Mac, so this test is meaningless. Can we merge these lists? 614 # and Mac, so this test is meaningless. Can we merge these lists?
612 sources += rebase_path( 615 sources += rebase_path(
613 gypi_values.chrome_browser_win_mac_wifi_bootstrapping_sources, 616 gypi_values.chrome_browser_win_mac_wifi_bootstrapping_sources,
614 ".", "//chrome") 617 ".", "//chrome")
615 } 618 }
616 } 619 }
617 } 620 }
618 621
622 if (is_android) {
623 # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers
624 generate_jni("jni_headers") {
625 sources = rebase_path(
626 gypi_values.chrome_browser_jni_sources, ".", "//chrome")
627 jni_package = "chrome"
628 }
629 }
630
619 # GYP version: chrome/chrome_resources.gyp:chrome_resources 631 # GYP version: chrome/chrome_resources.gyp:chrome_resources
620 # (generate_browser_resources action) 632 # (generate_browser_resources action)
621 grit("resources") { 633 grit("resources") {
622 source = "browser_resources.grd" 634 source = "browser_resources.grd"
623 output_dir = "$root_gen_dir/chrome" 635 output_dir = "$root_gen_dir/chrome"
624 outputs = [ 636 outputs = [
625 "grit/browser_resources.h", 637 "grit/browser_resources.h",
626 "browser_resources.pak", 638 "browser_resources.pak",
627 ] 639 ]
628 640
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 ] 786 ]
775 787
776 forward_dependent_configs_from = [ 788 forward_dependent_configs_from = [
777 ":browser", 789 ":browser",
778 "//chrome/browser/ui:test_support", 790 "//chrome/browser/ui:test_support",
779 ] 791 ]
780 792
781 if (!is_ios) { 793 if (!is_ios) {
782 deps += [ 794 deps += [
783 "//components/sessions:test_support", 795 "//components/sessions:test_support",
796 "//google_apis:test_support",
797 ]
798 }
799
800 if (enable_extensions) {
801 deps += [
784 "//extensions:test_support", 802 "//extensions:test_support",
785 "//google_apis:test_support",
786 ] 803 ]
787 } 804 }
788 805
789 if (is_chromeos) { 806 if (is_chromeos) {
790 sources += [ 807 sources += [
791 "chromeos/app_mode/fake_cws.cc", 808 "chromeos/app_mode/fake_cws.cc",
792 "chromeos/app_mode/fake_cws.h", 809 "chromeos/app_mode/fake_cws.h",
793 "chromeos/file_manager/fake_disk_mount_manager.cc", 810 "chromeos/file_manager/fake_disk_mount_manager.cc",
794 "chromeos/file_manager/fake_disk_mount_manager.h", 811 "chromeos/file_manager/fake_disk_mount_manager.h",
795 "chromeos/input_method/mock_candidate_window_controller.cc", 812 "chromeos/input_method/mock_candidate_window_controller.cc",
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 ] 924 ]
908 } 925 }
909 926
910 if (enable_wifi_bootstrapping) { 927 if (enable_wifi_bootstrapping) {
911 sources += [ 928 sources += [
912 "local_discovery/wifi/mock_wifi_manager.cc", 929 "local_discovery/wifi/mock_wifi_manager.cc",
913 "local_discovery/wifi/mock_wifi_manager.h", 930 "local_discovery/wifi/mock_wifi_manager.h",
914 ] 931 ]
915 } 932 }
916 } 933 }
OLDNEW
« no previous file with comments | « chrome/BUILD.gn ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698