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

Side by Side Diff: BUILD.gn

Issue 2119023002: [Android] Guard android_assets usage with enable_java_templates. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | 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("//third_party/icu/config.gni") 5 import("//third_party/icu/config.gni")
6 6
7 if (is_android) { 7 if (is_android) {
8 import("//build/config/android/rules.gni") 8 import("//build/config/android/rules.gni")
9 } 9 }
10 10
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 configs += [ ":icu_code" ] 552 configs += [ ":icu_code" ]
553 553
554 public_configs = [ ":icu_config" ] 554 public_configs = [ ":icu_config" ]
555 555
556 if (is_win || icu_use_data_file) { 556 if (is_win || icu_use_data_file) {
557 sources += [ "source/stubdata/stubdata.c" ] 557 sources += [ "source/stubdata/stubdata.c" ]
558 defines += [ "U_ICUDATAENTRY_IN_COMMON" ] 558 defines += [ "U_ICUDATAENTRY_IN_COMMON" ]
559 } 559 }
560 } 560 }
561 561
562 if (is_android) { 562 if (is_android && enable_java_templates) {
563 android_assets("icu_assets") { 563 android_assets("icu_assets") {
564 if (icu_use_data_file) { 564 if (icu_use_data_file) {
565 sources = [ "$root_out_dir/icudtl.dat" ] 565 sources = [ "$root_out_dir/icudtl.dat" ]
566 deps = [ ":icudata" ] 566 deps = [ ":icudata" ]
567 disable_compression = true 567 disable_compression = true
568 } 568 }
569 } 569 }
570 } 570 }
571 571
572 # TODO(GYP) support use_system_icu. 572 # TODO(GYP) support use_system_icu.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 sources = [ 630 sources = [
631 "android/icudtl_dat.S", 631 "android/icudtl_dat.S",
632 ] 632 ]
633 } else { 633 } else {
634 assert(false, "No icu data for this platform") 634 assert(false, "No icu data for this platform")
635 } 635 }
636 defines = [ "U_HIDE_DATA_SYMBOL" ] 636 defines = [ "U_HIDE_DATA_SYMBOL" ]
637 } 637 }
638 } 638 }
639 } 639 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698