Replace the use of CLD_DATA_FROM* and CLD-related ifdefs with runtime checks.

This, along with other changes described in crbug/367239, allows refactoring
of the build logic to allow per-target customization of the CLD data source.
This, in turn, allows chrome_shell to be built with statically-linked CLD even
if other things (such as the full browser) are not.

BUG=367239
TBR=toyoshim@chromium.org

Review URL: https://codereview.chromium.org/424123003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@286487 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
andrewhayden@chromium.org 2014-07-30 11:56:26 +00:00
Родитель 66c5bd6464
Коммит 5c7e554e9d
1 изменённых файлов: 0 добавлений и 9 удалений

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

@ -2764,15 +2764,6 @@
# chrome://translate-internals # chrome://translate-internals
'defines': ['CLD2_DATA_SOURCE=<(cld2_data_source)'], 'defines': ['CLD2_DATA_SOURCE=<(cld2_data_source)'],
}], }],
['cld_version==2 and cld2_data_source=="static"', {
'defines': ['CLD_DATA_FROM_STATIC'],
}],
['cld_version==2 and cld2_data_source=="standalone"', {
'defines': ['CLD_DATA_FROM_STANDALONE'],
}],
['cld_version==2 and cld2_data_source=="component"', {
'defines': ['CLD_DATA_FROM_COMPONENT'],
}],
['enable_printing==1', { ['enable_printing==1', {
'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'], 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'],
}], }],