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/app/theme/chrome_unscaled_resources.pak", | 332 "$root_gen_dir/chrome/app/theme/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/browser/resources/invalidations_resources.pak", | 334 "$root_gen_dir/chrome/browser/resources/invalidations_resources.pak", |
331 "$root_gen_dir/chrome/browser/resources/memory_internals_resources.pak", | 335 "$root_gen_dir/chrome/browser/resources/memory_internals_resources.pak", |
332 "$root_gen_dir/chrome/browser/resources/net_internals_resources.pak", | 336 "$root_gen_dir/chrome/browser/resources/net_internals_resources.pak", |
333 "$root_gen_dir/chrome/browser/resources/password_manager_internals_resources .pak", | 337 "$root_gen_dir/chrome/browser/resources/password_manager_internals_resources .pak", |
334 "$root_gen_dir/chrome/browser/resources/signin_internals_resources.pak", | 338 "$root_gen_dir/chrome/browser/resources/signin_internals_resources.pak", |
335 "$root_gen_dir/chrome/browser/resources/sync_internals_resources.pak", | 339 "$root_gen_dir/chrome/browser/resources/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_android.gypi:chrome_android_core | |
533 static_library("chrome_android_core") { | |
534 deps = [ | |
brettw
2014/10/09 17:05:31
Ordering should be sources, includes/libs, deps.
cjhopman
2014/10/10 01:10:09
Done.
| |
535 "//chrome/browser", | |
536 "//chrome/browser/ui", | |
537 "//chrome/plugin", | |
538 "//chrome/renderer", | |
539 "//chrome/utility", | |
540 "//components/enhanced_bookmarks", | |
541 "//content/public/app:browser", | |
542 ] | |
543 | |
544 include_dirs = [ | |
545 android_ndk_include_dir, | |
546 ] | |
547 | |
548 sources = [ | |
549 "app/android/chrome_android_initializer.cc", | |
550 "app/android/chrome_android_initializer.h", | |
551 "app/android/chrome_main_delegate_android.cc", | |
552 "app/android/chrome_main_delegate_android.h", | |
553 "app/chrome_main_delegate.cc", | |
554 "app/chrome_main_delegate.h", | |
555 ] | |
556 | |
557 libs = [ | |
558 "android", | |
559 "jnigraphics", | |
560 ] | |
561 } | |
562 | |
563 } | |
OLD | NEW |