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

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

Issue 556933002: Remove protobuf lite for java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase before submit Created 6 years, 3 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
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 'conditions': [ 6 'conditions': [
7 ['use_system_protobuf==0', { 7 ['use_system_protobuf==0', {
8 'conditions': [ 8 'conditions': [
9 ['OS!="win"', { 9 ['OS!="win"', {
10 'variables': { 10 'variables': {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 'action': [ 62 'action': [
63 '<@(ninja_cmd)', 63 '<@(ninja_cmd)',
64 'protoc', 64 'protoc',
65 ], 65 ],
66 'message': 'Generating the C++ protocol buffers compiler', 66 'message': 'Generating the C++ protocol buffers compiler',
67 }, 67 },
68 ], 68 ],
69 }, 69 },
70 ], 70 ],
71 }], 71 }],
72 ['OS=="android"', {
73 'targets': [
74 {
75 'target_name': 'protobuf_lite_javalib',
76 'type' : 'none',
77 'dependencies': [
78 'protoc#host',
79 ],
80 'variables': {
81 'script_descriptors': './protobuf_lite_java_descriptor_proto.py' ,
82 'script_pom': './protobuf_lite_java_parse_pom.py',
83 'protoc': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE _SUFFIX)',
84 # Variables needed by java.gypi below.
85 'java_out_dir': '<(PRODUCT_DIR)/java_proto/protobuf_lite_java_de scriptor_proto',
86 'generated_src_dirs': ['<(java_out_dir)'],
87 'java_in_dir': 'java',
88 'maven_pom': '<(java_in_dir)/pom.xml',
89 'javac_includes': ['<!@(<(script_pom) <(maven_pom))'],
90 'additional_input_paths': [
91 '<(java_out_dir)/com/google/protobuf/DescriptorProtos.java'
92 ],
93 },
94 'actions': [
95 {
96 'action_name': 'protobuf_lite_java_gen_descriptor_proto',
97 'inputs': [
98 '<(script_descriptors)',
99 '<(protoc)',
100 'src/google/protobuf/descriptor.proto',
101 ],
102 'outputs': [
103 '<(java_out_dir)/com/google/protobuf/DescriptorProtos.java',
104 ],
105 'action': [
106 '<(script_descriptors)',
107 '<(protoc)',
108 '<(java_out_dir)',
109 'src',
110 'src/google/protobuf/descriptor.proto',
111 ],
112 'message': 'Generating descriptor protos for Java',
113 },
114 ],
115 # Now that we have generated DescriptorProtos.java, build jar.
116 'includes': ['../../build/java.gypi'],
117 },
118 ]
119 }],
120 ], 72 ],
121 'targets': [ 73 'targets': [
122 # The "lite" lib is about 1/7th the size of the heavy lib, 74 # The "lite" lib is about 1/7th the size of the heavy lib,
123 # but it doesn't support some of the more exotic features of 75 # but it doesn't support some of the more exotic features of
124 # protobufs, like reflection. To generate C++ code that can link 76 # protobufs, like reflection. To generate C++ code that can link
125 # against the lite version of the library, add the option line: 77 # against the lite version of the library, add the option line:
126 # 78 #
127 # option optimize_for = LITE_RUNTIME; 79 # option optimize_for = LITE_RUNTIME;
128 # 80 #
129 # to your .proto file. 81 # to your .proto file.
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 'toolsets': ['host', 'target'], 387 'toolsets': ['host', 'target'],
436 }, 388 },
437 { 389 {
438 'target_name': 'py_proto', 390 'target_name': 'py_proto',
439 'type': 'none', 391 'type': 'none',
440 }, 392 },
441 ], 393 ],
442 }], 394 }],
443 ], 395 ],
444 } 396 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698