Bug 1665166 - Normalize non_unified_source paths in gn_processor.py r=firefox-build-system-reviewers,rstewart

In order to support building with relative paths to third-party code we need
to normalize the non-unified source paths prior to comparing them to incoming
source paths during moz.build file generation.

Depends on D91319

Differential Revision: https://phabricator.services.mozilla.com/D91320
This commit is contained in:
Dan Minor 2020-09-24 18:55:02 +00:00
parent 45562522d9
commit 67f56c312d

View File

@ -191,6 +191,8 @@ def process_gn_config(gn_config, srcdir, config, output, non_unified_sources,
project_relsrcdir = mozpath.relpath(srcdir, config.topsrcdir)
non_unified_sources = set([mozpath.normpath(s) for s in non_unified_sources])
def target_info(fullname):
path, name = target_fullname.split(':')
# Stripping '//' gives us a path relative to the project root,