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 'mozc_dir': '..', 33 'relative_dir': 'composer', 34 'gen_out_dir': '<(SHARED_INTERMEDIATE_DIR)/<(relative_dir)', 35 }, 36 'targets': [ 37 { 38 'target_name': 'composer', 39 'type': 'static_library', 40 'sources': [ 41 'composer.cc', 42 'internal/char_chunk.cc', 43 'internal/composition.cc', 44 'internal/composition_input.cc', 45 'internal/converter.cc', 46 'internal/mode_switching_handler.cc', 47 'internal/transliterators.cc', 48 'internal/typing_corrector.cc', 49 'internal/typing_model.cc', 50 'table.cc', 51 ], 52 'dependencies': [ 53 '../base/base.gyp:base', 54 '../base/base.gyp:config_file_stream', 55 '../composer/composer.gyp:key_event_util', 56 '../composer/composer.gyp:key_parser', 57 '../config/config.gyp:character_form_manager', 58 '../config/config.gyp:config_handler', 59 '../protocol/protocol.gyp:config_proto', 60 '../protobuf/protobuf.gyp:protobuf', 61 '../protocol/protocol.gyp:commands_proto', 62 '../transliteration/transliteration.gyp:transliteration', 63 ], 64 }, 65 { 66 'target_name': 'key_event_util', 67 'type': 'static_library', 68 'sources': [ 69 'key_event_util.cc', 70 ], 71 'dependencies': [ 72 '../base/base.gyp:base', 73 '../protocol/protocol.gyp:commands_proto', 74 ], 75 }, 76 { 77 'target_name': 'key_parser', 78 'type': 'static_library', 79 'sources': [ 80 'key_parser.cc', 81 ], 82 'dependencies': [ 83 '../base/base.gyp:base', 84 '../protocol/protocol.gyp:config_proto', 85 '../protocol/protocol.gyp:commands_proto', 86 ], 87 }, 88 ], 89} 90