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

Side by Side Diff: components/safe_json.gypi

Issue 1203083002: Add a JSON sanitizer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build files Created 5 years, 5 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
« no previous file with comments | « components/components_tests.gyp ('k') | components/safe_json/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 'targets': [ 6 'targets': [
7 { 7 {
8 # GN version: //components/safe_json 8 # GN version: //components/safe_json
9 'target_name': 'safe_json', 9 'target_name': 'safe_json',
10 'type': 'static_library', 10 'type': 'static_library',
11 'dependencies': [ 11 'dependencies': [
12 'safe_json_parser_message_filter', 12 'safe_json_parser_message_filter',
13 '../base/base.gyp:base', 13 '../base/base.gyp:base',
14 '../components/components_strings.gyp:components_strings', 14 '../components/components_strings.gyp:components_strings',
15 '../content/content.gyp:content_browser', 15 '../content/content.gyp:content_browser',
16 '../content/content.gyp:content_common',
16 '../ui/base/ui_base.gyp:ui_base', 17 '../ui/base/ui_base.gyp:ui_base',
17 ], 18 ],
18 'include_dirs': [ 19 'include_dirs': [
19 '..', 20 '..',
20 ], 21 ],
21 'sources': [ 22 'sources': [
23 'safe_json/android/component_jni_registrar.cc',
24 'safe_json/android/component_jni_registrar.h',
25 'safe_json/json_sanitizer.cc',
26 'safe_json/json_sanitizer.h',
27 'safe_json/json_sanitizer_android.cc',
22 'safe_json/safe_json_parser.cc', 28 'safe_json/safe_json_parser.cc',
23 'safe_json/safe_json_parser.h', 29 'safe_json/safe_json_parser.h',
30 'safe_json/safe_json_parser_android.cc',
31 'safe_json/safe_json_parser_android.h',
24 'safe_json/safe_json_parser_impl.cc', 32 'safe_json/safe_json_parser_impl.cc',
25 'safe_json/safe_json_parser_impl.h', 33 'safe_json/safe_json_parser_impl.h',
26 ], 34 ],
35 'conditions': [
36 ['OS == "android"', {
37 'dependencies': [
38 'safe_json_jni_headers',
39 ],
40 'sources!': [
41 'safe_json/json_sanitizer.cc',
42 'safe_json/safe_json_parser_impl.cc',
43 'safe_json/safe_json_parser_impl.h',
44 ],
45 }],
46 ],
27 }, 47 },
28 { 48 {
29 'target_name': 'safe_json_test_support', 49 'target_name': 'safe_json_test_support',
30 'type': 'static_library', 50 'type': 'static_library',
31 'dependencies': [ 51 'dependencies': [
32 '../base/base.gyp:base', 52 '../base/base.gyp:base',
33 ':safe_json', 53 ':safe_json',
34 ], 54 ],
35 'include_dirs': [ 55 'include_dirs': [
36 '..', 56 '..',
37 ], 57 ],
38 'sources': [ 58 'sources': [
39 'safe_json/testing_json_parser.cc', 59 'safe_json/testing_json_parser.cc',
40 'safe_json/testing_json_parser.h', 60 'safe_json/testing_json_parser.h',
41 ], 61 ],
42 }, 62 },
43 { 63 {
44 'target_name': 'safe_json_parser_message_filter', 64 'target_name': 'safe_json_parser_message_filter',
45 'type': 'static_library', 65 'type': 'static_library',
46 'dependencies': [ 66 'dependencies': [
47 '../base/base.gyp:base', 67 '../base/base.gyp:base',
48 '../content/content.gyp:content_browser', 68 '../content/content.gyp:content_utility',
49 '../ipc/ipc.gyp:ipc', 69 '../ipc/ipc.gyp:ipc',
50 ], 70 ],
51 'include_dirs': [ 71 'include_dirs': [
52 '..', 72 '..',
53 ], 73 ],
54 'sources': [ 74 'sources': [
55 'safe_json/safe_json_parser_message_filter.cc', 75 'safe_json/safe_json_parser_message_filter.cc',
56 'safe_json/safe_json_parser_message_filter.h', 76 'safe_json/safe_json_parser_message_filter.h',
57 'safe_json/safe_json_parser_messages.cc', 77 'safe_json/safe_json_parser_messages.cc',
58 'safe_json/safe_json_parser_messages.h', 78 'safe_json/safe_json_parser_messages.h',
59 ], 79 ],
60 }, 80 },
61 ], 81 ],
82 'conditions': [
83 ['OS=="android"', {
84 'targets': [
85 {
86 # GN version: //components/safe_json/android:safe_json_java
87 'target_name': 'safe_json_java',
88 'type': 'none',
89 'dependencies': [
90 '../base/base.gyp:base',
91 ],
92 'variables': {
93 'java_in_dir': 'safe_json/android/java',
94 },
95 'includes': [ '../build/java.gypi' ],
96 },
97 {
98 # GN version: //components/safe_json:jni
99 'target_name': 'safe_json_jni_headers',
100 'type': 'none',
101 'sources': [
102 'safe_json/android/java/src/org/chromium/components/safejson/JsonSan itizer.java',
103 ],
104 'variables': {
105 'jni_gen_package': 'safe_json',
106 },
107 'includes': [ '../build/jni_generator.gypi' ],
108 },
109 ],
110 }],
111 ]
62 } 112 }
OLDNEW
« no previous file with comments | « components/components_tests.gyp ('k') | components/safe_json/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698