Home | History | Annotate | Download | only in experimental
      1 # Copyright 2011 the V8 project authors. All rights reserved.
      2 # Redistribution and use in source and binary forms, with or without
      3 # modification, are permitted provided that the following conditions are
      4 # met:
      5 #
      6 #     * Redistributions of source code must retain the above copyright
      7 #       notice, this list of conditions and the following disclaimer.
      8 #     * Redistributions in binary form must reproduce the above
      9 #       copyright notice, this list of conditions and the following
     10 #       disclaimer in the documentation and/or other materials provided
     11 #       with the distribution.
     12 #     * Neither the name of Google Inc. nor the names of its
     13 #       contributors may be used to endorse or promote products derived
     14 #       from this software without specific prior written permission.
     15 #
     16 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     17 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     18 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
     19 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
     20 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
     21 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
     22 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     27 
     28 {
     29   'variables': {
     30     # TODO(cira): Find out how to pass this value for arbitrary embedder.
     31     # Chromium sets it in common.gypi and does force include of that file for
     32     # all sub projects.
     33     'icu_src_dir%': '../../../../third_party/icu',
     34   },
     35   'targets': [
     36     {
     37       'target_name': 'i18n_api',
     38       'type': 'static_library',
     39       'sources': [
     40         'break-iterator.cc',
     41         'break-iterator.h',
     42         'i18n-extension.cc',
     43         'i18n-extension.h',
     44 	'<(SHARED_INTERMEDIATE_DIR)/i18n-js.cc',
     45       ],
     46       'include_dirs': [
     47         '<(icu_src_dir)/public/common',
     48         '../..',
     49       ],
     50       'dependencies': [
     51         '<(icu_src_dir)/icu.gyp:*',
     52 	'js2c_i18n#host',
     53         '../../../tools/gyp/v8.gyp:v8',
     54       ],
     55     },
     56     {
     57       'target_name': 'js2c_i18n',
     58       'type': 'none',
     59       'toolsets': ['host'],
     60       'variables': {
     61         'library_files': [
     62 	  'i18n.js'
     63 	],
     64       },
     65       'actions': [
     66         {
     67 	  'action_name': 'js2c_i18n',
     68 	  'inputs': [
     69 	    '../../../tools/js2c.py',
     70 	    '<@(library_files)',
     71 	  ],
     72 	  'outputs': [
     73 	    '<(SHARED_INTERMEDIATE_DIR)/i18n-js.cc',
     74 	    '<(SHARED_INTERMEDIATE_DIR)/i18n-js-empty.cc'
     75 	  ],
     76 	  'action': [
     77 	    'python',
     78 	    '../../../tools/js2c.py',
     79 	    '<@(_outputs)',
     80 	    'I18N',
     81 	    '<@(library_files)'
     82 	  ],
     83 	},
     84       ],
     85     },
     86   ],  # targets
     87 }
     88