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

Side by Side Diff: third_party/jsoncpp/jsoncpp.gyp

Issue 14203006: Extract use_system_foo logic out of gyp files, patch 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'targets': [
7 'use_system_jsoncpp%': 0, 7 {
8 }, 8 'target_name': 'jsoncpp',
9 'conditions': [ 9 'type': 'static_library',
10 ['use_system_jsoncpp==0', { 10 'defines': [
11 'targets': [ 11 'JSON_USE_EXCEPTION=0',
12 {
13 'target_name': 'jsoncpp',
14 'type': 'static_library',
15 'defines': [
16 'JSON_USE_EXCEPTION=0',
17 ],
18 'sources': [
19 'source/include/json/assertions.h',
20 'source/include/json/autolink.h',
21 'source/include/json/config.h',
22 'source/include/json/features.h',
23 'source/include/json/forwards.h',
24 'source/include/json/json.h',
25 'source/include/json/reader.h',
26 'overrides/include/json/value.h',
27 'source/include/json/writer.h',
28 'source/src/lib_json/json_batchallocator.h',
29 'source/src/lib_json/json_reader.cpp',
30 'source/src/lib_json/json_tool.h',
31 'overrides/src/lib_json/json_value.cpp',
32 'source/src/lib_json/json_writer.cpp',
33 ],
34 'include_dirs': [
35 'overrides/include/',
36 'source/include/',
37 'source/src/lib_json/',
38 ],
39 'direct_dependent_settings': {
40 'include_dirs': [
41 'overrides/include/',
42 'source/include/',
43 ],
44 },
45 },
46 ], 12 ],
47 }, { # use_system_jsoncpp==1 13 'sources': [
48 'targets': [ 14 'source/include/json/assertions.h',
49 { 15 'source/include/json/autolink.h',
50 'target_name': 'jsoncpp', 16 'source/include/json/config.h',
51 'type': 'none', 17 'source/include/json/features.h',
52 'variables': { 18 'source/include/json/forwards.h',
53 'headers_root_path': 'source/include', 19 'source/include/json/json.h',
54 'header_filenames': [ 20 'source/include/json/reader.h',
55 'json/assertions.h', 21 'overrides/include/json/value.h',
56 'json/autolink.h', 22 'source/include/json/writer.h',
57 'json/config.h', 23 'source/src/lib_json/json_batchallocator.h',
58 'json/features.h', 24 'source/src/lib_json/json_reader.cpp',
59 'json/forwards.h', 25 'source/src/lib_json/json_tool.h',
60 'json/json.h', 26 'overrides/src/lib_json/json_value.cpp',
61 'json/reader.h', 27 'source/src/lib_json/json_writer.cpp',
62 'json/value.h',
63 'json/writer.h',
64 ],
65 },
66 'includes': [
67 '../../build/shim_headers.gypi',
68 ],
69 'direct_dependent_settings': {
70 'include_dirs': [
71 '/usr/include/jsoncpp',
72 ],
73 },
74 'link_settings': {
75 'libraries': [
76 '-ljsoncpp',
77 ],
78 },
79 }
80 ], 28 ],
81 }], 29 'include_dirs': [
30 'overrides/include/',
31 'source/include/',
32 'source/src/lib_json/',
33 ],
34 'direct_dependent_settings': {
35 'include_dirs': [
36 'overrides/include/',
37 'source/include/',
38 ],
39 },
40 },
82 ], 41 ],
83 } 42 }
84 43
85 # Local Variables: 44 # Local Variables:
86 # tab-width:2 45 # tab-width:2
87 # indent-tabs-mode:nil 46 # indent-tabs-mode:nil
88 # End: 47 # End:
89 # vim: set expandtab tabstop=2 shiftwidth=2: 48 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698