diff options
author | Damián Nohales <damiannohales@gmail.com> | 2016-02-09 16:10:18 -0300 |
---|---|---|
committer | Damián Nohales <damiannohales@gmail.com> | 2016-02-09 19:41:26 -0300 |
commit | 8bcd25f5b4538d11155c895003780d893fad7049 (patch) | |
tree | 0eb460c96024b891f46b11a464fe27923c1d21ee | |
parent | b91662a903b14a5d4617d3d876217c485a81cd3e (diff) | |
download | meson-8bcd25f5b4538d11155c895003780d893fad7049.zip meson-8bcd25f5b4538d11155c895003780d893fad7049.tar.gz meson-8bcd25f5b4538d11155c895003780d893fad7049.tar.bz2 |
Simplify target generation in GnomeModule.compile_resources
-rw-r--r-- | mesonbuild/modules/gnome.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 965342c..1e55b55 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -44,11 +44,9 @@ class GnomeModule: kwargs['command'] = cmd kwargs['input'] = args[1] - output_c = args[0] + '.c' - output_h = args[0] + '.h' - kwargs['output'] = output_c - target_c = build.CustomTarget(args[0]+'_c', state.subdir, kwargs) - kwargs['output'] = output_h + kwargs['output'] = args[0] + '.c' + target_c = build.CustomTarget(args[0] + '_c', state.subdir, kwargs) + kwargs['output'] = args[0] + '.h' target_h = build.CustomTarget(args[0] + '_h', state.subdir, kwargs) return [target_c, target_h] |