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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 if env.Bit('linux'): | 63 if env.Bit('linux'): |
64 env.Append( | 64 env.Append( |
65 CCFLAGS = [ | 65 CCFLAGS = [ |
66 '-Wno-parentheses', | 66 '-Wno-parentheses', |
67 '-Wno-unused-value', | 67 '-Wno-unused-value', |
68 '-Wno-unused-variable', | 68 '-Wno-unused-variable', |
69 '-Wno-write-strings', | 69 '-Wno-write-strings', |
70 ], | 70 ], |
71 ) | 71 ) |
72 | 72 |
73 input_files = [ | 73 input_files = ChromeFileList([ |
| 74 # TODO(sgk): violate standard indentation so we don't have to |
| 75 # reindent too much when we remove the explicit MSVSFilter() calls |
| 76 # in favor of generating the hierarchy to reflect the file system. |
| 77 MSVSFilter('parsers', [ |
| 78 'src/parsers/textparser.cxx', |
| 79 'src/parsers/textparser.hxx', |
| 80 ]), |
| 81 MSVSFilter('hunspell', [ |
| 82 'src/hunspell/affentry.cxx', |
| 83 'src/hunspell/affentry.hxx', |
| 84 'src/hunspell/affixmgr.cxx', |
| 85 'src/hunspell/affixmgr.hxx', |
| 86 'src/hunspell/atypes.hxx', |
| 87 'src/hunspell/baseaffix.hxx', |
| 88 'src/hunspell/csutil.cxx', |
| 89 'src/hunspell/csutil.hxx', |
| 90 'src/hunspell/dictmgr.cxx', |
| 91 'src/hunspell/dictmgr.hxx', |
| 92 'src/hunspell/hashmgr.cxx', |
| 93 'src/hunspell/hashmgr.hxx', |
| 94 'src/hunspell/htypes.hxx', |
| 95 'src/hunspell/hunspell.cxx', |
| 96 'src/hunspell/hunspell.h', |
| 97 'src/hunspell/hunspell.hxx', |
| 98 'src/hunspell/langnum.hxx', |
| 99 'src/hunspell/suggestmgr.cxx', |
| 100 'src/hunspell/suggestmgr.hxx', |
| 101 'src/hunspell/utf_info.hxx', |
| 102 ]), |
| 103 MSVSFilter('Dictionaries', [ |
| 104 'dictionaries/en-US-1-2.bdic', |
| 105 ]), |
| 106 MSVSFilter('google', [ |
| 107 'google/bdict.h', |
| 108 'google/bdict_affentry.h', |
74 'google/bdict_reader.cc', | 109 'google/bdict_reader.cc', |
75 'src/hunspell/affentry.cxx', | 110 'google/bdict_reader.h', |
76 'src/hunspell/affixmgr.cxx', | 111 ]), |
77 'src/hunspell/csutil.cxx', | 112 ]) |
78 'src/hunspell/dictmgr.cxx', | |
79 'src/hunspell/hashmgr.cxx', | |
80 'src/hunspell/hunspell.cxx', | |
81 'src/hunspell/suggestmgr.cxx', | |
82 'src/parsers/textparser.cxx', | |
83 ] | |
84 | 113 |
85 env.ChromeLibrary('hunspell', input_files) | 114 env.ChromeLibrary('hunspell', input_files) |
86 | 115 |
87 | 116 |
88 dictionaries = [ | 117 dictionaries = [ |
89 'dictionaries/en-US-1-2.bdic', | 118 'dictionaries/en-US-1-2.bdic', |
90 'dictionaries/en-US.dic', | 119 'dictionaries/en-US.dic', |
91 'dictionaries/en-US.aff', | 120 'dictionaries/en-US.aff', |
92 ] | 121 ] |
93 | 122 |
94 i = env.Install('$DESTINATION_ROOT/Dictionaries', dictionaries) | 123 i = env.Install('$DESTINATION_ROOT/Dictionaries', dictionaries) |
95 env.Alias('chrome_Dictionaries', i) | 124 env.Alias('chrome_Dictionaries', i) |
96 | 125 |
97 env.ChromeMSVSProject('$CHROME_DIR/third_party/hunspell/hunspell.vcproj', | 126 |
98 guid='{D5E8DCB2-9C61-446F-8BEE-B18CA0E0936E}') | 127 p = env.ChromeMSVSProject('hunspell.vcproj', |
| 128 dest=('$CHROME_SRC_DIR/chrome/' |
| 129 + 'third_party/hunspell/hunspell.vcproj'), |
| 130 guid='{D5E8DCB2-9C61-446F-8BEE-B18CA0E0936E}', |
| 131 keyword='Win32Proj', |
| 132 # TODO(sgk): when we can intuit the hierarchy |
| 133 # from the built targets. |
| 134 #buildtargets=TODO, |
| 135 files=input_files, |
| 136 relative_path_prefix='./', |
| 137 tools=[ |
| 138 'VCPreBuildEventTool', |
| 139 'VCCustomBuildTool', |
| 140 'CopyDictionaries', |
| 141 'VCXMLDataGeneratorTool', |
| 142 'VCWebServiceProxyGeneratorTool', |
| 143 'VCMIDLTool', |
| 144 'VCCLCompilerTool', |
| 145 'VCManagedResourceCompilerTool', |
| 146 'VCResourceCompilerTool', |
| 147 'VCPreLinkEventTool', |
| 148 'VCLibrarianTool', |
| 149 'VCALinkTool', |
| 150 'VCXDCMakeTool', |
| 151 'VCBscMakeTool', |
| 152 'VCFxCopTool', |
| 153 'VCPostBuildEventTool', |
| 154 ], |
| 155 ConfigurationType='4') |
| 156 |
| 157 p.AddToolFile('./copy_dictionary_files.rules') |
| 158 |
| 159 p.AddConfig('Debug|Win32', |
| 160 InheritedPropertySheets=[ |
| 161 '$(SolutionDir)../build/common.vsprops', |
| 162 '../../../build/debug.vsprops', |
| 163 '$(SolutionDir)../build/external_code.vsprops', |
| 164 './hunspell.vsprops', |
| 165 './using_hunspell.vsprops', |
| 166 ]) |
| 167 |
| 168 p.AddConfig('Release|Win32', |
| 169 InheritedPropertySheets=[ |
| 170 '$(SolutionDir)../build/common.vsprops', |
| 171 '../../../build/release.vsprops', |
| 172 '$(SolutionDir)../build/external_code.vsprops', |
| 173 './hunspell.vsprops', |
| 174 './using_hunspell.vsprops', |
| 175 ]) |
OLD | NEW |