Debian Codegraph @

cmake/modules/sip-generate.py

raw symbols SCIP
1 #!/usr/bin/env python3
2
3 # SPDX-FileCopyrightText: 2019 Riverbank Computing Limited
4 # SPDX-FileCopyrightText: 2021 L. E. Segovia <[email protected]>
5 # SPDX-License-Identifier: GPL-2.0-or-later
6
7 from sipbuild.abstract_project import AbstractProject
8 from sipbuild.exceptions import handle_exception
9
10 def main():
11 """ Generate the project bindings from the command line. """
12
13 try:
14 project = AbstractProject.bootstrap(
15 'build', "Generate the project bindings.")
16 project.builder._generate_bindings()
17 project.progress("The project bindings are ready for build.")
18 except Exception as e:
19 handle_exception(e)
20
21 return 0
22
23 if __name__ == "__main__":
24 main()