aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/build_commands.py
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2018-09-21 17:53:20 +0200
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2018-09-24 15:14:47 +0200
commita4789defc416079698caf0b46e3d8ce073626f33 (patch)
tree80771dc3b81433153564b03194a7059354d04796 /python/servo/build_commands.py
parent2854847c136fbd98e08b15fa034e571a12df9c1b (diff)
downloadservo-a4789defc416079698caf0b46e3d8ce073626f33.tar.gz
servo-a4789defc416079698caf0b46e3d8ce073626f33.zip
Use simpler way to build gst lib name
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r--python/servo/build_commands.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index ff6429622a4..57cb8ac471a 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -13,7 +13,6 @@ import datetime
import os
import os.path as path
import platform
-import re
import shutil
import subprocess
import sys
@@ -403,18 +402,7 @@ class MachCommands(CommandBase):
env["PKG_CONFIG_ALLOW_CROSS"] = '1'
# Build the name of the package containing all GStreamer dependencies
# according to the build target.
- gst_lib = None
- if re.match("arm-([a-z])*-androideabi", target):
- gst_lib = "gst-build-armeabi"
- elif re.match("armv7-([a-z])*-androideabi", target):
- gst_lib = "gst-build-armeabi-v7a"
- elif re.match("x86_64-([a-z])*-android", target):
- gst_lib = "gst-build-x86_64"
- elif re.match("i686-([a-z])*-android", target):
- gst_lib = "gst-build-x86"
- else:
- raise Exception("Invalid target architecture '%s'" % target)
-
+ gst_lib = "gst-build-{}".format(self.config["android"]["lib"])
gst_lib_zip = "%s.zip" % gst_lib
gst_dir = os.path.join(base_path, "gstreamer")
gst_lib_path = os.path.join(base_path, gst_dir, gst_lib)