Skip to content

Commit 8b6d96e

Browse files
sowicmsowicm
authored andcommitted
update build setting for win
1 parent 0bddfbe commit 8b6d96e

File tree

1 file changed

+56
-36
lines changed

1 file changed

+56
-36
lines changed

Runtime/config/build_settings.xml.default.win

Lines changed: 56 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -162,57 +162,77 @@
162162
<LinkerOption Name="-s">Remove all symbol table and relocation information from the executable.</LinkerOption>
163163
<LinkerOption Name="-fopenmp">Enable OpenMP (linkage).</LinkerOption>
164164
</Compiler>
165-
<Compiler Name="gnu gcc">
165+
<Compiler Name="gnu gcc" GenerateDependenciesFiles="yes" ReadObjectsListFromFile="yes" ObjectNameIdenticalToFileName="no" CompilerFamily="MinGW" IsDefault="no">
166+
<InstallationPath>
167+
<![CDATA[C:\TDM-GCC-32]]>
168+
</InstallationPath>
166169
<Switch Name="ArchiveOutput" Value=" "/>
167170
<Switch Name="Debug" Value="-g "/>
168171
<Switch Name="Include" Value="-I"/>
169172
<Switch Name="Library" Value="-l"/>
170173
<Switch Name="LibraryPath" Value="-L"/>
171174
<Switch Name="Object" Value="-o "/>
172175
<Switch Name="Output" Value="-o "/>
176+
<Switch Name="PreprocessOnly" Value="-E"/>
173177
<Switch Name="Preprocessor" Value="-D"/>
174-
<Switch Name="PreprocessOnly" Value="-E "/>
175178
<Switch Name="Source" Value="-c "/>
176-
<Tool Name="AR" Value="ar rcus"/>
177-
<Tool Name="CXX" Value="gcc"/>
178-
<Tool Name="CC" Value="gcc"/>
179-
<Tool Name="LinkerName" Value="gcc"/>
180-
<Tool Name="ResourceCompiler" Value="windres"/>
181-
<Tool Name="SharedObjectLinkerName" Value="gcc -shared -fPIC"/>
182-
<Tool Name="AS" Value="as"/>
179+
<Tool Name="AR" Value=".\TDM-GCC-32\bin\ar.exe rcu"/>
180+
<Tool Name="AS" Value=".\TDM-GCC-32\bin\as.exe"/>
181+
<Tool Name="CC" Value=".\TDM-GCC-32\bin\gcc.exe"/>
182+
<Tool Name="CXX" Value=".\TDM-GCC-32\bin\g++.exe"/>
183+
<Tool Name="LinkerName" Value=".\TDM-GCC-32\bin\g++.exe"/>
184+
<Tool Name="MAKE" Value=".\TDM-GCC-32\bin\mingw32-make.exe -j2 SHELL=cmd.exe"/>
185+
<Tool Name="ResourceCompiler" Value=".\TDM-GCC-32\bin\windres.exe"/>
186+
<Tool Name="SharedObjectLinkerName" Value=".\TDM-GCC-32\bin\g++.exe -shared -fPIC"/>
187+
<File Extension="c" CompilationLine="$(CC) $(SourceSwitch) &quot;$(FileFullPath)&quot; $(CFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/$(ObjectName)$(ObjectSuffix) $(IncludePath)" Kind="0"/>
188+
<File Extension="c++" CompilationLine="$(CXX) $(SourceSwitch) &quot;$(FileFullPath)&quot; $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/$(ObjectName)$(ObjectSuffix) $(IncludePath)" Kind="0"/>
189+
<File Extension="cc" CompilationLine="$(CXX) $(SourceSwitch) &quot;$(FileFullPath)&quot; $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/$(ObjectName)$(ObjectSuffix) $(IncludePath)" Kind="0"/>
190+
<File Extension="cpp" CompilationLine="$(CXX) $(SourceSwitch) &quot;$(FileFullPath)&quot; $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/$(ObjectName)$(ObjectSuffix) $(IncludePath)" Kind="0"/>
191+
<File Extension="cxx" CompilationLine="$(CXX) $(SourceSwitch) &quot;$(FileFullPath)&quot; $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/$(ObjectName)$(ObjectSuffix) $(IncludePath)" Kind="0"/>
192+
<File Extension="m" CompilationLine="$(CXX) -x objective-c $(SourceSwitch) &quot;$(FileFullPath)&quot; $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/$(ObjectName)$(ObjectSuffix) $(IncludePath)" Kind="0"/>
193+
<File Extension="mm" CompilationLine="$(CXX) -x objective-c++ $(SourceSwitch) &quot;$(FileFullPath)&quot; $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/$(ObjectName)$(ObjectSuffix) $(IncludePath)" Kind="0"/>
194+
<File Extension="rc" CompilationLine="$(RcCompilerName) -i &quot;$(FileFullPath)&quot; $(RcCmpOptions) $(ObjectSwitch)$(IntermediateDirectory)/$(ObjectName)$(ObjectSuffix) $(RcIncludePath)" Kind="1"/>
195+
<File Extension="s" CompilationLine="$(AS) &quot;$(FileFullPath)&quot; $(ASFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/$(ObjectName)$(ObjectSuffix) -I$(IncludePath)" Kind="0"/>
183196
<Option Name="ObjectSuffix" Value=".o"/>
184-
<Pattern Name="Error" FileNameIndex="1" LineNumberIndex="2">^windres: ([a-zA-Z:]{0,2}[ a-zA-Z\\.0-9_/\\+\\-]+) *:([0-9]+): syntax error</Pattern>
185-
<Pattern Name="Error" FileNameIndex="1" LineNumberIndex="3" ColumnIndex="4">^([^ ][a-zA-Z:]{0,2}[ a-zA-Z\\.0-9_/\\+\\-]+ *)(:)([0-9]*)([:0-9]*)(: )((fatal error)|(error)|(undefined reference))</Pattern>
186-
<Pattern Name="Error" FileNameIndex="3" LineNumberIndex="1">^([^ ][a-zA-Z:]{0,2}[ a-zA-Z\\.0-9_/\\+\\-]+ *)(:)([^ ][a-zA-Z:]{0,2}[ a-zA-Z\\.0-9_/\\+\\-]+ *)(:)(\(\.text\+[0-9a-fx]*\))</Pattern>
187-
<Pattern Name="Error" FileNameIndex="3" LineNumberIndex="1">^([^ ][a-zA-Z:]{0,2}[ a-zA-Z\\.0-9_/\\+\\-]+ *)(:)([^ ][a-zA-Z:]{0,2}[ a-zA-Z\\.0-9_/\\+\\-]+ *)(:)([0-9]+)(:)</Pattern>
188-
<Pattern Name="Error" FileNameIndex="-1" LineNumberIndex="-1">undefined reference to</Pattern>
189-
<Pattern Name="Error" FileNameIndex="-1" LineNumberIndex="-1">\\*\\*\\* \\[[a-zA-Z\\-_0-9 ]+\\] (Error)</Pattern>
190-
<Pattern Name="Warning" FileNameIndex="1" LineNumberIndex="3" ColumnIndex="4">([a-zA-Z:]{0,2}[ a-zA-Z\\.0-9_/\\+\\-]+ *)(:)([0-9]+ *)(:)([0-9:]*)?( warning)</Pattern>
191-
<Pattern Name="Warning" FileNameIndex="1" LineNumberIndex="3" ColumnIndex="4">([a-zA-Z:]{0,2}[ a-zA-Z\\.0-9_/\\+\\-]+ *)(:)([0-9]+ *)(:)([0-9:]*)?( note)</Pattern>
192-
<Pattern Name="Warning" FileNameIndex="1" LineNumberIndex="3">([a-zA-Z:]{0,2}[ a-zA-Z\\.0-9_/\\+\\-]+ *)(:)([0-9]+ *)(:)([0-9:]*)?([ ]+instantiated)</Pattern>
193-
<Pattern Name="Warning" FileNameIndex="2" LineNumberIndex="4">(In file included from *)([a-zA-Z:]{0,2}[ a-zA-Z\\.0-9_/\\+\\-]+ *)(:)([0-9]+ *)(:)([0-9:]*)?</Pattern>
194-
<GlobalIncludePath></GlobalIncludePath>
195-
<GlobalLibPath></GlobalLibPath>
196-
<PathVariable></PathVariable>
197-
<CompilerOption Name="-g">Produce debugging information.</CompilerOption>
198-
<CompilerOption Name="-pg">Profile code when executed.</CompilerOption>
199-
<CompilerOption Name="-ansi">In C mode, support all ISO C90 programs. In C++ mode, remove GNU extensions that conflict with ISO C++.</CompilerOption>
200-
<CompilerOption Name="-Wall">Enable all compiler warnings.</CompilerOption>
201-
<CompilerOption Name="-W">Enable standard compiler warnings</CompilerOption>
202-
<CompilerOption Name="-Wfatal-errors">Stop compiling after first error</CompilerOption>
203-
<CompilerOption Name="-w">Inhibit all warning messages</CompilerOption>
204-
<CompilerOption Name="-pedantic">Enable warnings demanded by strict ISO C and ISO C++</CompilerOption>
205-
<CompilerOption Name="-pedantic-errors">Treat as errors the warnings demanded by strict ISO C and ISO C++</CompilerOption>
206-
<CompilerOption Name="-Wmain">Warn if main() is not conformant</CompilerOption>
207-
<CompilerOption Name="-O">Optimize generated code (for speed)</CompilerOption>
197+
<Option Name="DependSuffix" Value=".o.d"/>
198+
<Option Name="PreprocessSuffix" Value=".i"/>
199+
<Pattern Name="Error" FileNameIndex="1" LineNumberIndex="3" ColumnIndex="4">^([^ ][a-zA-Z:]{0,2}[ a-zA-Z\.0-9_/\+\-]+ *)(:)([0-9]*)([:0-9]*)(: )((fatal error)|(error)|(undefined reference)|([\t ]*required from))</Pattern>
200+
<Pattern Name="Error" FileNameIndex="3" LineNumberIndex="1" ColumnIndex="-1">^([^ ][a-zA-Z:]{0,2}[ a-zA-Z\.0-9_/\+\-]+ *)(:)([^ ][a-zA-Z:]{0,2}[ a-zA-Z\.0-9_/\+\-]+ *)(:)(\(\.text\+[0-9a-fx]*\))</Pattern>
201+
<Pattern Name="Error" FileNameIndex="3" LineNumberIndex="1" ColumnIndex="-1">^([^ ][a-zA-Z:]{0,2}[ a-zA-Z\.0-9_/\+\-]+ *)(:)([^ ][a-zA-Z:]{0,2}[ a-zA-Z\.0-9_/\+\-]+ *)(:)([0-9]+)(:)</Pattern>
202+
<Pattern Name="Error" FileNameIndex="-1" LineNumberIndex="-1" ColumnIndex="-1">undefined reference to</Pattern>
203+
<Pattern Name="Error" FileNameIndex="-1" LineNumberIndex="-1" ColumnIndex="-1">\*\*\* \[[a-zA-Z\-_0-9 ]+\] (Error)</Pattern>
204+
<Pattern Name="Warning" FileNameIndex="1" LineNumberIndex="3" ColumnIndex="4">([a-zA-Z:]{0,2}[ a-zA-Z\.0-9_/\+\-]+ *)(:)([0-9]+ *)(:)([0-9:]*)?( warning)</Pattern>
205+
<Pattern Name="Warning" FileNameIndex="1" LineNumberIndex="3" ColumnIndex="-1">([a-zA-Z:]{0,2}[ a-zA-Z\.0-9_/\+\-]+ *)(:)([0-9]+ *)(:)([0-9:]*)?( note)</Pattern>
206+
<Pattern Name="Warning" FileNameIndex="1" LineNumberIndex="3" ColumnIndex="-1">([a-zA-Z:]{0,2}[ a-zA-Z\.0-9_/\+\-]+ *)(:)([0-9]+ *)(:)([0-9:]*)?([ ]+instantiated)</Pattern>
207+
<Pattern Name="Warning" FileNameIndex="2" LineNumberIndex="4" ColumnIndex="-1">(In file included from *)([a-zA-Z:]{0,2}[ a-zA-Z\.0-9_/\+\-]+ *)(:)([0-9]+ *)(:)([0-9:]*)?</Pattern>
208+
<GlobalIncludePath/>
209+
<GlobalLibPath/>
210+
<PathVariable/>
211+
<CompilerOption Name="-O">Optimize generated code. (for speed)</CompilerOption>
212+
<CompilerOption Name="-O0">Optimize for debugging</CompilerOption>
208213
<CompilerOption Name="-O1">Optimize more (for speed)</CompilerOption>
209214
<CompilerOption Name="-O2">Optimize even more (for speed)</CompilerOption>
210215
<CompilerOption Name="-O3">Optimize fully (for speed)</CompilerOption>
211216
<CompilerOption Name="-Os">Optimize generated code (for size)</CompilerOption>
217+
<CompilerOption Name="-W">Enable standard compiler warnings</CompilerOption>
218+
<CompilerOption Name="-Wall">Enable all compiler warnings</CompilerOption>
219+
<CompilerOption Name="-Wfatal-errors">Stop compiling after first error</CompilerOption>
220+
<CompilerOption Name="-Wmain">Warn if main() is not conformant</CompilerOption>
221+
<CompilerOption Name="-ansi">In C mode, support all ISO C90 programs. In C++ mode, remove GNU extensions that conflict with ISO C++</CompilerOption>
212222
<CompilerOption Name="-fexpensive-optimizations">Expensive optimizations</CompilerOption>
213-
<CompilerOption Name="-fopenmp">Enable OpenMP (compilation).</CompilerOption>
214-
<LinkerOption Name="-s">Remove all symbol table and relocation information from the executable.</LinkerOption>
215-
<LinkerOption Name="-fopenmp">Enable OpenMP (linkage).</LinkerOption>
223+
<CompilerOption Name="-fopenmp">Enable OpenMP (compilation)</CompilerOption>
224+
<CompilerOption Name="-g">Produce debugging information</CompilerOption>
225+
<CompilerOption Name="-pedantic">Enable warnings demanded by strict ISO C and ISO C++</CompilerOption>
226+
<CompilerOption Name="-pedantic-errors">Treat as errors the warnings demanded by strict ISO C and ISO C++</CompilerOption>
227+
<CompilerOption Name="-pg">Profile code when executed</CompilerOption>
228+
<CompilerOption Name="-std=c++11">Enable C++11 features</CompilerOption>
229+
<CompilerOption Name="-std=c++14">Enable C++14 features</CompilerOption>
230+
<CompilerOption Name="-std=c99">Enable ANSI C99 features</CompilerOption>
231+
<CompilerOption Name="-w">Inhibit all warning messages</CompilerOption>
232+
<LinkerOption Name="-fopenmp">Enable OpenMP (linkage)</LinkerOption>
233+
<LinkerOption Name="-mwindows">Prevent a useless terminal console appearing with MSWindows GUI programs</LinkerOption>
234+
<LinkerOption Name="-pg">Profile code when executed</LinkerOption>
235+
<LinkerOption Name="-s">Remove all symbol table and relocation information from the executable</LinkerOption>
216236
</Compiler>
217237
<Compiler Name="VC++">
218238
<Switch Name="ArchiveOutput" Value="/OUT:"/>

0 commit comments

Comments
 (0)