aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/package_commands.py
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2018-09-11 17:44:10 +0200
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2018-09-11 17:44:10 +0200
commita56dc489d5d6f8e04d9606ca45c4f71d810b3caa (patch)
tree4ba7f57c8122c0fb02fddb24b574d46ee8b9fa8c /python/servo/package_commands.py
parentc3ed1d11c0bbea22d855f5bd8066eb0d9cacf392 (diff)
downloadservo-a56dc489d5d6f8e04d9606ca45c4f71d810b3caa.tar.gz
servo-a56dc489d5d6f8e04d9606ca45c4f71d810b3caa.zip
Package generated nspr4.dll
Diffstat (limited to 'python/servo/package_commands.py')
-rw-r--r--python/servo/package_commands.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py
index cbbd22596c5..b9cd1f1d501 100644
--- a/python/servo/package_commands.py
+++ b/python/servo/package_commands.py
@@ -146,6 +146,19 @@ def copy_windows_dependencies(binary_path, destination):
for d in deps:
shutil.copy(path.join(binary_path, d), destination)
+ # Search for the generated nspr4.dll
+ build_path = path.join(binary_path, "build")
+ nspr4 = "nspr4.dll"
+ nspr4_path = None
+ for root, dirs, files in os.walk(build_path):
+ if nspr4 in files:
+ nspr4_path = path.join(root, nspr4)
+ break
+
+ if nspr4_path is None:
+ print("WARNING: could not find nspr4.dll")
+ else:
+ shutil.copy(nspr4_path, destination)
def change_prefs(resources_path, platform):
print("Swapping prefs")