# Copyright 2020 Google Inc. All Rights Reserved. # # Including this GYPI file in a |target| or |target_defaults| section will # disable warnings for the affected target(s). This is generally only desirable # in third-party code where we are not responsible for maintenance. { 'variables': { 'disable_warnings_include': [ '-Wno-error', '-w', ], 'disable_warnings_exclude': [ '-Werror', '-Wall', '-Wextra', '-pedantic', '-pedantic-errors', ], 'w_error_regex': '^-Werror', }, 'cflags': ['<@(disable_warnings_include)'], 'cflags!': ['<@(disable_warnings_exclude)'], 'cflags_c!': ['<@(disable_warnings_exclude)'], 'cflags_cc!': ['<@(disable_warnings_exclude)'], 'cflags/': [ ['exclude', '<(w_error_regex)'], ], 'cflags_c/': [ ['exclude', '<(w_error_regex)'], ], 'cflags_cc/': [ ['exclude', '<(w_error_regex)'], ], }