Chromium Code Reviews| Index: base/third_party/nspr/nspr.gyp |
| diff --git a/base/third_party/nspr/nspr.gyp b/base/third_party/nspr/nspr.gyp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7fb1efcbcabaade4bd6e11966b4b4459259f17a5 |
| --- /dev/null |
| +++ b/base/third_party/nspr/nspr.gyp |
| @@ -0,0 +1,57 @@ |
| +# Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +{ |
| + 'variables': { |
| + 'use_system_nspr%': 0, |
| + }, |
| + 'conditions': [ |
| + ['use_system_nspr==0', { |
| + 'targets': [ |
| + { |
| + 'target_name': 'nspr', |
| + 'type': 'static_library', |
| + 'toolsets': ['host', 'target'], |
| + 'include_dirs': [ |
| + '../../..', |
| + ], |
| + 'sources': [ |
| + 'prtime.cc', |
|
Ryan Sleevi
2012/12/27 18:41:26
You also dropped prtime.h and prcpucfg from the 's
|
| + ], |
| + }, |
| + ], |
| + }, { # use_system_nspr != 0 |
| + 'targets': [ |
| + { |
| + 'target_name': 'nspr', |
| + 'type': 'none', |
| + 'toolsets': ['host', 'target'], |
| + 'variables': { |
| + 'headers_root_path': '.', |
| + 'header_filenames': [ |
| + 'prtime.h', |
| + 'prtypes.h', |
| + ], |
| + }, |
| + 'includes': [ |
| + '../../../build/shim_headers.gypi', |
| + ], |
| + 'direct_dependent_settings': { |
| + 'cflags': [ |
| + '<!@(pkg-config --cflags nspr)', |
| + ], |
| + }, |
| + 'link_settings': { |
| + 'ldflags': [ |
| + '<!@(pkg-config --libs-only-L --libs-only-other nspr)', |
| + ], |
| + 'libraries': [ |
| + '<!@(pkg-config --libs-only-l nspr)', |
| + ], |
| + }, |
| + } |
| + ], |
| + }], |
| + ], |
| +} |