7d92103f9e
E.g. $ ninja -C out push_dm By default (ninja -C out) everything is built and pushed if skia_android_serial is set. Dependencies are tracked, so incremental builds push only executables that have changed. Change-Id: I586d81791f5f877b173cf61ed68fa9aab96234d2 Reviewed-on: https://skia-review.googlesource.com/6616 Reviewed-by: Derek Sollenberger <djsollen@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
22 lines
576 B
Python
Executable File
22 lines
576 B
Python
Executable File
#!/usr/bin/env python
|
|
#
|
|
# Copyright 2016 Google Inc.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import os
|
|
import subprocess
|
|
import sys
|
|
|
|
host, serial, stamp = sys.argv[1:]
|
|
device = '/data/local/tmp/' + os.path.basename(host)
|
|
|
|
# adb push is verbose, so eat its output with check_output().
|
|
subprocess.check_output(['adb', '-s', serial, 'push', host, device])
|
|
subprocess.check_call(['adb', '-s', serial, 'shell', 'chmod', '+x', device])
|
|
|
|
# Touch a file to let GN/Ninja know we succeeded.
|
|
with open(stamp, 'w'):
|
|
pass
|