From 82364bae1690d0f4421afa0116441d99ce35b92a Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Mon, 24 Oct 2016 16:49:15 -0400 Subject: Build for Android from Windows, work in progress. Pretty vanilla stuff here, mostly just making the gcc-like toolchain Windows friendly. I was having trouble getting rm -r {{output}} && $ar rcs {{output}} @$rspfile to work without deleting my ar.exe, so I chickened out the usual way by adding gn/ar.py. I've also updated bin/droid to work with Git Bash on Windows. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3751 Change-Id: I04c34ccc91e6a291c11ac4e7a7a0ffe41d879fe6 Reviewed-on: https://skia-review.googlesource.com/3751 Reviewed-by: Brian Osman Commit-Queue: Mike Klein --- gn/ar.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 gn/ar.py (limited to 'gn/ar.py') diff --git a/gn/ar.py b/gn/ar.py new file mode 100644 index 0000000000..dc3ae8d948 --- /dev/null +++ b/gn/ar.py @@ -0,0 +1,18 @@ +#!/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 + +# Equivalent to: rm -f $2 && $1 rcs $2 @$3 + +ar, output, rspfile = sys.argv[1:] + +if os.path.exists(output): + os.remove(output) +sys.exit(subprocess.call([ar, "rcs", output, "@" + rspfile])) -- cgit v1.2.3