diff options
author | Attila Dusnoki <dati91@gmail.com> | 2016-08-15 14:59:22 +0200 |
---|---|---|
committer | Attila Dusnoki <dati91@gmail.com> | 2016-09-06 12:48:04 +0200 |
commit | ccc66d0c3202641ae6079aa169a46540f00d8c73 (patch) | |
tree | afb78696a41d422f5c973b32a81a718733cf42dc /python/servo/package_commands.py | |
parent | 5f702d6e7f26710b7a24cce3c013a040255f7096 (diff) | |
download | servo-ccc66d0c3202641ae6079aa169a46540f00d8c73.tar.gz servo-ccc66d0c3202641ae6079aa169a46540f00d8c73.zip |
WebBluetooth Android support
Diffstat (limited to 'python/servo/package_commands.py')
-rw-r--r-- | python/servo/package_commands.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py index 5b1a75b6301..fbc659d5696 100644 --- a/python/servo/package_commands.py +++ b/python/servo/package_commands.py @@ -135,6 +135,15 @@ class PackageCommands(CommandBase): target_dir = path.dirname(binary_path) output_apk = "{}.apk".format(binary_path) + blurdroid_path = find_dep_path_newest('blurdroid', binary_path) + if blurdroid_path is None: + print("Could not find blurdroid package; perhaps you haven't built Servo.") + return 1 + else: + dir_to_libs = path.join("support", "android", "apk", "libs") + if not path.exists(dir_to_libs): + os.makedirs(dir_to_libs) + shutil.copy2(blurdroid_path + '/out/blurdroid.jar', dir_to_libs) try: with cd(path.join("support", "android", "build-apk")): subprocess.check_call(["cargo", "run", "--", dev_flag, "-o", output_apk, "-t", target_dir, |