9c7dcac4a6
Also add Vulkan tasks for Linux NUC to use the asset. Still need to update the recipes, which will happen in a followup CL. BUG=skia:6089 Change-Id: Ie215c98a03016c00ee2f2c8da281fd565e8900ce Reviewed-on: https://skia-review.googlesource.com/7165 Commit-Queue: Kevin Lubick <kjlubick@google.com> Reviewed-by: Eric Boren <borenet@google.com>
37 lines
735 B
Python
Executable File
37 lines
735 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.
|
|
|
|
|
|
"""Create the asset."""
|
|
|
|
|
|
import argparse
|
|
import shutil
|
|
import sys
|
|
import os
|
|
|
|
|
|
|
|
def create_asset(target_dir, sdk_path):
|
|
"""Create the asset."""
|
|
shutil.copytree(sdk_path, target_dir)
|
|
|
|
|
|
def main():
|
|
if 'linux' not in sys.platform:
|
|
print >> sys.stderr, 'This script only runs on Linux.'
|
|
sys.exit(1)
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument('--target_dir', '-t', required=True)
|
|
parser.add_argument('--sdk_path', '-s', required=True)
|
|
args = parser.parse_args()
|
|
create_asset(args.target_dir, args.sdk_path)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|