Subversion Repositories gelsvn

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
107 bj 1
#!build
2
default:
3
<%if(exename)%>
4
	program
5
	:outputname=<%if(install)%><%reltop_install%><%else%><%reltop%><%endif%>/<%exename%>
6
<%if(need_staticflags)%>
7
	:staticlink=true
8
<%endif%>
9
<%else%>
10
<%if(sharedname)%>
11
	shared_library
198 bj 12
	:outputname=<%if(dllout)%><%reltop_dllout%><%else%><%reltop_libout%><%endif%>/<%lib_prefix%><%libname_prefix%><%sharedname%><%libdecorator%><%libext%>
107 bj 13
<%else%>
14
<%if(staticname)%>
15
	library
198 bj 16
	:outputname=<%reltop_libout%>/<%lib_prefix%><%libname_prefix%><%staticname%><%libdecorator%><%libext%>
107 bj 17
<%else%>
18
	subproject
19
<%endif%>
20
<%endif%>
21
<%endif%>
22
<%foreach(custom_types)%>
23
<%foreach(custom_type->input_files)%>
24
<%custom_type->input_file%>
25
	custom
26
	:custom_processor.name=echo
27
<%if(custom_type->input_file->output_files)%>
28
	: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%>
29
<%if(flag_overrides(custom_type->input_file, gendir))%>
30
	:preexec=cd <%reltop%>; <%mkdir("mkdir -p")%> <%flag_overrides(custom_type->input_file, gendir)%><%postmkdir%>
31
<%endif%>
32
<%if(custom_type->output_option)%>
33
<%foreach(custom_type->input_file->output_files)%>
198 bj 34
	: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%>
107 bj 35
<%endfor%>
36
<%else%>
37
	: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%>
38
<%if(flag_overrides(custom_type->input_file, postcommand))%>
39
<%foreach(custom_type->input_file)%>
40
	:preexec=cd <%reltop%>; <%flag_overrides(custom_type->input_file, postcommand)%>
41
<%endfor%>
42
<%else%>
43
<%if(custom_type->postcommand)%>
44
<%foreach(custom_type->input_file)%>
45
	:preexec=cd <%reltop%>; <%custom_type->postcommand%>
46
<%endfor%>
47
<%endif%>
48
<%endif%>
49
<%if(pch_header && custom_type->pch_postrule)%>
50
<%foreach(custom_type->input_file->source_output_files)%>
51
	:preexec=cd <%reltop%>; echo #include "<%pch_header%>" > temporary.src
52
        :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
53
        :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%>
54
<%endfor%>
55
<%endif%>
56
 
57
<%endif%>
58
<%endfor%>
59
<%endfor%>
60
<%if(optimize)%>
61
	:optimizestrategy=speed
62
<%endif%>
63
<%if(pch_header)%>
64
	:cx_pch_option=automatic
65
	:cx_pch_dir=pch
66
<%endif%>
67
<%foreach(reltop_includes)%>
68
	:sysincdirs=<%reltop_include%>
69
<%endfor%>
70
<%foreach(reltop_libpaths)%>
71
	:libdirs=<%reltop_libpath%>
72
<%endfor%>
73
<%if(syslibdirs)%>
74
	:syslibdirs=<%syslibdirs%>
75
<%endif%>
76
<%if(deflibdirs)%>
77
	:deflibdirs=<%deflibdirs%>
78
<%endif%>
79
<%if(libs || lit_libs || pure_libs)%>
80
<%if(exename || sharedname)%>
81
<%foreach(libs)%>
198 bj 82
	:libraries=-l<%libname_prefix%><%lib%><%libdecorator%>
107 bj 83
<%endfor%>
84
<%foreach(lit_libs)%>
85
	:libraries=-l<%lit_lib%>
86
<%endfor%>
87
<%foreach(pure_libs)%>
88
	:libraries=<%pure_lib%>
89
<%endfor%>
90
<%endif%>
91
<%endif%>
92
<%if(sharedname)%>
93
<%foreach(dynamicflags)%>
94
	:defines=<%dynamicflag%>
95
<%endfor%>
96
<%endif%>
97
<%if(need_staticflags)%>
98
<%foreach(staticflags)%>
99
	:defines=<%staticflag%>
100
<%endfor%>
101
<%endif%>
102
<%if(macros)%>
103
<%foreach(macros)%>
104
	:defines=<%macro%>
105
<%endfor%>
106
<%endif%>
107
<%foreach(source_files)%>
108
<%source_file%>
109
	C++
110
<%if(compile_flags)%>
111
	:cxx_compiler.args=<%compile_flags%>
112
<%endif%>
113
<%endfor%>
114
<%foreach(header_files)%>
115
<%header_file%>
116
	include_file
117
<%endfor%>
118
<%foreach(inline_files)%>
119
<%inline_file%>
120
	include_file
121
<%endfor%>
122
<%foreach(resource_files)%>
123
<%resource_file%>
124
	script
125
<%endfor%>
126
<%foreach(documentation_files)%>
127
<%documentation_file%>
128
	documentation
129
<%endfor%>