mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-24 05:13:07 +09:00
Issue #1497 - Re-implement an un-preprocessed file check
This commit is contained in:
parent
1ad6d00b61
commit
011949484d
2 changed files with 91 additions and 0 deletions
|
|
@ -541,6 +541,25 @@ class Build(MachCommandBase):
|
|||
# as when doing OSX Universal builds)
|
||||
pass
|
||||
|
||||
# Check for un-preprocessed files.. In case something goes wrong it will be noted
|
||||
ppcheck_script = mozpath.join(self.topsrcdir, "build", "ppCheck.py")
|
||||
ppcheck_path = mozpath.join(self.topobjdir, "dist", "bin")
|
||||
if not os.path.exists(ppcheck_script):
|
||||
ppcheck_script = mozpath.join(self.topsrcdir, "mozilla", "build", "ppCheck.py")
|
||||
|
||||
if not os.path.exists(ppcheck_script):
|
||||
ppcheck_script = mozpath.join(self.topsrcdir, "platform", "build", "ppCheck.py")
|
||||
else:
|
||||
ppcheck_script = None
|
||||
|
||||
if ppcheck_script:
|
||||
ppcheck_cmd = [which.which("python2.7"), ppcheck_script, ppcheck_path]
|
||||
ppcheck_result = subprocess.call(ppcheck_cmd, cwd=self.topsrcdir)
|
||||
|
||||
if not ppcheck_script or ppcheck_result:
|
||||
print("\nWARNING: Something has gone wrong with the check for un-preprocessed files. " +
|
||||
"Please manually verify that files are properly preprocessed.")
|
||||
|
||||
return status
|
||||
|
||||
@Command('configure', category='build',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue