Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(456)

Side by Side Diff: tools/android/md5sum/BUILD.gn

Issue 1233313003: GN (android): Fix md5sum_bin_host not working for component builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: improve comment Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/symlink.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum 5 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum
6 group("md5sum") { 6 group("md5sum") {
7 datadeps = [ 7 datadeps = [
8 ":md5sum_bin($host_toolchain)",
9 ":md5sum_bin($default_toolchain)",
10 ":md5sum_prepare_dist($default_toolchain)", 8 ":md5sum_prepare_dist($default_toolchain)",
11 ":md5sum_copy_host($host_toolchain)", 9 ":md5sum_copy_host($host_toolchain)",
12 ] 10 ]
13 11
14 # TODO(cjhopman): Remove once group datadeps are fixed. 12 # TODO(cjhopman): Remove once group datadeps are fixed.
15 deps = datadeps 13 deps = datadeps
16 } 14 }
17 15
18 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_device (and md5sum_bin_host) 16 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_device (and md5sum_bin_host)
19 executable("md5sum_bin") { 17 executable("md5sum_bin") {
(...skipping 18 matching lines...) Expand all
38 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_stripped_device_bin 36 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_stripped_device_bin
39 create_native_executable_dist("md5sum_prepare_dist") { 37 create_native_executable_dist("md5sum_prepare_dist") {
40 dist_dir = "$root_build_dir/md5sum_dist" 38 dist_dir = "$root_build_dir/md5sum_dist"
41 binary = "$root_build_dir/exe.stripped/md5sum_bin" 39 binary = "$root_build_dir/exe.stripped/md5sum_bin"
42 deps = [ 40 deps = [
43 ":md5sum_bin", 41 ":md5sum_bin",
44 ] 42 ]
45 } 43 }
46 } else { 44 } else {
47 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_host 45 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_host
48 copy("md5sum_copy_host") { 46 action("md5sum_copy_host") {
47 # Symlink rather than copy. When copied and using a component build, it
48 # fails to find libbase.so (since it's actually at clang_x64/libbase.so).
49 script = "//build/symlink.py"
50 _src = "$root_out_dir/md5sum_bin"
51 _target = "$root_build_dir/md5sum_bin_host"
49 sources = [ 52 sources = [
50 "$root_out_dir/md5sum_bin", 53 _src,
51 ] 54 ]
52 outputs = [ 55 outputs = [
53 "$root_build_dir/md5sum_bin_host", 56 _target,
54 ] 57 ]
55 deps = [ 58 deps = [
56 ":md5sum_bin", 59 ":md5sum_bin",
57 ] 60 ]
61 args = [
62 "-f",
63 rebase_path(_src, root_build_dir),
64 rebase_path(_target, root_build_dir),
65 ]
58 } 66 }
59 } 67 }
OLDNEW
« no previous file with comments | « build/symlink.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698