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': 'engine', 33 'gen_out_dir': '<(SHARED_INTERMEDIATE_DIR)/<(relative_dir)', 34 }, 35 'targets': [ 36 { 37 'target_name': 'engine_builder', 38 'type': 'static_library', 39 'sources': [ 40 'engine_builder.cc', 41 ], 42 'dependencies': [ 43 'engine', 44 '../base/base.gyp:base', 45 '../data_manager/data_manager_base.gyp:data_manager', 46 '../protocol/protocol.gyp:engine_builder_proto', 47 ], 48 }, 49 { 50 'target_name': 'engine', 51 'type': 'static_library', 52 'sources': [ 53 '<(gen_out_dir)/../dictionary/pos_matcher.h', 54 'engine.cc', 55 ], 56 'dependencies': [ 57 '../base/base.gyp:base', 58 '../converter/converter.gyp:converter', 59 '../converter/converter_base.gyp:connector', 60 '../converter/converter_base.gyp:segmenter', 61 '../dictionary/dictionary.gyp:dictionary_impl', 62 '../dictionary/dictionary.gyp:suffix_dictionary', 63 '../dictionary/dictionary_base.gyp:pos_matcher', 64 '../dictionary/dictionary_base.gyp:suppression_dictionary', 65 '../dictionary/dictionary_base.gyp:user_dictionary', 66 '../dictionary/dictionary_base.gyp:user_pos', 67 '../dictionary/system/system_dictionary.gyp:system_dictionary', 68 '../dictionary/system/system_dictionary.gyp:value_dictionary', 69 '../prediction/prediction.gyp:prediction', 70 '../prediction/prediction_base.gyp:suggestion_filter', 71 '../protocol/protocol.gyp:commands_proto', 72 '../protocol/protocol.gyp:user_dictionary_storage_proto', 73 '../rewriter/rewriter.gyp:rewriter', 74 ], 75 }, 76 { 77 'target_name': 'mock_converter_engine', 78 'type': 'static_library', 79 'sources': [ 80 'mock_converter_engine.cc', 81 'user_data_manager_mock.cc', 82 ], 83 'dependencies': [ 84 '../base/base.gyp:base', 85 '../converter/converter_base.gyp:converter_mock' 86 ], 87 }, 88 { 89 'target_name': 'oss_engine_factory', 90 'type': 'none', 91 'dependencies': [ 92 '../base/base.gyp:base', 93 '../data_manager/oss/oss_data_manager.gyp:oss_data_manager', 94 '../prediction/prediction.gyp:prediction', 95 'engine', 96 ], 97 }, 98 { 99 'target_name': 'mock_data_engine_factory', 100 'type': 'static_library', 101 'sources': [ 102 'mock_data_engine_factory.cc', 103 ], 104 'dependencies': [ 105 '../data_manager/testing/mock_data_manager.gyp:mock_data_manager', 106 'engine', 107 ], 108 }, 109 { 110 'target_name': 'engine_factory', 111 'type': 'none', 112 'sources': [ 113 'engine_factory.h', 114 ], 115 'dependencies': [ 116 'oss_engine_factory', 117 ], 118 'conditions': [ 119 ], 120 }, 121 { 122 'target_name': 'minimal_engine', 123 'type': 'static_library', 124 'sources': [ 125 'minimal_engine.cc', 126 ], 127 'dependencies': [ 128 '../composer/composer.gyp:composer', 129 '../converter/converter.gyp:converter', 130 '../data_manager/data_manager_base.gyp:data_manager', 131 '../dictionary/dictionary_base.gyp:suppression_dictionary', 132 '../protocol/protocol.gyp:config_proto', 133 '../request/request.gyp:conversion_request', 134 ], 135 }, 136 ], 137} 138