1# Copyright 2010-2018, Google Inc. 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: 7# 8# * Redistributions of source code must retain the above copyright 9# notice, this list of conditions and the following disclaimer. 10# * Redistributions in binary form must reproduce the above 11# copyright notice, this list of conditions and the following disclaimer 12# in the documentation and/or other materials provided with the 13# distribution. 14# * Neither the name of Google Inc. nor the names of its 15# contributors may be used to endorse or promote products derived from 16# this software without specific prior written permission. 17# 18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 21# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 30{ 31 'variables': { 32 'relative_dir': 'dictionary', 33 'gen_out_dir': '<(SHARED_INTERMEDIATE_DIR)/<(relative_dir)', 34 }, 35 'targets': [ 36 { 37 'target_name': 'dictionary', 38 'type': 'none', 39 'dependencies': [ 40 '../base/base.gyp:base', 41 'dictionary_base.gyp:suppression_dictionary', 42 'dictionary_base.gyp:user_dictionary', 43 'dictionary_impl', 44 'suffix_dictionary', 45 'system/system_dictionary.gyp:system_dictionary', 46 'system/system_dictionary.gyp:value_dictionary', 47 ], 48 }, 49 { 50 'target_name': 'suffix_dictionary', 51 'type': 'static_library', 52 'sources': [ 53 'suffix_dictionary.cc', 54 ], 55 'dependencies': [ 56 '../base/base.gyp:base', 57 '../base/base.gyp:serialized_string_array', 58 ], 59 }, 60 { 61 'target_name': 'dictionary_impl', 62 'type': 'static_library', 63 'sources': [ 64 'dictionary_impl.cc', 65 ], 66 'dependencies': [ 67 '../base/base.gyp:base', 68 '../config/config.gyp:config_handler', 69 '../protocol/protocol.gyp:commands_proto', 70 '../protocol/protocol.gyp:config_proto', 71 '../protocol/protocol.gyp:user_dictionary_storage_proto', 72 'dictionary_base.gyp:pos_matcher', 73 'dictionary_base.gyp:suppression_dictionary', 74 ], 75 }, 76 { 77 'target_name': 'gen_system_dictionary_data_main', 78 'type': 'executable', 79 'toolsets': ['host'], 80 'sources': [ 81 'gen_system_dictionary_data_main.cc', 82 ], 83 'dependencies': [ 84 '../base/base.gyp:base', 85 '../data_manager/data_manager_base.gyp:data_manager', 86 'dictionary_base.gyp:pos_matcher', 87 'system/system_dictionary.gyp:system_dictionary_builder', 88 ], 89 'msvs_settings': { 90 'VCLinkerTool': { 91 'LargeAddressAware': '2', 92 }, 93 }, 94 }, 95 { 96 'target_name': 'dictionary_mock', 97 'type': 'static_library', 98 'sources': [ 99 'dictionary_mock.cc', 100 ], 101 'dependencies': [ 102 '../base/base.gyp:base', 103 ], 104 }, 105 { 106 'target_name': 'dictionary_test_util', 107 'type': 'static_library', 108 'sources': [ 109 'dictionary_test_util.cc', 110 ], 111 'dependencies': [ 112 '../base/base.gyp:base', 113 '../testing/testing.gyp:testing', 114 ], 115 }, 116 ], 117} 118