Index: BUILD.gn |
diff --git a/BUILD.gn b/BUILD.gn |
index 4e8e540349bd175ff37b22ce15d71c3ba66a8067..cccce992a0060eff7aa4e7124237a0be3cee25bd 100644 |
--- a/BUILD.gn |
+++ b/BUILD.gn |
@@ -492,65 +492,8 @@ component("icuuc") { |
} |
} |
-# TODO(GYP) support use_system_icu. |
-if (icu_use_data_file) { |
- if (is_ios) { |
- # TODO(GYP): Support mac resource bundle shown below. |
- # 'link_settings': { |
- # 'mac_bundle_resources': [ |
- # 'source/data/in/icudtl.dat', |
- # ], |
- # } |
- } else { |
- copy("icudata") { |
- if (is_android) { |
- sources = [ |
- "android/icudtl.dat", |
- ] |
- } else { |
- sources = [ |
- "source/data/in/icudtl.dat", |
- ] |
- } |
- |
- outputs = [ |
- "$root_out_dir/icudtl.dat", |
- ] |
- } |
- } |
-} else { |
- if (is_win) { |
- # On Windows the target DLL is pre-built so just use a copy rule. |
- copy("icudata") { |
- sources = [ |
- "windows/icudt.dll", |
- ] |
- outputs = [ |
- "$root_out_dir/icudt.dll", |
- ] |
- } |
- } else { |
- source_set("icudata") { |
- # These are hand-generated, but will do for now. |
- # |
- # TODO(GYP): Gyp has considerations here for QNX and for the host toolchain |
- # that have not been ported over. |
- if (is_linux) { |
- sources = [ |
- "linux/icudtl_dat.S", |
- ] |
- } else if (is_mac) { |
- sources = [ |
- "mac/icudtl_dat.S", |
- ] |
- } else if (is_android) { |
- sources = [ |
- "android/icudtl_dat.S", |
- ] |
- } else { |
- assert(false, "No icu data for this platform") |
- } |
- defines = [ "U_HIDE_DATA_SYMBOL" ] |
- } |
- } |
+group("icudata") { |
+ deps = [ |
+ "gn_data_build_system:icu_data" |
+ ] |
} |