| # Copyright 2010-2015, Google Inc. |
| # All rights reserved. |
| # |
| # Redistribution and use in source and binary forms, with or without |
| # modification, are permitted provided that the following conditions are |
| # met: |
| # |
| # * Redistributions of source code must retain the above copyright |
| # notice, this list of conditions and the following disclaimer. |
| # * Redistributions in binary form must reproduce the above |
| # copyright notice, this list of conditions and the following disclaimer |
| # in the documentation and/or other materials provided with the |
| # distribution. |
| # * Neither the name of Google Inc. nor the names of its |
| # contributors may be used to endorse or promote products derived from |
| # this software without specific prior written permission. |
| # |
| # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| |
| # This build file is expected to be used on Windows only. |
| { |
| 'variables': { |
| 'relative_dir': 'win32/base', |
| 'gen_out_dir': '<(SHARED_INTERMEDIATE_DIR)/<(relative_dir)', |
| }, |
| 'targets': [ |
| { |
| 'target_name': 'win32_base_dummy', |
| 'type': 'none', |
| 'sources': [ |
| # empty |
| ], |
| }, |
| ], |
| 'conditions': [ |
| ['OS=="win"', { |
| # TODO(yukawa): Refactor following targets when the implementation of |
| # TSF Mozc is completed. |
| 'targets': [ |
| { |
| 'target_name': 'imframework_util', |
| 'type': 'static_library', |
| 'sources': [ |
| 'imm_reconvert_string.cc', |
| 'imm_registrar.cc', |
| 'imm_util.cc', |
| 'input_dll.cc', |
| 'keyboard_layout_id.cc', |
| 'tsf_profile.cc', |
| 'tsf_registrar.cc', |
| ], |
| 'dependencies': [ |
| '../../base/base.gyp:base', |
| ], |
| }, |
| { |
| 'target_name': 'imframework_util_test', |
| 'type': 'executable', |
| 'sources': [ |
| 'imm_reconvert_string_test.cc', |
| 'input_dll_test.cc', |
| 'keyboard_layout_id_test.cc', |
| ], |
| 'dependencies': [ |
| '../../base/base.gyp:base', |
| '../../session/session_base.gyp:session_protocol', |
| '../../testing/testing.gyp:gtest_main', |
| 'imframework_util', |
| ], |
| 'variables': { |
| 'test_size': 'small', |
| }, |
| }, |
| { |
| 'target_name': 'ime_impl_base', |
| 'type': 'static_library', |
| 'sources': [ |
| 'accessible_object.cc', |
| 'accessible_object_info.cc', |
| 'browser_info.cc', |
| 'config_snapshot.cc', |
| 'conversion_mode_util.cc', |
| 'deleter.cc', |
| 'focus_hierarchy_observer.cc', |
| 'indicator_visibility_tracker.cc', |
| 'input_state.cc', |
| 'keyboard.cc', |
| 'keyevent_handler.cc', |
| 'string_util.cc', |
| 'surrogate_pair_observer.cc', |
| 'win32_window_util.cc', |
| ], |
| 'dependencies': [ |
| '../../base/base.gyp:base', |
| '../../config/config.gyp:config_handler', |
| '../../config/config.gyp:config_protocol', |
| '../../session/session_base.gyp:key_info_util', |
| '../../session/session_base.gyp:session_protocol', |
| '../../session/session_base.gyp:output_util', |
| ], |
| 'link_settings': { |
| 'msvs_settings': { |
| 'VCLinkerTool': { |
| 'AdditionalDependencies': [ |
| 'oleacc.lib', |
| ], |
| }, |
| }, |
| }, |
| }, |
| { |
| 'target_name': 'ime_impl_base_test', |
| 'type': 'executable', |
| 'sources': [ |
| 'conversion_mode_util_test.cc', |
| 'deleter_test.cc', |
| 'indicator_visibility_tracker_test.cc', |
| 'keyboard_test.cc', |
| 'keyevent_handler_test.cc', |
| 'string_util_test.cc', |
| 'surrogate_pair_observer_test.cc', |
| ], |
| 'dependencies': [ |
| '../../client/client.gyp:client', |
| '../../testing/testing.gyp:gtest_main', |
| 'ime_impl_base', |
| ], |
| }, |
| { |
| 'target_name': 'ime_base', |
| 'type': 'static_library', |
| 'sources': [ |
| 'migration_util.cc', |
| 'uninstall_helper.cc', |
| ], |
| 'conditions': [ |
| ['branding=="GoogleJapaneseInput"', { |
| 'sources': [ |
| 'omaha_util.cc', |
| ], |
| }], |
| ], |
| 'dependencies': [ |
| '../../base/base.gyp:base', |
| 'imframework_util', |
| ], |
| }, |
| { |
| 'target_name': 'win32_base_test', |
| 'type': 'executable', |
| 'sources': [ |
| 'uninstall_helper_test.cc', |
| ], |
| 'dependencies': [ |
| '../../base/base.gyp:base', |
| '../../session/session_base.gyp:session_protocol', |
| '../../testing/testing.gyp:gtest_main', |
| 'ime_base', |
| ], |
| 'conditions': [ |
| ['branding=="GoogleJapaneseInput"', { |
| 'sources': [ |
| 'omaha_util_test.cc', |
| ], |
| }], |
| ], |
| 'variables': { |
| 'test_size': 'small', |
| }, |
| }, |
| { |
| 'target_name': 'text_icon', |
| 'type': 'static_library', |
| 'sources': [ |
| 'text_icon.cc', |
| ], |
| 'dependencies': [ |
| '../../base/base.gyp:base', |
| ], |
| }, |
| { |
| 'target_name': 'text_icon_test', |
| 'type': 'executable', |
| 'sources': [ |
| 'text_icon_test.cc', |
| ], |
| 'dependencies': [ |
| '../../base/base.gyp:win_font_test_helper', |
| '../../testing/testing.gyp:gtest_main', |
| 'text_icon', |
| ], |
| }, |
| { |
| 'target_name': 'win32_file_verifier', |
| 'type': 'static_library', |
| 'sources': [ |
| 'file_verifier.cc', |
| ], |
| 'dependencies': [ |
| '../../base/base.gyp:base', |
| ], |
| 'link_settings': { |
| 'msvs_settings': { |
| 'VCLinkerTool': { |
| 'AdditionalDependencies': [ |
| 'crypt32.lib', |
| 'imagehlp.lib', |
| 'wintrust.lib', |
| ], |
| 'DelayLoadDLLs': [ |
| 'imagehlp.dll', |
| 'wintrust.dll', |
| ], |
| }, |
| }, |
| }, |
| }, |
| { |
| 'target_name': 'win32_file_verifier_test', |
| 'type': 'executable', |
| 'sources': [ |
| 'file_verifier_test.cc', |
| ], |
| 'dependencies': [ |
| '../../base/base.gyp:base', |
| '../../testing/testing.gyp:gtest_main', |
| 'win32_file_verifier', |
| ], |
| 'variables': { |
| 'test_size': 'small', |
| # Copy the test data for character set test. |
| 'test_data_subdir': 'data/test/win32/integrity', |
| 'test_data': [ |
| '../../<(test_data_subdir)/mozc_test_binary.exe', |
| '../../<(test_data_subdir)/mozc_test_binary_modified.exe', |
| '../../<(test_data_subdir)/mozc_test_binary_modified_signed.exe', |
| '../../<(test_data_subdir)/mozc_test_binary_no_checksum.exe', |
| '../../<(test_data_subdir)/mozc_test_binary_signed.exe', |
| ], |
| }, |
| 'includes': [ '../../gyp/install_testdata.gypi' ], |
| }, |
| ], |
| }], |
| ], |
| 'targets': [ |
| # Test cases meta target: this target is referred from gyp/tests.gyp |
| { |
| 'target_name': 'win32_base_all_test', |
| 'type': 'none', |
| 'conditions': [ |
| ['OS=="win"', { |
| 'dependencies': [ |
| 'ime_impl_base_test', |
| 'imframework_util_test', |
| 'win32_base_test', |
| 'win32_file_verifier_test', |
| ], |
| }], |
| ], |
| }, |
| ], |
| } |