]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Dump symbols in create-dist.py.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 3 Mar 2014 01:44:16 +0000 (09:44 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 3 Mar 2014 01:44:16 +0000 (09:44 +0800)
atom.gyp
script/create-dist.py

index 803c0ec4b3f8b1f31a5e8d7b8ac1d93072c9cbc8..a1158315942b5de660078aab8ea4bf6d9dd49cbd 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
             },
           ],
         }],  # OS=="win"
+        ['OS=="linux"', {
+          'dependencies': [
+            'vendor/breakpad/breakpad.gyp:dump_syms',
+          ],
+          'actions': [
+            {
+              'action_name': 'Dump Symbols',
+              'inputs': [
+                '<(PRODUCT_DIR)/<(project_name)',
+              ],
+              'outputs': [
+                '<(PRODUCT_DIR)/Atom-Shell.breakpad.syms',
+              ],
+              'action': [
+                'python',
+                'tools/mac/generate_breakpad_symbols.py',
+                '--build-dir=<(PRODUCT_DIR)',
+                '--binary=<(PRODUCT_DIR)/<(project_name)',
+                '--symbols-dir=<(PRODUCT_DIR)/Atom-Shell.breakpad.syms',
+                '--libchromiumcontent-dir=<(libchromiumcontent_library_dir)',
+                '--clear',
+                '--jobs=16',
+              ],
+            },
+          ],
+        }],  # OS=="linux"
       ],
     },  # target <(project_name>_dump_symbols
   ],
index 604cd69d02d9e03375eb5887cb2fc6ff4e535351..bacb1deeab9c6ffe7242daefb51bd5aa95622078 100755 (executable)
@@ -84,7 +84,7 @@ def main():
   force_build()
   if TARGET_PLATFORM != 'linux':
     download_libchromiumcontent_symbols(args.url)
-    create_symbols()
+  create_symbols()
   copy_binaries()
   copy_headers()
   copy_license()
@@ -205,8 +205,6 @@ def create_symbols_zip():
   with scoped_cwd(DIST_DIR):
     files = ['LICENSE', 'version']
     dirs = ['Atom-Shell.breakpad.syms']
-    if TARGET_PLATFORM == 'linux':
-      dirs = []
     make_zip(zip_file, files, dirs)