diff options
author | hajimehoshi@chromium.org <hajimehoshi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-05 11:17:03 +0000 |
---|---|---|
committer | hajimehoshi@chromium.org <hajimehoshi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-05 11:17:03 +0000 |
commit | 5e1cd3438ef57e5d6067652c3a895dc607e32b9b (patch) | |
tree | 4b2eb0917afecdb069deeb99307c193663cffd6a /build/common.gypi | |
parent | 7b14092c59ff8eb8174cb49ccfe2d17c99f95fe5 (diff) | |
download | chromium_src-5e1cd3438ef57e5d6067652c3a895dc607e32b9b.zip chromium_src-5e1cd3438ef57e5d6067652c3a895dc607e32b9b.tar.gz chromium_src-5e1cd3438ef57e5d6067652c3a895dc607e32b9b.tar.bz2 |
Use Finch to compare the performances of CLD1 and CLD2
Add a compile time constant CLD_VERSION, which indicates the version of CLD. If this is not define, Finch test to compare CLD1 and CLD2 is supposed to be used.
By this CL, each platform will have the below status:
Linux: Use both CLD1 and CLD2 (and use Finch).
Mac OS X: Use both CLD1 and CLD2 (and use Finch).
Windows: Use only CLD1 once because now CLD2 can't be compiled on Windows. After we can have CLD2 compiled on Windows, we will use CLD2 and Finch asap.
iOS: Still use only CLD1. (It's because it is hard to use both CLD1 and CLD2 on mobile platform because of the binary size impact.)
Android: Still use only CLD1. (The same reason as iOS)
So some platforms will have two CLD binaries, but this is temporal in the sense that we intend to use Finch only for Dev and Beta channel. Before releasing the stable Chromium version, we decide which version of CLD is adopted, make another CL to use only one CLD, and send a merge request. (Of course, we hope we will be able to adopt CLD2.)
BUG=240647
Review URL: https://chromiumcodereview.appspot.com/22867032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221380 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/common.gypi')
-rw-r--r-- | build/common.gypi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index 7df3e83..10d0c09 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -341,6 +341,12 @@ # print, UI, etc. 'enable_printing%': 1, + # Set the version of CLD. + # 0: Don't specify the version. This option is for the Finch testing. + # 1: Use only CLD1. + # 2: Use only CLD2. + 'cld_version%': 0, + # Enable spell checker. 'enable_spellcheck%': 1, @@ -510,10 +516,15 @@ 'enable_one_click_signin%': 1, }], + ['OS=="win"', { + 'cld_version%': 1, + }], + ['OS=="android"', { 'enable_automation%': 0, 'enable_extensions%': 0, 'enable_google_now%': 0, + 'cld_version%': 1, 'enable_spellcheck%': 0, 'enable_themes%': 0, 'remoting%': 0, @@ -563,6 +574,7 @@ 'enable_automation%': 0, 'enable_extensions%': 0, 'enable_google_now%': 0, + 'cld_version%': 1, 'enable_printing%': 0, 'enable_session_service%': 0, 'enable_themes%': 0, @@ -851,6 +863,7 @@ 'enable_printing%': '<(enable_printing)', 'enable_spellcheck%': '<(enable_spellcheck)', 'enable_google_now%': '<(enable_google_now)', + 'cld_version%': '<(cld_version)', 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', 'disable_ftp_support%': '<(disable_ftp_support)', 'enable_task_manager%': '<(enable_task_manager)', @@ -2272,6 +2285,9 @@ ['enable_google_now==1', { 'defines': ['ENABLE_GOOGLE_NOW=1'], }], + ['cld_version!=0', { + 'defines': ['CLD_VERSION=<(cld_version)'], + }], ['enable_printing==1', { 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'], }], |