@ -1151,7 +1151,7 @@ class NinjaBackend(backends.Backend):
self . custom_target_generator_inputs ( target )
self . custom_target_generator_inputs ( target )
( srcs , ofilenames , cmd ) = self . eval_custom_target_command ( target )
( srcs , ofilenames , cmd ) = self . eval_custom_target_command ( target )
deps = self . unwrap_dep_list ( target )
deps = self . unwrap_dep_list ( target )
deps + = self . get_custom_ target_depend_files ( target )
deps + = self . get_target_depend_files ( target )
if target . build_always_stale :
if target . build_always_stale :
deps . append ( ' PHONY ' )
deps . append ( ' PHONY ' )
if target . depfile is None :
if target . depfile is None :
@ -1214,7 +1214,7 @@ class NinjaBackend(backends.Backend):
elem . add_item ( ' description ' , f ' Running external command { target . name } { cmd_type } ' )
elem . add_item ( ' description ' , f ' Running external command { target . name } { cmd_type } ' )
elem . add_item ( ' pool ' , ' console ' )
elem . add_item ( ' pool ' , ' console ' )
deps = self . unwrap_dep_list ( target )
deps = self . unwrap_dep_list ( target )
deps + = self . get_custom_ target_depend_files ( target )
deps + = self . get_target_depend_files ( target )
elem . add_dep ( deps )
elem . add_dep ( deps )
self . add_build ( elem )
self . add_build ( elem )
self . processed_targets . add ( target . get_id ( ) )
self . processed_targets . add ( target . get_id ( ) )
@ -1712,18 +1712,10 @@ class NinjaBackend(backends.Backend):
if isinstance ( gensrc , modules . GResourceTarget ) :
if isinstance ( gensrc , modules . GResourceTarget ) :
gres_xml , = self . get_custom_target_sources ( gensrc )
gres_xml , = self . get_custom_target_sources ( gensrc )
args + = [ ' --gresources= ' + gres_xml ]
args + = [ ' --gresources= ' + gres_xml ]
extra_args = [ ]
for a in target . extra_args . get ( ' vala ' , [ ] ) :
if isinstance ( a , File ) :
relname = a . rel_to_builddir ( self . build_to_src )
extra_dep_files . append ( relname )
extra_args . append ( relname )
else :
extra_args . append ( a )
dependency_vapis = self . determine_dep_vapis ( target )
dependency_vapis = self . determine_dep_vapis ( target )
extra_dep_files + = dependency_vapis
extra_dep_files + = dependency_vapis
args + = extra_args
extra_dep_files . extend ( self . get_target_depend_files ( target ) )
args + = target . get_extra_args ( ' vala ' )
element = NinjaBuildElement ( self . all_outputs , valac_outputs ,
element = NinjaBuildElement ( self . all_outputs , valac_outputs ,
self . compiler_to_rule_name ( valac ) ,
self . compiler_to_rule_name ( valac ) ,
all_files + dependency_vapis )
all_files + dependency_vapis )
@ -2622,7 +2614,7 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485'''))
exe = generator . get_exe ( )
exe = generator . get_exe ( )
infilelist = genlist . get_inputs ( )
infilelist = genlist . get_inputs ( )
outfilelist = genlist . get_outputs ( )
outfilelist = genlist . get_outputs ( )
extra_dependencies = self . get_custom_ target_depend_files ( genlist )
extra_dependencies = self . get_target_depend_files ( genlist )
for i , curfile in enumerate ( infilelist ) :
for i , curfile in enumerate ( infilelist ) :
if len ( generator . outputs ) == 1 :
if len ( generator . outputs ) == 1 :
sole_output = os . path . join ( self . get_target_private_dir ( target ) , outfilelist [ i ] )
sole_output = os . path . join ( self . get_target_private_dir ( target ) , outfilelist [ i ] )