Rev 107 | Go to most recent revision | Blame | Last modification | View Log | RSS feed
#!build
default:
<%if(exename)%>
program
:outputname=<%if(install)%><%reltop_install%><%else%><%reltop%><%endif%>/<%exename%>
<%if(need_staticflags)%>
:staticlink=true
<%endif%>
<%else%>
<%if(sharedname)%>
shared_library
:outputname=<%if(dllout)%><%reltop_dllout%><%else%><%reltop_libout%><%endif%>/<%lib_prefix%><%libname_prefix%><%sharedname%><%libdecorator%><%libext%>
<%else%>
<%if(staticname)%>
library
:outputname=<%reltop_libout%>/<%lib_prefix%><%libname_prefix%><%staticname%><%libdecorator%><%libext%>
<%else%>
subproject
<%endif%>
<%endif%>
<%endif%>
<%foreach(custom_types)%>
<%foreach(custom_type->input_files)%>
<%custom_type->input_file%>
custom
:custom_processor.name=echo
<%if(custom_type->input_file->output_files)%>
:depends=<%if(flag_overrides(custom_type->input_file, dependent))%><%foreach(dep, flag_overrides(custom_type->input_file, dependent))%><%dep%><%if(!ends_with(dep, \.p.))%><%exe_ext%><%endif%> <%endfor%><%else%><%foreach(custom_type->dependent)%><%custom_type->dependent%><%if(!ends_with(custom_type->dependent, \.p.))%><%exe_ext%><%endif%> <%endfor%><%endif%><%custom_type->input_file%><%if(custom_type->input_file->dependencies)%> <%custom_type->input_file->dependencies%><%endif%>
<%if(flag_overrides(custom_type->input_file, gendir))%>
:preexec=cd <%reltop%>; <%mkdir("mkdir -p")%> <%flag_overrides(custom_type->input_file, gendir)%><%postmkdir%>
<%endif%>
<%if(custom_type->output_option)%>
<%foreach(custom_type->input_file->output_files)%>
:preexec=cd <%reltop%>; <%if(flag_overrides(custom_type->input_file, command))%><%flag_overrides(custom_type->input_file, command)%><%else%><%custom_type->command%><%endif%> <%if(flag_overrides(custom_type->input_file, commandflags))%><%flag_overrides(custom_type->input_file, commandflags)%><%else%><%custom_type->commandflags%><%endif%><%if(custom_type->output_option)%> <%custom_type->output_option%> <%custom_type->input_file->output_file%><%endif%> <%custom_type->input_file%>
<%endfor%>
<%else%>
:preexec=cd <%reltop%>; <%if(flag_overrides(custom_type->input_file, command))%><%flag_overrides(custom_type->input_file, command)%><%else%><%custom_type->command%><%endif%> <%if(flag_overrides(custom_type->input_file, commandflags))%><%flag_overrides(custom_type->input_file, commandflags)%><%else%><%custom_type->commandflags%><%endif%> <%custom_type->input_file%><%endif%>
<%if(flag_overrides(custom_type->input_file, postcommand))%>
<%foreach(custom_type->input_file)%>
:preexec=cd <%reltop%>; <%flag_overrides(custom_type->input_file, postcommand)%>
<%endfor%>
<%else%>
<%if(custom_type->postcommand)%>
<%foreach(custom_type->input_file)%>
:preexec=cd <%reltop%>; <%custom_type->postcommand%>
<%endfor%>
<%endif%>
<%endif%>
<%if(pch_header && custom_type->pch_postrule)%>
<%foreach(custom_type->input_file->source_output_files)%>
:preexec=cd <%reltop%>; echo #include "<%pch_header%>" > temporary.src
:preexec=cd <%reltop%>; <%cat("cat")%> <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%> >> temporary.src
:preexec=cd <%reltop%>; <%mv("mv -f")%> temporary.src <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%>
<%endfor%>
<%endif%>
<%endif%>
<%endfor%>
<%endfor%>
<%if(optimize)%>
:optimizestrategy=speed
<%endif%>
<%if(pch_header)%>
:cx_pch_option=automatic
:cx_pch_dir=pch
<%endif%>
<%foreach(reltop_includes)%>
:sysincdirs=<%reltop_include%>
<%endfor%>
<%foreach(reltop_libpaths)%>
:libdirs=<%reltop_libpath%>
<%endfor%>
<%if(syslibdirs)%>
:syslibdirs=<%syslibdirs%>
<%endif%>
<%if(deflibdirs)%>
:deflibdirs=<%deflibdirs%>
<%endif%>
<%if(libs || lit_libs || pure_libs)%>
<%if(exename || sharedname)%>
<%foreach(libs)%>
:libraries=-l<%libname_prefix%><%lib%><%libdecorator%>
<%endfor%>
<%foreach(lit_libs)%>
:libraries=-l<%lit_lib%>
<%endfor%>
<%foreach(pure_libs)%>
:libraries=<%pure_lib%>
<%endfor%>
<%endif%>
<%endif%>
<%if(sharedname)%>
<%foreach(dynamicflags)%>
:defines=<%dynamicflag%>
<%endfor%>
<%endif%>
<%if(need_staticflags)%>
<%foreach(staticflags)%>
:defines=<%staticflag%>
<%endfor%>
<%endif%>
<%if(macros)%>
<%foreach(macros)%>
:defines=<%macro%>
<%endfor%>
<%endif%>
<%foreach(source_files)%>
<%source_file%>
C++
<%if(compile_flags)%>
:cxx_compiler.args=<%compile_flags%>
<%endif%>
<%endfor%>
<%foreach(header_files)%>
<%header_file%>
include_file
<%endfor%>
<%foreach(inline_files)%>
<%inline_file%>
include_file
<%endfor%>
<%foreach(resource_files)%>
<%resource_file%>
script
<%endfor%>
<%foreach(documentation_files)%>
<%documentation_file%>
documentation
<%endfor%>