mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 884587 - Part 2: Add EXPORTS files to purge manifest; r=glandium
This commit is contained in:
parent
f8d99eeb9b
commit
070243403a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user