From 2d2fbaaa4aa4a5dc0908b7b9c923b046b5c0585a Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 3 Mar 2014 09:44:16 +0800 Subject: [PATCH] linux: Dump symbols in create-dist.py. --- atom.gyp | 26 ++++++++++++++++++++++++++ script/create-dist.py | 4 +--- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/atom.gyp b/atom.gyp index 803c0ec4..a1158315 100644 --- a/atom.gyp +++ b/atom.gyp @@ -520,6 +520,32 @@ }, ], }], # 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 ], diff --git a/script/create-dist.py b/script/create-dist.py index 604cd69d..bacb1dee 100755 --- a/script/create-dist.py +++ b/script/create-dist.py @@ -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) -- 2.43.0