mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-11 09:30:43 +01:00
Generate release build debug symbols and package them with the make_distrib.py script.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@399 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
dd144bf903
commit
8bf0248429
6
cef.gyp
6
cef.gyp
@ -523,6 +523,12 @@
|
|||||||
'-lcomctl32.lib',
|
'-lcomctl32.lib',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
'msvs_settings': {
|
||||||
|
'VCLinkerTool': {
|
||||||
|
# Generate a PDB symbol file for both Debug and Release builds.
|
||||||
|
'GenerateDebugInformation': 'true',
|
||||||
|
},
|
||||||
|
},
|
||||||
}],
|
}],
|
||||||
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
|
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
|
||||||
'dependencies':[
|
'dependencies':[
|
||||||
|
@ -161,6 +161,12 @@ output_dir = os.path.abspath(os.path.join(options.outputdir, \
|
|||||||
remove_dir(output_dir, options.quiet)
|
remove_dir(output_dir, options.quiet)
|
||||||
make_dir(output_dir, options.quiet)
|
make_dir(output_dir, options.quiet)
|
||||||
|
|
||||||
|
# symbol directory
|
||||||
|
symbol_dir = os.path.abspath(os.path.join(options.outputdir, \
|
||||||
|
'cef_binary_r'+cef_rev+'_'+platform+'_symbols'))
|
||||||
|
remove_dir(symbol_dir, options.quiet)
|
||||||
|
make_dir(symbol_dir, options.quiet)
|
||||||
|
|
||||||
# transfer the LICENSE.txt file
|
# transfer the LICENSE.txt file
|
||||||
copy_file(os.path.join(cef_dir, 'LICENSE.txt'), output_dir, options.quiet)
|
copy_file(os.path.join(cef_dir, 'LICENSE.txt'), output_dir, options.quiet)
|
||||||
|
|
||||||
@ -249,6 +255,9 @@ if platform == 'windows':
|
|||||||
dst_dir = os.path.join(output_dir, 'lib/Release')
|
dst_dir = os.path.join(output_dir, 'lib/Release')
|
||||||
make_dir(dst_dir, options.quiet)
|
make_dir(dst_dir, options.quiet)
|
||||||
copy_file(os.path.join(cef_dir, 'Release/lib/libcef.lib'), dst_dir, options.quiet)
|
copy_file(os.path.join(cef_dir, 'Release/lib/libcef.lib'), dst_dir, options.quiet)
|
||||||
|
|
||||||
|
# transfer symbols
|
||||||
|
copy_file(os.path.join(cef_dir, 'Release/libcef.pdb'), symbol_dir, options.quiet)
|
||||||
else:
|
else:
|
||||||
sys.stderr.write("No Release build files.\n")
|
sys.stderr.write("No Release build files.\n")
|
||||||
|
|
||||||
@ -302,6 +311,10 @@ elif platform == 'macosx':
|
|||||||
copy_file(os.path.join(cef_dir, '../xcodebuild/Release/ffmpegsumo.so'), dst_dir, options.quiet)
|
copy_file(os.path.join(cef_dir, '../xcodebuild/Release/ffmpegsumo.so'), dst_dir, options.quiet)
|
||||||
copy_file(os.path.join(cef_dir, '../xcodebuild/Release/libcef.dylib'), dst_dir, options.quiet)
|
copy_file(os.path.join(cef_dir, '../xcodebuild/Release/libcef.dylib'), dst_dir, options.quiet)
|
||||||
|
|
||||||
|
# transfer symbols
|
||||||
|
copy_dir(os.path.join(cef_dir, '../xcodebuild/Release/libcef.dylib.dSYM'), \
|
||||||
|
os.path.join(symbol_dir, 'libcef.dylib.dSYM'), options.quiet)
|
||||||
|
|
||||||
# transfer resource files
|
# transfer resource files
|
||||||
dst_dir = os.path.join(output_dir, 'Resources')
|
dst_dir = os.path.join(output_dir, 'Resources')
|
||||||
make_dir(dst_dir, options.quiet)
|
make_dir(dst_dir, options.quiet)
|
||||||
@ -374,3 +387,9 @@ zip_file = os.path.split(output_dir)[1] + '.zip'
|
|||||||
if not options.quiet:
|
if not options.quiet:
|
||||||
sys.stdout.write('Creating '+zip_file+"...\n")
|
sys.stdout.write('Creating '+zip_file+"...\n")
|
||||||
create_archive(output_dir, os.path.join(output_dir, os.pardir, zip_file))
|
create_archive(output_dir, os.path.join(output_dir, os.pardir, zip_file))
|
||||||
|
|
||||||
|
# Create an archive of the symbol directory
|
||||||
|
zip_file = os.path.split(symbol_dir)[1] + '.zip'
|
||||||
|
if not options.quiet:
|
||||||
|
sys.stdout.write('Creating '+zip_file+"...\n")
|
||||||
|
create_archive(symbol_dir, os.path.join(symbol_dir, os.pardir, zip_file))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user