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
Родитель b39bae5dc8
Коммит 9f69f982a3
2 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -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,

Просмотреть файл

@ -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)