summaryrefslogtreecommitdiff
path: root/chromium/tools/android/md5sum/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/tools/android/md5sum/BUILD.gn')
-rw-r--r--chromium/tools/android/md5sum/BUILD.gn60
1 files changed, 35 insertions, 25 deletions
diff --git a/chromium/tools/android/md5sum/BUILD.gn b/chromium/tools/android/md5sum/BUILD.gn
index a02a7fbbf91..54f81693e0e 100644
--- a/chromium/tools/android/md5sum/BUILD.gn
+++ b/chromium/tools/android/md5sum/BUILD.gn
@@ -1,39 +1,49 @@
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+if (current_cpu == "arm" || current_cpu == "arm64") {
+ import("//build/config/arm.gni")
+}
-import("//build/config/android/config.gni")
-import("//build/symlink.gni")
+if (is_android) {
+ import("//build/config/android/config.gni")
+ import("//build/symlink.gni")
-group("md5sum") {
- data_deps = [
- ":md5sum_bin_host($default_toolchain)",
- ":md5sum_prepare_dist($default_toolchain)",
- ]
+ group("md5sum") {
+ data_deps = [
+ ":md5sum_bin_host($default_toolchain)",
+ ":md5sum_prepare_dist($default_toolchain)",
+ ]
+
+ # TODO(cjhopman): Remove once group data_deps are fixed.
+ deps = data_deps
+ }
- # TODO(cjhopman): Remove once group data_deps are fixed.
- deps = data_deps
+ if (current_toolchain == default_toolchain) {
+ import("//build/config/android/rules.gni")
+
+ create_native_executable_dist("md5sum_prepare_dist") {
+ dist_dir = "$root_build_dir/md5sum_dist"
+ binary = "$root_build_dir/md5sum_bin"
+ deps = [ ":md5sum_bin" ]
+ }
+
+ binary_symlink("md5sum_bin_host") {
+ binary_label = ":md5sum_bin($host_toolchain)"
+ output_name = "md5sum_bin_host"
+ }
+ }
+} else {
+ # We don't need all that stuff for other OSes.
+ group("md5sum") {
+ data_deps = []
+ }
}
executable("md5sum_bin") {
sources = [ "md5sum.cc" ]
deps = [
"//base",
- "//third_party/zlib/google:compression_utils",
+ "//third_party/zlib/google:compression_utils_portable",
]
}
-
-if (current_toolchain == default_toolchain) {
- import("//build/config/android/rules.gni")
-
- create_native_executable_dist("md5sum_prepare_dist") {
- dist_dir = "$root_build_dir/md5sum_dist"
- binary = "$root_build_dir/md5sum_bin"
- deps = [ ":md5sum_bin" ]
- }
-
- binary_symlink("md5sum_bin_host") {
- binary_label = ":md5sum_bin($host_toolchain)"
- output_name = "md5sum_bin_host"
- }
-}