OLD | NEW |
1 # Copyright 2011 the V8 project authors. All rights reserved. | 1 # Copyright 2011 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 27 matching lines...) Expand all Loading... |
38 'type': 'static_library', | 38 'type': 'static_library', |
39 'sources': [ | 39 'sources': [ |
40 'break-iterator.cc', | 40 'break-iterator.cc', |
41 'break-iterator.h', | 41 'break-iterator.h', |
42 'collator.cc', | 42 'collator.cc', |
43 'collator.h', | 43 'collator.h', |
44 'i18n-extension.cc', | 44 'i18n-extension.cc', |
45 'i18n-extension.h', | 45 'i18n-extension.h', |
46 'i18n-locale.cc', | 46 'i18n-locale.cc', |
47 'i18n-locale.h', | 47 'i18n-locale.h', |
| 48 'i18n-natives.h', |
48 'i18n-utils.cc', | 49 'i18n-utils.cc', |
49 'i18n-utils.h', | 50 'i18n-utils.h', |
50 'language-matcher.cc', | 51 'language-matcher.cc', |
51 'language-matcher.h', | 52 'language-matcher.h', |
52 '<(SHARED_INTERMEDIATE_DIR)/i18n-js.cc', | 53 '<(SHARED_INTERMEDIATE_DIR)/i18n-js.cc', |
53 ], | 54 ], |
54 'include_dirs': [ | 55 'include_dirs': [ |
55 '<(icu_src_dir)/public/common', | 56 '<(icu_src_dir)/public/common', |
56 '../..', | 57 # v8/ is root for all includes. |
| 58 '../../..' |
57 ], | 59 ], |
58 'dependencies': [ | 60 'dependencies': [ |
59 '<(icu_src_dir)/icu.gyp:*', | 61 '<(icu_src_dir)/icu.gyp:*', |
60 'js2c_i18n#host', | 62 'js2c_i18n#host', |
61 '../../../tools/gyp/v8.gyp:v8', | 63 '../../../tools/gyp/v8.gyp:v8', |
62 ], | 64 ], |
| 65 'direct_dependent_settings': { |
| 66 # Adds -Iv8 for embedders. |
| 67 'include_dirs': [ |
| 68 '../../..' |
| 69 ], |
| 70 }, |
63 }, | 71 }, |
64 { | 72 { |
65 'target_name': 'js2c_i18n', | 73 'target_name': 'js2c_i18n', |
66 'type': 'none', | 74 'type': 'none', |
67 'toolsets': ['host'], | 75 'toolsets': ['host'], |
68 'variables': { | 76 'variables': { |
69 'library_files': [ | 77 'library_files': [ |
70 'i18n.js' | 78 'i18n.js' |
71 ], | 79 ], |
72 }, | 80 }, |
73 'actions': [ | 81 'actions': [ |
74 { | 82 { |
75 'action_name': 'js2c_i18n', | 83 'action_name': 'js2c_i18n', |
76 'inputs': [ | 84 'inputs': [ |
77 '../../../tools/js2c.py', | 85 'i18n-js2c.py', |
78 '<@(library_files)', | 86 '<@(library_files)', |
79 ], | 87 ], |
80 'outputs': [ | 88 'outputs': [ |
81 '<(SHARED_INTERMEDIATE_DIR)/i18n-js.cc', | 89 '<(SHARED_INTERMEDIATE_DIR)/i18n-js.cc', |
82 ], | 90 ], |
83 'action': [ | 91 'action': [ |
84 'python', | 92 'python', |
85 '../../../tools/js2c.py', | 93 'i18n-js2c.py', |
86 '<@(_outputs)', | 94 '<@(_outputs)', |
87 'I18N', | |
88 '<@(library_files)' | 95 '<@(library_files)' |
89 ], | 96 ], |
90 }, | 97 }, |
91 ], | 98 ], |
92 }, | 99 }, |
93 ], # targets | 100 ], # targets |
94 } | 101 } |
OLD | NEW |