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

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

Issue 6930013: Re-committing http://codereview.chromium.org/6803005/ after fixing multi-dll build: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 7 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 # Copyright (c) 2011 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 {
6 'variables': {
7 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out',
8 },
9 'target_defaults': {
10 'include_dirs': [
11 '../..', # add it first, so src/base headers are used instead of the ones
12 # brought with the library as cc files would be taken from the
13 # main chrome tree as well.
14 'cpp/src',
15 '<(protoc_out_dir)',
16 '../protobuf/src',
17 '../icu/public/common',
18 '../icu/public/i18n',
19 ],
20 'defines': [
21 'U_USING_ICU_NAMESPACE=0',
22 ],
23 'conditions': [
24 ['OS!="win" or component=="static_library"', {
25 'defines': [
26 'U_STATIC_IMPLEMENTATION',
27 ],
28 }],
29 ],
30 },
31 'targets': [{
32 'target_name': 'libphonenumber',
33 'type': '<(library)',
34 'dependencies': [
35 '../icu/icu.gyp:icui18n',
36 '../icu/icu.gyp:icuuc',
37 '../protobuf/protobuf.gyp:protobuf_lite',
38 '../../base/base.gyp:base',
39 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynami c_annotations',
40 'phonenumber_proto',
41 ],
42 'sources': [
43 'chrome/regexp_adapter_icuregexp.cc',
44 'cpp/src/default_logger.cc',
45 'cpp/src/logger_adapter.cc',
46 'cpp/src/metadata.cc',
47 'cpp/src/phonenumber.cc',
48 'cpp/src/phonenumberutil.cc',
49 'cpp/src/stringutil.cc',
50 'cpp/src/utf/rune.c',
51 'cpp/src/utf/unicodetext.cc',
52 'cpp/src/utf/unilib.cc',
53 # Generated by phonenumber_proto.
54 '<(protoc_out_dir)/phonemetadata.pb.cc',
55 '<(protoc_out_dir)/phonenumber.pb.cc',
56 ],
57 'conditions': [
58 ['OS=="win"', {
59 'action': [
60 '/wo4309',
61 ],
62 }],
63 ],
64 },
65 {
66 # Protobuf compiler / generate rule for the phones
67 'target_name': 'phonenumber_proto',
68 'type': 'none',
69 'sources': [
70 'resources/phonemetadata.proto',
71 'resources/phonenumber.proto',
72 ],
73 'rules': [{
74 'rule_name': 'genproto',
75 'extension': 'proto',
76 'inputs': [
77 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
78 ],
79 'variables': {
80 # The protoc compiler requires a proto_path argument with the
81 # directory containing the .proto file.
82 # There's no generator variable that corresponds to this, so fake it.
83 'rule_input_relpath': 'resources',
84 },
85 'outputs': [
86 '<(protoc_out_dir)/<(RULE_INPUT_ROOT).pb.h',
87 '<(protoc_out_dir)/<(RULE_INPUT_ROOT).pb.cc',
88 ],
89 'action': [
90 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
91 '--proto_path=<(rule_input_relpath)',
92 '<(rule_input_relpath)/<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)',
93 '--cpp_out=<(protoc_out_dir)',
94 ],
95 'message': 'Generating C++ code from <(RULE_INPUT_PATH)',
96 }],
97 'dependencies': [
98 '../protobuf/protobuf.gyp:protobuf_lite',
99 '../protobuf/protobuf.gyp:protoc#host',
100 ],
101 'direct_dependent_settings': {
102 'include_dirs': [
103 '<(protoc_out_dir)',
104 ]
105 },
106 'export_dependent_settings': [
107 '../../third_party/protobuf/protobuf.gyp:protobuf_lite',
108 ],
109 },
110 {
111 'target_name': 'libphonenumber_unittests',
112 'type': 'executable',
113 'sources': [
114 '../../base/test/run_all_unittests.cc',
115 'cpp/src/phonenumberutil_test.cc',
116 'cpp/src/regexp_adapter_unittest.cc',
117 'cpp/src/stringutil_test.cc',
118 'cpp/src/test_metadata.cc',
119 ],
120 'dependencies': [
121 '../icu/icu.gyp:icui18n',
122 '../icu/icu.gyp:icuuc',
123 '../protobuf/protobuf.gyp:protobuf_lite',
124 '../../base/base.gyp:base',
125 '../../base/base.gyp:test_support_base',
126 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynami c_annotations',
127 '../../testing/gmock.gyp:gmock',
128 '../../testing/gtest.gyp:gtest',
129 'libphonenumber',
130 ],
131 'conditions': [
132 ['OS=="win"', {
133 'action': [
134 '/wo4309',
135 ],
136 }],
137 ],
138 }]
139 }
OLDNEW
« no previous file with comments | « third_party/libphonenumber/cpp/src/utf/utfdef.h ('k') | third_party/libphonenumber/patches/version186.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698