aboutsummaryrefslogtreecommitdiff
path: root/build/lib
diff options
context:
space:
mode:
authorAndrew Woloszyn <awoloszyn@google.com>2016-03-22 17:47:53 -0400
committerAndrew Woloszyn <awoloszyn@google.com>2016-03-23 15:20:40 -0400
commit61cb05a00f63fec7f6b06f5d902dd46e21351924 (patch)
tree7708085b51c28957d63b6b00fae5f76c5a5756ff /build/lib
parent3c01d2177f589289c3c55942206f485dd01294ee (diff)
downloadndk-61cb05a00f63fec7f6b06f5d902dd46e21351924.tar.gz
Added builds for shader-tools to the ndk.
This includes glslc, spirv-as, spirv-dis, spirv-val. The builds use mingw to compile for windows. Change-Id: I2719b3eb0eea908e83e8a5ecd62760f733ff3b88
Diffstat (limited to 'build/lib')
-rw-r--r--build/lib/build_support.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/lib/build_support.py b/build/lib/build_support.py
index 4e88cad53..7c109f56f 100644
--- a/build/lib/build_support.py
+++ b/build/lib/build_support.py
@@ -242,6 +242,16 @@ def make_package(name, directory, out_dir):
shutil.rmtree(tmpdir)
+def merge_license_files(output_path, files):
+ licenses = []
+ for license_path in files:
+ with open(license_path) as license_file:
+ licenses.append(license_file.read())
+
+ with open(output_path, 'w') as output_file:
+ output_file.write('\n'.join(licenses))
+
+
class ArgParser(argparse.ArgumentParser):
def __init__(self):
super(ArgParser, self).__init__()