Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: base/files/protect_file_posix.gypi

Issue 676873004: Intercept file Open/Close (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 # Provides sanity-checks and early crashes on some improper use of posix file
6 # descriptors. See protect_file_posix.cc for details.
7 #
8 # Usage:
9 # {
10 # 'target_name': 'libsomething',
11 # 'type': 'shared_library', // Do *not* use it for static libraries.
12 # 'includes': [
13 # 'base/files/protect_file_posix.gypi'
Fabrice (no longer in Chrome) 2014/11/17 16:10:54 Nit: add a comma at the end of the line
pasko 2014/11/17 16:25:57 Done.
14 # ],
15 # ...
16 # }
17 {
18 'conditions': [
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"', {
23 'ldflags': [
24 '-Wl,--wrap=close',
25 ],
26 'dependencies': [
27 '<(DEPTH)/base/base.gyp:protect_file_posix',
28 ],
29 }],
30 ],
31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698