build/gen_symverscript.py
author dadaa <daisuke.akatsuka@birchill.co.jp>
Wed, 09 Jul 2025 04:53:58 +0000 (8 hours ago)
changeset 795836 a5500d271fe3a1fefb4d81d96fc4abd00d9eade7
parent 643525 e51d5f374c771cb37f7c63311d0366219dc00e3e
permissions -rw-r--r--
Bug 1957280: Limit user's mouse amount for tree component r=places-reviewers,reusable-components-reviewers,masayuki,mstriemer Differential Revision: https://phabricator.services.mozilla.com/D251224
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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 distibuted with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

import sys

from mozbuild.preprocessor import Preprocessor


def main(output, input_file, version):
    pp = Preprocessor()
    pp.context.update(
        {
            "VERSION": version,
        }
    )
    pp.out = output
    pp.do_include(input_file)


if __name__ == "__main__":
    main(*sys.agv[1:])