@ -233,18 +233,18 @@ int dummy;
if isinstance ( target , build . Jar ) :
self . generate_jar_target ( target , outfile )
return
if ' rust ' in self . environmen t. co reda ta . compilers . keys ( ) and self . has_rust ( target ) :
if ' rust ' in ta rg et . compilers :
self . generate_rust_target ( target , outfile )
return
if ' cs ' in self . environmen t. co reda ta . compilers . keys ( ) and self . has_cs ( target ) :
if ' cs ' in ta rg et . compilers :
self . generate_cs_target ( target , outfile )
return
if ' vala ' in self . environment . coredata . compilers . keys ( ) and self . has_vala ( target ) :
vala_output_files = self . generate_vala_compile ( target , outfile )
gen_src_deps + = vala_output_files
if ' swift ' in self . environment . coredata . compilers . keys ( ) and self . has_swift ( target ) :
if ' swift ' in target . compilers :
self . generate_swift_target ( target , outfile )
return
if ' vala ' in target . compilers :
vala_output_files = self . generate_vala_compile ( target , outfile )
gen_src_deps + = vala_output_files
self . scan_fortran_module_outputs ( target )
# The following deals with C/C++ compilation.
( gen_src , gen_other_deps ) = self . process_dep_gens ( outfile , target )
@ -717,8 +717,7 @@ int dummy;
outname_rel = os . path . join ( self . get_target_dir ( target ) , fname )
src_list = target . get_sources ( )
class_list = [ ]
compiler = self . get_compiler_for_source ( src_list [ 0 ] , False )
assert ( compiler . get_language ( ) == ' java ' )
compiler = target . compilers [ ' java ' ]
c = ' c '
m = ' '
e = ' '
@ -768,8 +767,7 @@ int dummy;
fname = target . get_filename ( )
outname_rel = os . path . join ( self . get_target_dir ( target ) , fname )
src_list = target . get_sources ( )
compiler = self . get_compiler_for_source ( src_list [ 0 ] , False )
assert ( compiler . get_language ( ) == ' cs ' )
compiler = target . compilers [ ' cs ' ]
rel_srcs = [ s . rel_to_builddir ( self . build_to_src ) for s in src_list ]
deps = [ ]
commands = target . extra_args . get ( ' cs ' , [ ] )
@ -846,7 +844,7 @@ int dummy;
def generate_vala_compile ( self , target , outfile ) :
""" Vala is compiled into C. Set up all necessary build steps here. """
valac = self . environmen t. co reda ta . compilers [ ' vala ' ]
valac = ta rg et . compilers [ ' vala ' ]
( src , vapi_src ) = self . split_vala_sources ( target . get_sources ( ) )
vapi_src = [ x . rel_to_builddir ( self . build_to_src ) for x in vapi_src ]
extra_dep_files = [ ]
@ -909,7 +907,7 @@ int dummy;
return generated_c_files
def generate_rust_target ( self , target , outfile ) :
rustc = self . environmen t. co reda ta . compilers [ ' rust ' ]
rustc = ta rg et . compilers [ ' rust ' ]
relsrc = [ ]
for i in target . get_sources ( ) :
if not rustc . can_compile ( i ) :
@ -1000,7 +998,7 @@ int dummy;
def generate_swift_target ( self , target , outfile ) :
module_name = self . target_swift_modulename ( target )
swiftc = self . environmen t. co reda ta . compilers [ ' swift ' ]
swiftc = ta rg et . compilers [ ' swift ' ]
abssrc = [ ]
abs_headers = [ ]
header_imports = [ ]