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

Unified Diff: tools/android/md5sum/BUILD.gn

Issue 557463002: Make base_unittests_apk actually work (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-group-datadeps
Patch Set: Rebase Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « testing/android/native_test.gyp ('k') | tools/android/md5sum/md5sum.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/md5sum/BUILD.gn
diff --git a/tools/android/md5sum/BUILD.gn b/tools/android/md5sum/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..5f91a883115268b17ad163b19f683e9cb7003960
--- /dev/null
+++ b/tools/android/md5sum/BUILD.gn
@@ -0,0 +1,53 @@
+# 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.
+
+# GYP: //tools/android/md5sum/md5sum.gyp:md5sum
+group("md5sum") {
+ datadeps = [
+ ":md5sum_bin($host_toolchain)",
+ ":md5sum_bin($default_toolchain)",
+ ":md5sum_prepare_dist($default_toolchain)",
+ ":md5sum_copy_host($host_toolchain)",
+ ]
+ # TODO(cjhopman): Remove once group datadeps are fixed.
+ deps = datadeps
+}
+
+# GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_device (and md5sum_bin_host)
+executable("md5sum_bin") {
+ sources = [
+ "md5sum.cc"
+ ]
+ deps = [
+ "//base"
+ ]
+
+ # TODO(GYP)
+ #'conditions': [
+ #[ 'order_profiling!=0 and OS=="android"', {
+ #'dependencies': [ '../../../tools/cygprofile/cygprofile.gyp:cygprofile', ],
+ #}],
+ #],
+}
+
+if (current_toolchain == default_toolchain) {
+ import("//build/config/android/rules.gni")
+
+ # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_stripped_device_bin
+ create_native_executable_dist("md5sum_prepare_dist") {
+ dist_dir = "$root_build_dir/md5sum_dist"
+ binary = "$root_build_dir/exe.stripped/md5sum_bin"
+ }
+} else {
+ # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_host
+ copy("md5sum_copy_host") {
+ sources = [
+ "$root_out_dir/md5sum_bin"
+ ]
+ outputs = [
+ "$root_build_dir/md5sum_bin_host"
+ ]
+ }
+}
+
« no previous file with comments | « testing/android/native_test.gyp ('k') | tools/android/md5sum/md5sum.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698