From ccc66d0c3202641ae6079aa169a46540f00d8c73 Mon Sep 17 00:00:00 2001 From: Attila Dusnoki Date: Mon, 15 Aug 2016 14:59:22 +0200 Subject: WebBluetooth Android support --- python/servo/package_commands.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'python/servo/package_commands.py') 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, -- cgit v1.2.3