| OLD | NEW |
| (Empty) |
| 1 # Copyright 2008, Google Inc. | |
| 2 # All rights reserved. | |
| 3 # | |
| 4 # Redistribution and use in source and binary forms, with or without | |
| 5 # modification, are permitted provided that the following conditions are | |
| 6 # met: | |
| 7 # | |
| 8 # * Redistributions of source code must retain the above copyright | |
| 9 # notice, this list of conditions and the following disclaimer. | |
| 10 # * Redistributions in binary form must reproduce the above | |
| 11 # copyright notice, this list of conditions and the following disclaimer | |
| 12 # in the documentation and/or other materials provided with the | |
| 13 # distribution. | |
| 14 # * Neither the name of Google Inc. nor the names of its | |
| 15 # contributors may be used to endorse or promote products derived from | |
| 16 # this software without specific prior written permission. | |
| 17 # | |
| 18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
| 19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
| 20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
| 21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
| 22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
| 23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
| 24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
| 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
| 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
| 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
| 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
| 29 | |
| 30 # Copyright 2008 Google Inc. All Rights Reserved. | |
| 31 | |
| 32 Import('env') | |
| 33 | |
| 34 env = env.Clone() | |
| 35 | |
| 36 env.Prepend( | |
| 37 CPPPATH = [ | |
| 38 '$ICU38_DIR/public/common', | |
| 39 '$CHROME_SRC_DIR', | |
| 40 ], | |
| 41 ) | |
| 42 | |
| 43 env.Append( | |
| 44 CPPDEFINES = [ | |
| 45 'OPENOFFICEORG', | |
| 46 'CHROME_SPELL', | |
| 47 'HUNSPELL_CHROME_CLIENT', | |
| 48 ], | |
| 49 ) | |
| 50 | |
| 51 if env.Bit('windows'): | |
| 52 env.Append( | |
| 53 CPPDEFINES = [ | |
| 54 'W32', | |
| 55 ], | |
| 56 CCFLAGS = [ | |
| 57 '/TP', | |
| 58 | |
| 59 '/wd4800', | |
| 60 ], | |
| 61 ) | |
| 62 | |
| 63 if env.Bit('linux'): | |
| 64 env.Append( | |
| 65 CCFLAGS = [ | |
| 66 '-Wno-parentheses', | |
| 67 '-Wno-unused-value', | |
| 68 '-Wno-unused-variable', | |
| 69 '-Wno-write-strings', | |
| 70 ], | |
| 71 ) | |
| 72 | |
| 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('google', [ | |
| 104 'google/bdict.h', | |
| 105 'google/bdict_affentry.h', | |
| 106 'google/bdict_reader.h', | |
| 107 'google/bdict_writer.h', | |
| 108 ]), | |
| 109 ]) | |
| 110 | |
| 111 if env.Bit('linux'): | |
| 112 bdict_reader_o = env.ChromeObject('google/bdict_reader.cc') | |
| 113 input_files.Append(bdict_reader_o) | |
| 114 bdict_writer_o = env.ChromeObject('google/bdict_writer.cc') | |
| 115 input_files.Append(bdict_writer_o) | |
| 116 Export('bdict_reader_o', 'bdict_writer_o') | |
| 117 else: | |
| 118 input_files.Append( | |
| 119 MSVSFilter('google', [ | |
| 120 'google/bdict_reader.cc', | |
| 121 'google/bdict_writer.cc', | |
| 122 ]), | |
| 123 ) | |
| 124 | |
| 125 env.ChromeLibrary('hunspell', input_files) | |
| 126 | |
| 127 | |
| 128 p = env.ChromeMSVSProject('hunspell.vcproj', | |
| 129 dest=('$CHROME_SRC_DIR/chrome/' | |
| 130 + 'third_party/hunspell/hunspell.vcproj'), | |
| 131 guid='{D5E8DCB2-9C61-446F-8BEE-B18CA0E0936E}', | |
| 132 keyword='Win32Proj', | |
| 133 # TODO(sgk): when we can intuit the hierarchy | |
| 134 # from the built targets. | |
| 135 #buildtargets=TODO, | |
| 136 files=input_files, | |
| 137 relative_path_prefix='./', | |
| 138 tools=[ | |
| 139 'VCPreBuildEventTool', | |
| 140 'VCCustomBuildTool', | |
| 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.AddConfig('Debug|Win32', | |
| 158 InheritedPropertySheets=[ | |
| 159 '$(SolutionDir)../build/common.vsprops', | |
| 160 '../../../build/debug.vsprops', | |
| 161 '$(SolutionDir)../build/external_code.vsprops', | |
| 162 './hunspell.vsprops', | |
| 163 './using_hunspell.vsprops', | |
| 164 ]) | |
| 165 | |
| 166 p.AddConfig('Release|Win32', | |
| 167 InheritedPropertySheets=[ | |
| 168 '$(SolutionDir)../build/common.vsprops', | |
| 169 '../../../build/release.vsprops', | |
| 170 '$(SolutionDir)../build/external_code.vsprops', | |
| 171 './hunspell.vsprops', | |
| 172 './using_hunspell.vsprops', | |
| 173 ]) | |
| OLD | NEW |