Index: third_party/libaddressinput/libaddressinput.gyp |
diff --git a/third_party/libaddressinput/libaddressinput.gyp b/third_party/libaddressinput/libaddressinput.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e6c3eddc4418b1f1af9a3504378012bcca2f43c1 |
--- /dev/null |
+++ b/third_party/libaddressinput/libaddressinput.gyp |
@@ -0,0 +1,71 @@ |
+# Copyright 2013 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+{ |
+ 'variables': { |
+ '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.
|
+ }, |
+ 'target_defaults': { |
+ 'conditions': [ |
+ ['OS == "linux" and "<(component)" == "shared_library"', { |
+ # https://code.google.com/p/gyp/issues/detail?id=374 |
+ '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.
|
+ }], |
+ ], |
+ }, |
+ 'targets': [ |
+ { |
+ 'target_name': 'generated_messages', |
+ 'type': 'none', |
+ 'variables': { |
+ 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/libaddressinput', |
+ }, |
+ 'actions': [ |
+ { |
+ 'action_name': 'generate_messages', |
+ 'variables': { |
+ 'grit_grd_file': 'src/cpp/res/messages.grd', |
+ }, |
+ 'includes': [ |
+ '../../build/grit_action.gypi', |
+ ], |
+ }, |
+ ], |
+ 'includes': [ |
+ '../../build/grit_target.gypi', |
+ ] |
+ }, |
+ { |
+ 'target_name': 'libaddressinput', |
+ 'type': '<(component)', |
+ 'include_dirs': [ |
+ '<(SHARED_INTERMEDIATE_DIR)/libaddressinput', |
+ 'src/cpp/include', |
+ 'src/cpp/src', |
+ ], |
+ 'sources': [ |
+ 'src/cpp/src/address_field.cc', |
+ 'src/cpp/src/address_field_util.cc', |
+ 'src/cpp/src/address_ui.cc', |
+ 'src/cpp/src/messages.cc', |
+ 'src/cpp/src/region_data_constants.cc', |
+ 'src/cpp/src/rule.cc', |
+ # json.cc depends on rapidjson, which is not in Chrome. |
+ ], |
+ 'sources!': [ |
+ # TODO(dbeam): make these compile and integrate into Chrome. |
+ 'src/cpp/src/address_ui.cc', |
+ 'src/cpp/src/messages.cc', |
+ 'src/cpp/src/rule.cc', |
+ ], |
+ 'dependencies': [ |
+ 'generated_messages', |
+ ], |
+ 'direct_dependent_settings': { |
+ 'include_dirs': [ |
+ 'src/cpp/include', |
+ ], |
+ }, |
+ }, |
+ ], |
+} |