Selaa lähdekoodia

Add rpath to QtWebEngineProcess

This makes a local dev environment work without having to
run the install target.
Tobias Hieta 8 vuotta sitten
vanhempi
commit
5518e5e90e
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      scripts/fix-install-names.py

+ 4 - 0
scripts/fix-install-names.py

@@ -32,6 +32,10 @@ def fix_install_name(path):
     for f in files:
       fpath = os.path.join(root, f)
 
+      if os.path.basename(f) == "QtWebEngineProcess":
+        print "-- Adding rpath (%s) to %s" % (os.path.join(path, "lib"), f)
+        exec_cmd(["install_name_tool", "-add_rpath", os.path.join(path, "lib"), fpath], supress_output=True)
+
       if (f.endswith(exts) or os.path.basename(f) in exes or (".framework/Versions/" in root and os.access(fpath, os.X_OK))) and not os.path.islink(fpath) and os.path.exists(fpath):
         # Fix permissions
         if not os.access(fpath, os.W_OK) or not os.access(fpath, os.R_OK) or not os.access(fpath, os.X_OK):