author J.C. Jones <>
Fri, 04 May 2018 10:42:48 -0700
changeset 416984 b95fbd8db183e66d9880c2b407c342ef9ed7230a
parent 391025 5a967cc85e28e63c283a81e2c76444a76dfbd266
child 419599 da3c81f986fa63b42a2874b1791eddcdbfbe8424
permissions -rw-r--r--
Bug 1445731 - land NSS NSS_3_37_RTM UPGRADE_NSS_RELEASE, r=me

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at
from __future__ import print_function
import os
import sys
from mozbuild.util import FileAvoidWrite

header_template = '''#pragma GCC system_header
#pragma GCC visibility push(default)
#include_next <%(header)s>
#pragma GCC visibility pop

# The 'unused' arg is the output file from the file_generate action. We actually
# generate all the files in header_list
def gen_wrappers(unused, outdir, *header_list):
    for header in header_list:
        with FileAvoidWrite(os.path.join(outdir, header)) as f:
            f.write(header_template % {
                'header': header,