| OLD | NEW |
| 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/locales.gni") | 6 import("//build/config/locales.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//chrome/chrome_repack_locales.gni") | 8 import("//chrome/chrome_repack_locales.gni") |
| 9 import("//chrome/version.gni") | 9 import("//chrome/version.gni") |
| 10 | 10 |
| 11 if (is_android) { |
| 12 import("//build/config/android/rules.gni") |
| 13 } |
| 14 |
| 11 if (!is_android) { | 15 if (!is_android) { |
| 12 | 16 |
| 13 # TODO(GYP) for Windows need to the the reorder-imports step which probably | 17 # TODO(GYP) for Windows need to the the reorder-imports step which probably |
| 14 # means adding another target and renaming this to chrome_initial like in GYP. | 18 # means adding another target and renaming this to chrome_initial like in GYP. |
| 15 executable("chrome") { | 19 executable("chrome") { |
| 16 # Because the sources list varies so significantly per-platform, generally | 20 # Because the sources list varies so significantly per-platform, generally |
| 17 # each platform lists its own files rather than relying on filtering or | 21 # each platform lists its own files rather than relying on filtering or |
| 18 # removing unused files. | 22 # removing unused files. |
| 19 sources = [ | 23 sources = [ |
| 20 "app/chrome_exe_resource.h", | 24 "app/chrome_exe_resource.h", |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 | 319 |
| 316 # TODO(GYP) if (is_chrome_branded) { | 320 # TODO(GYP) if (is_chrome_branded) { |
| 317 # ... copy default_apps from default_apps_list | 321 # ... copy default_apps from default_apps_list |
| 318 | 322 |
| 319 if (enable_hidpi) { | 323 if (enable_hidpi) { |
| 320 deps += [ ":repack_chrome_200_percent" ] | 324 deps += [ ":repack_chrome_200_percent" ] |
| 321 } | 325 } |
| 322 } | 326 } |
| 323 | 327 |
| 324 repack("packed_extra_resources") { | 328 repack("packed_extra_resources") { |
| 325 visibility = [ ":*" ] | 329 visibility = [ "./*" ] |
| 326 sources = [ | 330 sources = [ |
| 327 "$root_gen_dir/chrome/browser_resources.pak", | 331 "$root_gen_dir/chrome/browser_resources.pak", |
| 328 "$root_gen_dir/chrome/chrome_unscaled_resources.pak", | 332 "$root_gen_dir/chrome/chrome_unscaled_resources.pak", |
| 329 "$root_gen_dir/chrome/common_resources.pak", | 333 "$root_gen_dir/chrome/common_resources.pak", |
| 330 "$root_gen_dir/chrome/invalidations_resources.pak", | 334 "$root_gen_dir/chrome/invalidations_resources.pak", |
| 331 "$root_gen_dir/chrome/memory_internals_resources.pak", | 335 "$root_gen_dir/chrome/memory_internals_resources.pak", |
| 332 "$root_gen_dir/chrome/net_internals_resources.pak", | 336 "$root_gen_dir/chrome/net_internals_resources.pak", |
| 333 "$root_gen_dir/chrome/password_manager_internals_resources.pak", | 337 "$root_gen_dir/chrome/password_manager_internals_resources.pak", |
| 334 "$root_gen_dir/chrome/signin_internals_resources.pak", | 338 "$root_gen_dir/chrome/signin_internals_resources.pak", |
| 335 "$root_gen_dir/chrome/sync_internals_resources.pak", | 339 "$root_gen_dir/chrome/sync_internals_resources.pak", |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 | 519 |
| 516 # GYP version: chrome/chrome_resources.gyp:chrome_strings | 520 # GYP version: chrome/chrome_resources.gyp:chrome_strings |
| 517 group("strings") { | 521 group("strings") { |
| 518 deps = [ | 522 deps = [ |
| 519 "//chrome/app:chromium_strings", | 523 "//chrome/app:chromium_strings", |
| 520 "//chrome/app:generated_resources", | 524 "//chrome/app:generated_resources", |
| 521 "//chrome/app:google_chrome_strings", | 525 "//chrome/app:google_chrome_strings", |
| 522 "//chrome/app/resources:locale_settings", | 526 "//chrome/app/resources:locale_settings", |
| 523 ] | 527 ] |
| 524 } | 528 } |
| 529 |
| 530 if (is_android) { |
| 531 |
| 532 # GYP: //chrome/chrome.gyp:page_info_connection_type_java |
| 533 java_cpp_enum("page_info_connection_type_javagen") { |
| 534 sources = [ |
| 535 "browser/ui/android/website_settings_popup_android.h" |
| 536 ] |
| 537 outputs = [ |
| 538 "org/chromium/chrome/browser/PageInfoConnectionType.java", |
| 539 ] |
| 540 } |
| 541 |
| 542 # GYP: //chrome/chrome_android.gypi:chrome_android_core |
| 543 static_library("chrome_android_core") { |
| 544 sources = [ |
| 545 "app/android/chrome_android_initializer.cc", |
| 546 "app/android/chrome_android_initializer.h", |
| 547 "app/android/chrome_main_delegate_android.cc", |
| 548 "app/android/chrome_main_delegate_android.h", |
| 549 "app/chrome_main_delegate.cc", |
| 550 "app/chrome_main_delegate.h", |
| 551 ] |
| 552 |
| 553 include_dirs = [ |
| 554 android_ndk_include_dir, |
| 555 ] |
| 556 |
| 557 libs = [ |
| 558 "android", |
| 559 "jnigraphics", |
| 560 ] |
| 561 |
| 562 deps = [ |
| 563 "//chrome/browser", |
| 564 "//chrome/browser/ui", |
| 565 "//chrome/plugin", |
| 566 "//chrome/renderer", |
| 567 "//chrome/utility", |
| 568 "//components/enhanced_bookmarks", |
| 569 "//content/public/app:browser", |
| 570 ] |
| 571 } |
| 572 |
| 573 } |
| OLD | NEW |