diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index 73a57d9..827be4c 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -284,6 +284,12 @@ 'clang_load%': '', 'clang_add_plugin%': '', + # If this is set, the clang plugins used on the buildbot will be used. + # Run tools/clang/scripts/update.sh to make sure they are compiled. + # This causes 'clang_chrome_plugins_flags' to be set. + # Has no effect if 'clang' is not set as well. + 'clang_use_chrome_plugins%': 0, + # Enable sampling based profiler. # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html 'profiling%': '0', @@ -488,6 +494,11 @@ 'grit_defines': ['-D', 'use_third_party_translations'], 'locales': ['ast', 'eu', 'gl', 'ka', 'ku', 'ug'], }], + + ['clang_use_chrome_plugins==1', { + 'clang_chrome_plugins_flags': + '<!(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)', + }], ], }, 'target_defaults': { @@ -1210,6 +1221,14 @@ ], }]], }], + ['clang==1 and clang_use_chrome_plugins==1', { + 'target_conditions': [ + ['_toolset=="target"', { + 'cflags': [ + '<(clang_chrome_plugins_flags)', + ], + }]], + }], ['clang==1 and clang_load!="" and clang_add_plugin!=""', { 'target_conditions': [ ['_toolset=="target"', { @@ -1333,6 +1352,11 @@ '-Wno-overloaded-virtual', ], }], + ['clang==1 and clang_use_chrome_plugins==1', { + 'OTHER_CFLAGS': [ + '<(clang_chrome_plugins_flags)', + ], + }], ['clang==1 and clang_load!="" and clang_add_plugin!=""', { 'OTHER_CFLAGS': [ '-Xclang', '-load', '-Xclang', '<(clang_load)', |