src/main/resources/make/configure.vm

changeset 104
ea36fd802446
parent 102
bc7837852b7c
child 105
4b3e655339cb
equal deleted inserted replaced
103:01ec9f32835e 104:ea36fd802446
222 return 1 222 return 1
223 fi 223 fi
224 done 224 done
225 return 0 225 return 0
226 } 226 }
227 istoolchain()
228 {
229 for t in $TOOLCHAIN
230 do
231 if [ "$t" = "$1" ]; then
232 return 0
233 fi
234 done
235 return 1
236 }
237 notistoolchain()
238 {
239 for t in $TOOLCHAIN
240 do
241 if [ "$t" = "$1" ]; then
242 return 1
243 fi
244 done
245 return 0
246 }
227 ]]# 247 ]]#
228 ## End of unparsed content ** 248 ## End of unparsed content **
229 249
230 # generate vars.mk 250 # generate vars.mk
231 cat > "$TEMP_DIR/vars.mk" << __EOF__ 251 cat > "$TEMP_DIR/vars.mk" << __EOF__
250 #end 270 #end
251 __EOF__ 271 __EOF__
252 272
253 # toolchain detection utilities 273 # toolchain detection utilities
254 . make/toolchain.sh 274 . make/toolchain.sh
275 TOOLCHAIN="${D}{TOOLCHAIN_NAME}"
255 276
256 # 277 #
257 # DEPENDENCIES 278 # DEPENDENCIES
258 # 279 #
259 280
301 #if( $sub.platform ) 322 #if( $sub.platform )
302 if notisplatform "${sub.platform}"; then 323 if notisplatform "${sub.platform}"; then
303 break 324 break
304 fi 325 fi
305 #end 326 #end
327 #if( $sub.toolchain )
328 if notistoolchain "${sub.toolchain}"; then
329 break
330 fi
331 #end
306 #foreach( $np in $sub.notList ) 332 #foreach( $np in $sub.notList )
307 if isplatform "${np}"; then 333 if isplatform "${np}" || istoolchain "${np}"; then
308 break 334 break
309 fi 335 fi
310 #end 336 #end
311 #foreach( $lang in $sub.lang ) 337 #foreach( $lang in $sub.lang )
312 if [ -z "$lang_${lang}" ] ; then 338 if [ -z "$lang_${lang}" ] ; then
378 #if( $dependency.platform ) 404 #if( $dependency.platform )
379 if notisplatform "${dependency.platform}"; then 405 if notisplatform "${dependency.platform}"; then
380 break 406 break
381 fi 407 fi
382 #end 408 #end
409 #if( $dependency.toolchain )
410 if notistoolchain "${dependency.toolchain}"; then
411 break
412 fi
413 #end
383 #foreach( $np in $dependency.notList ) 414 #foreach( $np in $dependency.notList )
384 if isplatform "${np}"; then 415 if isplatform "${np}" || istoolchain "${np}"; then
385 break 416 break
386 fi 417 fi
387 #end 418 #end
388 while true 419 while true
389 do 420 do

mercurial