BUILD.gn 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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
  3. # found in the LICENSE file.
  4. if (current_cpu == "arm" || current_cpu == "arm64") {
  5. import("//build/config/arm.gni")
  6. }
  7. if (is_android) {
  8. import("//build/config/android/config.gni")
  9. import("//build/symlink.gni")
  10. group("md5sum") {
  11. data_deps = [
  12. ":md5sum_bin_host($default_toolchain)",
  13. ":md5sum_prepare_dist($default_toolchain)",
  14. ]
  15. # TODO(cjhopman): Remove once group data_deps are fixed.
  16. deps = data_deps
  17. }
  18. if (current_toolchain == default_toolchain) {
  19. import("//build/config/android/rules.gni")
  20. create_native_executable_dist("md5sum_prepare_dist") {
  21. dist_dir = "$root_build_dir/md5sum_dist"
  22. binary = "$root_build_dir/md5sum_bin"
  23. deps = [ ":md5sum_bin" ]
  24. }
  25. binary_symlink("md5sum_bin_host") {
  26. binary_label = ":md5sum_bin($host_toolchain)"
  27. output_name = "md5sum_bin_host"
  28. }
  29. }
  30. } else {
  31. # We don't need all that stuff for other OSes.
  32. group("md5sum") {
  33. data_deps = []
  34. }
  35. }
  36. executable("md5sum_bin") {
  37. sources = [ "md5sum.cc" ]
  38. deps = [
  39. "//base",
  40. "//third_party/zlib/google:compression_utils_portable",
  41. ]
  42. }