OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2013 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 'variables': { | |
6 'component%': 'shared_library', | |
please use gerrit instead
2013/11/18 19:22:30
Please remove the 'variables' section. This variab
Dan Beam
2013/11/19 05:15:12
Done.
| |
7 }, | |
8 'target_defaults': { | |
9 'conditions': [ | |
10 ['OS == "linux" and "<(component)" == "shared_library"', { | |
11 # https://code.google.com/p/gyp/issues/detail?id=374 | |
12 'cflags': ['-fPIC'], | |
please use gerrit instead
2013/11/18 19:22:30
Please remove the 'target_defaults' section. Chrom
Dan Beam
2013/11/19 05:15:12
Done.
| |
13 }], | |
14 ], | |
15 }, | |
16 'targets': [ | |
17 { | |
18 'target_name': 'generated_messages', | |
19 'type': 'none', | |
20 'variables': { | |
21 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/libaddressinput', | |
22 }, | |
23 'actions': [ | |
24 { | |
25 'action_name': 'generate_messages', | |
26 'variables': { | |
27 'grit_grd_file': 'src/cpp/res/messages.grd', | |
28 }, | |
29 'includes': [ | |
30 '../../build/grit_action.gypi', | |
31 ], | |
32 }, | |
33 ], | |
34 'includes': [ | |
35 '../../build/grit_target.gypi', | |
36 ] | |
37 }, | |
38 { | |
39 'target_name': 'libaddressinput', | |
40 'type': '<(component)', | |
41 'include_dirs': [ | |
42 '<(SHARED_INTERMEDIATE_DIR)/libaddressinput', | |
43 'src/cpp/include', | |
44 'src/cpp/src', | |
45 ], | |
46 'sources': [ | |
47 'src/cpp/src/address_field.cc', | |
48 'src/cpp/src/address_field_util.cc', | |
49 'src/cpp/src/address_ui.cc', | |
50 'src/cpp/src/messages.cc', | |
51 'src/cpp/src/region_data_constants.cc', | |
52 'src/cpp/src/rule.cc', | |
53 # json.cc depends on rapidjson, which is not in Chrome. | |
54 ], | |
55 'sources!': [ | |
56 # TODO(dbeam): make these compile and integrate into Chrome. | |
57 'src/cpp/src/address_ui.cc', | |
58 'src/cpp/src/messages.cc', | |
59 'src/cpp/src/rule.cc', | |
60 ], | |
61 'dependencies': [ | |
62 'generated_messages', | |
63 ], | |
64 'direct_dependent_settings': { | |
65 'include_dirs': [ | |
66 'src/cpp/include', | |
67 ], | |
68 }, | |
69 }, | |
70 ], | |
71 } | |
OLD | NEW |