Simplify target generation in GnomeModule.compile_resources

pull/381/head
Damián Nohales 9 years ago
parent b91662a903
commit 8bcd25f5b4
  1. 8
      mesonbuild/modules/gnome.py

@ -44,11 +44,9 @@ class GnomeModule:
kwargs['command'] = cmd kwargs['command'] = cmd
kwargs['input'] = args[1] kwargs['input'] = args[1]
output_c = args[0] + '.c' kwargs['output'] = args[0] + '.c'
output_h = args[0] + '.h' target_c = build.CustomTarget(args[0] + '_c', state.subdir, kwargs)
kwargs['output'] = output_c kwargs['output'] = args[0] + '.h'
target_c = build.CustomTarget(args[0]+'_c', state.subdir, kwargs)
kwargs['output'] = output_h
target_h = build.CustomTarget(args[0] + '_h', state.subdir, kwargs) target_h = build.CustomTarget(args[0] + '_h', state.subdir, kwargs)
return [target_c, target_h] return [target_c, target_h]

Loading…
Cancel
Save