Allow Chromium Linux to be built with Breakpad. Enable Linux CHROME_HEADLESS support. (Try 2)

TEST=none
BUG=19663

Original Review URL: http://codereview.chromium.org/173095

Review URL: http://codereview.chromium.org/173397

git-svn-id: http://src.chromium.org/svn/trunk/src/build@24378 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
thestig@chromium.org 2009-08-26 00:14:27 +00:00
Родитель 4d1f633723
Коммит 6032048b09
1 изменённых файлов: 20 добавлений и 8 удалений

Просмотреть файл

@ -31,6 +31,10 @@
# on 'buildtype' (i.e. we don't care about saving symbols for non-Official # on 'buildtype' (i.e. we don't care about saving symbols for non-Official
# builds). # builds).
'buildtype%': 'Dev', 'buildtype%': 'Dev',
# We do want to build Chromium with Breakpad support in certain
# situations. I.e. for Chrome bot.
'linux_chromium_breakpad%': 0,
}, },
# Define branding and buildtype on the basis of their settings within the # Define branding and buildtype on the basis of their settings within the
@ -72,9 +76,9 @@
# Once all vsprops settings are migrated into gyp, this can go away. # Once all vsprops settings are migrated into gyp, this can go away.
'msvs_use_common_release%': 1, 'msvs_use_common_release%': 1,
# TODO(bradnelson): eliminate this when possible. # TODO(bradnelson): eliminate this when possible.
# To allow local gyp files to override additional linker options for msvs. # To allow local gyp files to override additional linker options for msvs.
# Yes(1) means set use the common linker options. # Yes(1) means set use the common linker options.
'msvs_use_common_linker_extras%': 1, 'msvs_use_common_linker_extras%': 1,
# TODO(sgk): eliminate this if possible. # TODO(sgk): eliminate this if possible.
@ -114,6 +118,15 @@
'linux_sandbox_chrome_path%': '/opt/google/chrome/chrome', 'linux_sandbox_chrome_path%': '/opt/google/chrome/chrome',
'conditions': [ 'conditions': [
['OS=="linux"', {
'conditions': [
['branding=="Chrome" or linux_chromium_breakpad==1', {
'linux_breakpad%': 1,
}, {
'linux_breakpad%': 0,
}],
],
}], # OS=="linux"
['OS=="mac"', { ['OS=="mac"', {
'conditions': [ 'conditions': [
# mac_product_name is set to the name of the .app bundle as it should # mac_product_name is set to the name of the .app bundle as it should
@ -166,11 +179,6 @@
'conditions': [ 'conditions': [
['branding=="Chrome"', { ['branding=="Chrome"', {
'defines': ['GOOGLE_CHROME_BUILD'], 'defines': ['GOOGLE_CHROME_BUILD'],
'conditions': [
['OS=="linux"', {
'cflags': [ '-gstabs' ],
}],
],
}, { # else: branding!="Chrome" }, { # else: branding!="Chrome"
'defines': ['CHROMIUM_BUILD'], 'defines': ['CHROMIUM_BUILD'],
}], }],
@ -539,6 +547,10 @@
'-fno-strict-aliasing', '-fno-strict-aliasing',
], ],
}], }],
['linux_breakpad==1', {
'cflags': [ '-gstabs' ],
'defines': ['USE_LINUX_BREAKPAD'],
}],
], ],
}, },
}], }],