Bug 884587 - Part 2: Add EXPORTS files to purge manifest; r=glandium

This commit is contained in:
Gregory Szorc 2013-06-25 11:04:06 -07:00
parent f8d99eeb9b
commit 070243403a
2 changed files with 11 additions and 0 deletions

View File

@ -323,6 +323,10 @@ class RecursiveMakeBackend(BuildBackend):
if strings:
backend_file.write('%s += %s\n' % (export_name, ' '.join(strings)))
for s in strings:
p = '%s%s' % (namespace, s)
self._purge_manifests['dist_include'].add(p)
children = exports.get_children()
for subdir in sorted(children):
self._process_exports(children[subdir], backend_file,

View File

@ -231,6 +231,13 @@ class TestRecursiveMakeBackend(BackendTester):
'EXPORTS_nspr/private += pprio.h',
])
# EXPORTS files should appear in the dist_include purge manifest.
m = PurgeManifest.from_path(os.path.join(env.topobjdir,
'_build_manifests', 'purge', 'dist_include'))
self.assertIn('foo.h', m.entries)
self.assertIn('mozilla/mozilla1.h', m.entries)
self.assertIn('mozilla/dom/dom2.h', m.entries)
def test_xpcshell_manifests(self):
"""Ensure XPCSHELL_TESTS_MANIFESTS is written out correctly."""
env = self._consume('xpcshell_manifests', RecursiveMakeBackend)