Home | History | Annotate | Download | only in ime
      1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 {
      6   'variables': {
      7     'ime_files': [
      8       'character_composer.cc',
      9       'character_composer.h',
     10       'composition_text.cc',
     11       'composition_text.h',
     12       'composition_underline.h',
     13       'input_method.h',
     14       'input_method_base.cc',
     15       'input_method_base.h',
     16       'input_method_delegate.h',
     17       'input_method_factory.cc',
     18       'input_method_factory.h',
     19       'input_method_ibus.cc',
     20       'input_method_ibus.h',
     21       'input_method_imm32.cc',
     22       'input_method_imm32.h',
     23       'input_method_initializer.h',
     24       'input_method_initializer.cc',
     25       'input_method_tsf.cc',
     26       'input_method_tsf.h',
     27       'input_method_win.cc',
     28       'input_method_win.h',
     29       'mock_input_method.cc',
     30       'mock_input_method.h',
     31       'fake_input_method.cc',
     32       'fake_input_method.h',
     33       'text_input_client.cc',
     34       'text_input_client.h',
     35       'text_input_type.h',
     36     ],
     37     'win_ime_files': [
     38       'win/imm32_manager.cc',
     39       'win/imm32_manager.h',
     40       'win/tsf_bridge.cc',
     41       'win/tsf_bridge.h',
     42       'win/tsf_event_router.cc',
     43       'win/tsf_event_router.h',
     44       'win/tsf_input_scope.cc',
     45       'win/tsf_input_scope.h',
     46       'win/tsf_text_store.cc',
     47       'win/tsf_text_store.h',
     48     ],
     49   },
     50   'sources': [
     51     '<@(ime_files)',
     52     '<@(win_ime_files)',
     53   ],
     54   'conditions': [
     55     ['use_aura==0 and OS!="win"', {
     56       'sources!': [
     57         '<@(ime_files)',
     58       ],
     59       'sources/': [
     60         # gtk_im_context_util* use ui::CompositionText.
     61         ['include', 'composition_text\\.(cc|h)$'],
     62         # Initializer code is platform neutral.
     63         ['include', 'input_method_initializer\\.(cc|h)$'],
     64         # native_textfield_views* use ui::TextInputClient.
     65         ['include', 'text_input_client\\.(cc|h)$'],
     66       ],
     67     }],
     68     ['chromeos==0 or use_x11==0', {
     69       'sources!': [
     70         'character_composer.cc',
     71         'character_composer.h',
     72         'input_method_ibus.cc',
     73         'input_method_ibus.h',
     74       ],
     75     }],
     76     ['chromeos==1', {
     77       'dependencies': [
     78         '<(DEPTH)/chromeos/chromeos.gyp:chromeos',
     79       ],
     80     }],
     81     ['OS!="win"', {
     82       'sources!': [
     83         '<@(win_ime_files)',
     84         'input_method_imm32.cc',
     85         'input_method_imm32.h',
     86         'input_method_tsf.cc',
     87         'input_method_tsf.h',
     88       ],
     89     }],
     90   ],
     91 }
     92