OLD | NEW |
1 # Copyright 2008, Google Inc. | 1 # Copyright 2008, Google Inc. |
2 # All rights reserved. | 2 # All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 'src/hunspell/hashmgr.hxx', | 93 'src/hunspell/hashmgr.hxx', |
94 'src/hunspell/htypes.hxx', | 94 'src/hunspell/htypes.hxx', |
95 'src/hunspell/hunspell.cxx', | 95 'src/hunspell/hunspell.cxx', |
96 'src/hunspell/hunspell.h', | 96 'src/hunspell/hunspell.h', |
97 'src/hunspell/hunspell.hxx', | 97 'src/hunspell/hunspell.hxx', |
98 'src/hunspell/langnum.hxx', | 98 'src/hunspell/langnum.hxx', |
99 'src/hunspell/suggestmgr.cxx', | 99 'src/hunspell/suggestmgr.cxx', |
100 'src/hunspell/suggestmgr.hxx', | 100 'src/hunspell/suggestmgr.hxx', |
101 'src/hunspell/utf_info.hxx', | 101 'src/hunspell/utf_info.hxx', |
102 ]), | 102 ]), |
103 MSVSFilter('Dictionaries', [ | |
104 'dictionaries/en-US-1-2.bdic', | |
105 ]), | |
106 MSVSFilter('google', [ | 103 MSVSFilter('google', [ |
107 'google/bdict.h', | 104 'google/bdict.h', |
108 'google/bdict_affentry.h', | 105 'google/bdict_affentry.h', |
109 'google/bdict_reader.h', | 106 'google/bdict_reader.h', |
110 'google/bdict_writer.h', | 107 'google/bdict_writer.h', |
111 ]), | 108 ]), |
112 ]) | 109 ]) |
113 | 110 |
114 if env.Bit('linux'): | 111 if env.Bit('linux'): |
115 bdict_reader_o = env.ChromeObject('google/bdict_reader.cc') | 112 bdict_reader_o = env.ChromeObject('google/bdict_reader.cc') |
116 input_files.Append(bdict_reader_o) | 113 input_files.Append(bdict_reader_o) |
117 bdict_writer_o = env.ChromeObject('google/bdict_writer.cc') | 114 bdict_writer_o = env.ChromeObject('google/bdict_writer.cc') |
118 input_files.Append(bdict_writer_o) | 115 input_files.Append(bdict_writer_o) |
119 Export('bdict_reader_o', 'bdict_writer_o') | 116 Export('bdict_reader_o', 'bdict_writer_o') |
120 else: | 117 else: |
121 input_files.Append( | 118 input_files.Append( |
122 MSVSFilter('google', [ | 119 MSVSFilter('google', [ |
123 'google/bdict_reader.cc', | 120 'google/bdict_reader.cc', |
124 'google/bdict_writer.cc', | 121 'google/bdict_writer.cc', |
125 ]), | 122 ]), |
126 ) | 123 ) |
127 | 124 |
128 env.ChromeLibrary('hunspell', input_files) | 125 env.ChromeLibrary('hunspell', input_files) |
129 | 126 |
130 | 127 |
131 dictionaries = [ | |
132 'dictionaries/en-US-1-2.bdic', | |
133 'dictionaries/en-US.dic', | |
134 'dictionaries/en-US.aff', | |
135 ] | |
136 | |
137 i = env.Install('$DESTINATION_ROOT/Dictionaries', dictionaries) | |
138 env.Alias('chrome_Dictionaries', i) | |
139 | |
140 | |
141 p = env.ChromeMSVSProject('hunspell.vcproj', | 128 p = env.ChromeMSVSProject('hunspell.vcproj', |
142 dest=('$CHROME_SRC_DIR/chrome/' | 129 dest=('$CHROME_SRC_DIR/chrome/' |
143 + 'third_party/hunspell/hunspell.vcproj'), | 130 + 'third_party/hunspell/hunspell.vcproj'), |
144 guid='{D5E8DCB2-9C61-446F-8BEE-B18CA0E0936E}', | 131 guid='{D5E8DCB2-9C61-446F-8BEE-B18CA0E0936E}', |
145 keyword='Win32Proj', | 132 keyword='Win32Proj', |
146 # TODO(sgk): when we can intuit the hierarchy | 133 # TODO(sgk): when we can intuit the hierarchy |
147 # from the built targets. | 134 # from the built targets. |
148 #buildtargets=TODO, | 135 #buildtargets=TODO, |
149 files=input_files, | 136 files=input_files, |
150 relative_path_prefix='./', | 137 relative_path_prefix='./', |
151 tools=[ | 138 tools=[ |
152 'VCPreBuildEventTool', | 139 'VCPreBuildEventTool', |
153 'VCCustomBuildTool', | 140 'VCCustomBuildTool', |
154 'CopyDictionaries', | |
155 'VCXMLDataGeneratorTool', | 141 'VCXMLDataGeneratorTool', |
156 'VCWebServiceProxyGeneratorTool', | 142 'VCWebServiceProxyGeneratorTool', |
157 'VCMIDLTool', | 143 'VCMIDLTool', |
158 'VCCLCompilerTool', | 144 'VCCLCompilerTool', |
159 'VCManagedResourceCompilerTool', | 145 'VCManagedResourceCompilerTool', |
160 'VCResourceCompilerTool', | 146 'VCResourceCompilerTool', |
161 'VCPreLinkEventTool', | 147 'VCPreLinkEventTool', |
162 'VCLibrarianTool', | 148 'VCLibrarianTool', |
163 'VCALinkTool', | 149 'VCALinkTool', |
164 'VCXDCMakeTool', | 150 'VCXDCMakeTool', |
165 'VCBscMakeTool', | 151 'VCBscMakeTool', |
166 'VCFxCopTool', | 152 'VCFxCopTool', |
167 'VCPostBuildEventTool', | 153 'VCPostBuildEventTool', |
168 ], | 154 ], |
169 ConfigurationType='4') | 155 ConfigurationType='4') |
170 | 156 |
171 p.AddToolFile('./copy_dictionary_files.rules') | |
172 | |
173 p.AddConfig('Debug|Win32', | 157 p.AddConfig('Debug|Win32', |
174 InheritedPropertySheets=[ | 158 InheritedPropertySheets=[ |
175 '$(SolutionDir)../build/common.vsprops', | 159 '$(SolutionDir)../build/common.vsprops', |
176 '../../../build/debug.vsprops', | 160 '../../../build/debug.vsprops', |
177 '$(SolutionDir)../build/external_code.vsprops', | 161 '$(SolutionDir)../build/external_code.vsprops', |
178 './hunspell.vsprops', | 162 './hunspell.vsprops', |
179 './using_hunspell.vsprops', | 163 './using_hunspell.vsprops', |
180 ]) | 164 ]) |
181 | 165 |
182 p.AddConfig('Release|Win32', | 166 p.AddConfig('Release|Win32', |
183 InheritedPropertySheets=[ | 167 InheritedPropertySheets=[ |
184 '$(SolutionDir)../build/common.vsprops', | 168 '$(SolutionDir)../build/common.vsprops', |
185 '../../../build/release.vsprops', | 169 '../../../build/release.vsprops', |
186 '$(SolutionDir)../build/external_code.vsprops', | 170 '$(SolutionDir)../build/external_code.vsprops', |
187 './hunspell.vsprops', | 171 './hunspell.vsprops', |
188 './using_hunspell.vsprops', | 172 './using_hunspell.vsprops', |
189 ]) | 173 ]) |
OLD | NEW |