diff options
author | Daniel Burrows <dburrows@debian.org> | 2010-04-22 08:32:34 -0700 |
---|---|---|
committer | Daniel Burrows <dburrows@debian.org> | 2010-04-22 08:32:34 -0700 |
commit | 3563b1a8934bc24cf24a69a6bb60f980a21df973 (patch) | |
tree | 58d6240b3646667dea983de67978e085a456c510 /src/SConscript | |
parent | 7da394a7b89ca1af5b9d847876e48c0a0a0117bd (diff) | |
download | aptitude-3563b1a8934bc24cf24a69a6bb60f980a21df973.tar.gz |
Write a generic routine to filter headers out of a list of sources.
Diffstat (limited to 'src/SConscript')
-rw-r--r-- | src/SConscript | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SConscript b/src/SConscript index 23753b71..2867fefc 100644 --- a/src/SConscript +++ b/src/SConscript @@ -1,3 +1,5 @@ +from aptitude_build import NonHeaders + Import('programs_env') @@ -99,11 +101,9 @@ sub_srcs = SConscript(dirs = [ all_srcs = Flatten([toplevel_srcs, sub_srcs]) -all_non_header_srcs = [ x for x in all_srcs if not str(x).endswith('.h') ] - # TODO: add nodes for all variants (debug vs release, gtk vs no-gtk), # in separate build directories. -aptitude = programs_env.Program(target = 'aptitude', source = all_non_header_srcs) +aptitude = programs_env.Program(target = 'aptitude', source = NonHeaders(all_srcs)) pkg_hier_dump = programs_env.Program(target = 'src/generic/apt/pkg_hier_dump', source = [ '#/src/generic/apt/pkg_hier_dump.cc', |