| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 'variables': { |
| 6 # TODO(rouslan): Use the src/ directory. http://crbug.com/327046 |
| 7 'libaddressinput_dir': 'chromium', |
| 8 }, |
| 5 'target_defaults': { | 9 'target_defaults': { |
| 6 'conditions': [ | 10 'conditions': [ |
| 7 ['OS=="mac" or OS=="ios"', { | 11 ['OS=="mac" or OS=="ios"', { |
| 8 'xcode_settings': { | 12 'xcode_settings': { |
| 9 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'NO', | 13 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'NO', |
| 10 }, | 14 }, |
| 11 }], | 15 }], |
| 12 ], | 16 ], |
| 13 }, | 17 }, |
| 14 'targets': [ | 18 'targets': [ |
| 15 { | 19 { |
| 16 'target_name': 'generated_messages', | 20 'target_name': 'generated_messages', |
| 17 'type': 'none', | 21 'type': 'none', |
| 18 'variables': { | 22 'variables': { |
| 19 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/libaddressinput/', | 23 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/libaddressinput/', |
| 20 }, | 24 }, |
| 21 'actions': [ | 25 'actions': [ |
| 22 { | 26 { |
| 23 'action_name': 'generate_messages', | 27 'action_name': 'generate_messages', |
| 24 'variables': { | 28 'variables': { |
| 25 'grit_grd_file': 'src/cpp/res/messages.grd', | 29 'grit_grd_file': '<(libaddressinput_dir)/cpp/res/messages.grd', |
| 26 }, | 30 }, |
| 27 'includes': [ | 31 'includes': [ |
| 28 '../../build/grit_action.gypi', | 32 '../../build/grit_action.gypi', |
| 29 ], | 33 ], |
| 30 }, | 34 }, |
| 31 ], | 35 ], |
| 32 'includes': [ | 36 'includes': [ |
| 33 '../../build/grit_target.gypi', | 37 '../../build/grit_target.gypi', |
| 34 ], | 38 ], |
| 35 }, | 39 }, |
| 36 { | 40 { |
| 37 'target_name': 'libaddressinput', | 41 'target_name': 'libaddressinput', |
| 38 'type': 'static_library', | 42 'type': 'static_library', |
| 39 'include_dirs': [ | 43 'include_dirs': [ |
| 40 'chromium/', | 44 '<(libaddressinput_dir)/cpp/include/', |
| 41 'src/cpp/include/', | |
| 42 '<(SHARED_INTERMEDIATE_DIR)/libaddressinput/', | 45 '<(SHARED_INTERMEDIATE_DIR)/libaddressinput/', |
| 43 ], | 46 ], |
| 44 'sources': [ | 47 'sources': [ |
| 45 'chromium/util/json.cc', | 48 'chromium/json.cc', |
| 46 'chromium/util/json.h', | 49 '<(libaddressinput_dir)/cpp/include/libaddressinput/address_field.h', |
| 47 'src/cpp/include/libaddressinput/address_field.h', | 50 '<(libaddressinput_dir)/cpp/include/libaddressinput/address_ui_component
.h', |
| 48 'src/cpp/include/libaddressinput/address_ui_component.h', | 51 '<(libaddressinput_dir)/cpp/include/libaddressinput/address_ui.h', |
| 49 'src/cpp/include/libaddressinput/address_ui.h', | 52 '<(libaddressinput_dir)/cpp/include/libaddressinput/localization.h', |
| 50 'src/cpp/include/libaddressinput/localization.h', | 53 '<(libaddressinput_dir)/cpp/src/address_field.cc', |
| 51 'src/cpp/src/address_field.cc', | 54 '<(libaddressinput_dir)/cpp/src/address_field_util.cc', |
| 52 'src/cpp/src/address_field_util.cc', | 55 '<(libaddressinput_dir)/cpp/src/address_field_util.h', |
| 53 'src/cpp/src/address_field_util.h', | 56 '<(libaddressinput_dir)/cpp/src/address_ui.cc', |
| 54 'src/cpp/src/address_ui.cc', | 57 '<(libaddressinput_dir)/cpp/src/localization.cc', |
| 55 'src/cpp/src/localization.cc', | 58 '<(libaddressinput_dir)/cpp/src/region_data_constants.cc', |
| 56 'src/cpp/src/region_data_constants.cc', | 59 '<(libaddressinput_dir)/cpp/src/region_data_constants.h', |
| 57 'src/cpp/src/region_data_constants.h', | 60 '<(libaddressinput_dir)/cpp/src/rule.cc', |
| 58 'src/cpp/src/rule.cc', | 61 '<(libaddressinput_dir)/cpp/src/rule.h', |
| 59 'src/cpp/src/rule.h', | 62 '<(libaddressinput_dir)/cpp/src/util/json.h', |
| 60 ], | 63 ], |
| 61 'dependencies': [ | 64 'dependencies': [ |
| 62 'generated_messages', | 65 'generated_messages', |
| 63 '<(DEPTH)/base/base.gyp:base', | 66 '<(DEPTH)/base/base.gyp:base', |
| 64 ], | 67 ], |
| 65 'direct_dependent_settings': { | 68 'direct_dependent_settings': { |
| 66 'include_dirs': [ | 69 'include_dirs': [ |
| 67 'src/cpp/include/', | 70 '<(libaddressinput_dir)/cpp/include/', |
| 68 ], | 71 ], |
| 69 }, | 72 }, |
| 70 }, | 73 }, |
| 71 { | 74 { |
| 72 'target_name': 'libaddressinput_unittests', | 75 'target_name': 'libaddressinput_unittests', |
| 73 'type': '<(gtest_target_type)', | 76 'type': '<(gtest_target_type)', |
| 74 'include_dirs': [ | 77 'include_dirs': [ |
| 75 'src/cpp/src', | 78 '<(libaddressinput_dir)/cpp/src/', |
| 76 '<(DEPTH)/testing/gtest/include/', | 79 '<(DEPTH)/testing/gtest/include/', |
| 77 '<(SHARED_INTERMEDIATE_DIR)/libaddressinput/', | 80 '<(SHARED_INTERMEDIATE_DIR)/libaddressinput/', |
| 78 ], | 81 ], |
| 79 'sources': [ | 82 'sources': [ |
| 80 'src/cpp/test/address_field_util_test.cc', | 83 '<(libaddressinput_dir)/cpp/test/address_field_util_test.cc', |
| 81 'src/cpp/test/address_ui_test.cc', | 84 '<(libaddressinput_dir)/cpp/test/address_ui_test.cc', |
| 82 'src/cpp/test/localization_test.cc', | 85 '<(libaddressinput_dir)/cpp/test/localization_test.cc', |
| 83 'src/cpp/test/region_data_constants_test.cc', | 86 '<(libaddressinput_dir)/cpp/test/region_data_constants_test.cc', |
| 84 'src/cpp/test/rule_test.cc', | 87 '<(libaddressinput_dir)/cpp/test/rule_test.cc', |
| 85 'src/cpp/test/util/json_test.cc', | 88 '<(libaddressinput_dir)/cpp/test/util/json_test.cc', |
| 86 ], | 89 ], |
| 87 'dependencies': [ | 90 'dependencies': [ |
| 88 'libaddressinput', | 91 'libaddressinput', |
| 89 '<(DEPTH)/base/base.gyp:run_all_unittests', | 92 '<(DEPTH)/base/base.gyp:run_all_unittests', |
| 90 '<(DEPTH)/testing/gtest.gyp:gtest', | 93 '<(DEPTH)/testing/gtest.gyp:gtest', |
| 91 ], | 94 ], |
| 92 }, | 95 }, |
| 93 ], | 96 ], |
| 94 } | 97 } |
| OLD | NEW |