1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # Provides sanity-checks and early crashes on some improper use of posix file
6 # descriptors. See protect_file_posix.cc for details.
10 # 'target_name': 'libsomething',
11 # 'type': 'shared_library', // Do *not* use it for static libraries.
13 # 'base/files/protect_file_posix.gypi',
19 # In the component build the interceptors have to be declared with
20 # non-hidden visibility, which is not desirable for the release build.
21 # Disable the extra checks for the component build for simplicity.
22 ['component != "shared_library"', {
27 '<(DEPTH)/base/base.gyp:protect_file_posix',