codegen: Drop gdbus-codegen version and input filename from output

It’s not particularly useful to put the gdbus-codegen version or the
name of the input file into the output from `gdbus-codegen`, and it
makes the output less reproducible. Drop it.

Also clarify the licensing.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Helps: #1612
This commit is contained in:
Philip Withnall 2019-12-02 14:07:25 +00:00
parent 691485fb7c
commit 921e6d1245

View File

@ -29,10 +29,11 @@ from . import dbustypes
from .utils import print_error
LICENSE_STR = '''/*
* Generated by gdbus-codegen {!s} from {!s}. DO NOT EDIT.
* This file is generated by gdbus-codegen, do not modify it.
*
* The license of this code is the same as for the D-Bus interface description
* it was derived from.
* it was derived from. Note that it links to GLib, so must comply with the
* LGPL linking clauses.
*/\n'''
def generate_namespace(namespace):