]> khamidou — GitHub mirrors - electron.git/commitdiff
win: Register msdia80.dll in dump-symbols.py
authorCheng Zhao <zcbenz@gmail.com>
Thu, 9 Apr 2015 05:21:33 +0000 (13:21 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 9 Apr 2015 05:21:33 +0000 (13:21 +0800)
script/dump-symbols.py
tools/win/generate_breakpad_symbols.py [changed mode: 0644->0755]

index e8df27fdd2b0e01cf662637f20df066cc629feac..9ac6782943b72aaf2f8c7475c26f1be0b6fdbd05 100755 (executable)
@@ -15,6 +15,8 @@ CHROMIUM_DIR = os.path.join(SOURCE_ROOT, 'vendor', 'brightray', 'vendor',
 
 
 def main(destination):
+  register_required_dll()
+
   rm_rf(destination)
   (project_name, product_name) = get_names_from_gyp()
 
@@ -44,13 +46,18 @@ def main(destination):
     args = [
       '--symbols-dir={0}'.format(destination),
       '--jobs=16',
-      OUT_DIR,
-      CHROMIUM_DIR,
+      os.path.relpath(OUT_DIR),
     ]
 
   execute([sys.executable, generate_breakpad_symbols] + args)
 
 
+def register_required_dll():
+  register = os.path.join(SOURCE_ROOT, 'tools', 'win',
+                          'register_msdia80_dll.js')
+  execute(['node.exe', os.path.relpath(register)]);
+
+
 def get_names_from_gyp():
   gyp = os.path.join(SOURCE_ROOT, 'atom.gyp')
   with open(gyp) as f:
old mode 100644 (file)
new mode 100755 (executable)
index f69c30c..a294d8c
@@ -47,11 +47,6 @@ def mkdir_p(path):
     else: raise
 
 
-def RegisterRequiredDll():
-  register = os.path.join(os.path.dirname(__file__), 'register_msdia80_dll.js')
-  subprocess.check_call(['node.exe', register]);
-
-
 def GenerateSymbols(options, binaries):
   """Dumps the symbols of binary and places them in the given directory."""
 
@@ -124,7 +119,6 @@ def main():
     pdbs += glob.glob(os.path.join(directory, '*.exe.pdb'))
     pdbs += glob.glob(os.path.join(directory, '*.dll.pdb'))
 
-  RegisterRequiredDll();
   GenerateSymbols(options, pdbs)
 
   return 0