blob: 54f81693e0e3eb971cb99cd4d390fe133be8f212 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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")
}
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",
]
}
|