2014-07-02 16:58:40 +00:00
|
|
|
# Copyright 2014 Google Inc. All rights reserved.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file or at
|
|
|
|
# https://developers.google.com/open-source/licenses/bsd
|
|
|
|
#
|
|
|
|
# This file contains common settings for building packager components.
|
|
|
|
|
|
|
|
{
|
|
|
|
'variables': {
|
|
|
|
# Compile as Chromium code to enable warnings and warnings-as-errors.
|
|
|
|
'chromium_code': 1,
|
|
|
|
},
|
|
|
|
'target_defaults': {
|
|
|
|
'include_dirs': [
|
|
|
|
'.',
|
2014-10-01 22:10:21 +00:00
|
|
|
'..',
|
2014-07-02 16:58:40 +00:00
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['clang==1', {
|
|
|
|
# Revert the relevant settings in Chromium's common.gypi.
|
|
|
|
'cflags!': [
|
|
|
|
'-Wno-char-subscripts',
|
|
|
|
'-Wno-unneeded-internal-declaration',
|
|
|
|
'-Wno-covered-switch-default',
|
|
|
|
|
|
|
|
# C++11-related flags:
|
|
|
|
'-Wno-c++11-narrowing',
|
|
|
|
'-Wno-reserved-user-defined-literal',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|