12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- # 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")
- }
- 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)",
- ]
- # 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_portable",
- ]
- }
|