From 79f81b77e2160fd4fb490b9e8e05636de70174bf Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 1 Nov 2017 23:12:28 -0300 Subject: -Modules can now add custom version info (added it for Mono) -Version string takes this version info -Ability to download templates from the interweb (listing does not work yet) --- methods.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'methods.py') diff --git a/methods.py b/methods.py index b62dfc654..2f3dac7e4 100644 --- a/methods.py +++ b/methods.py @@ -1149,7 +1149,10 @@ def build_gles3_headers(target, source, env): build_legacygl_header(str(x), include="drivers/gles3/shader_gles3.h", class_suffix="GLES3", output_attribs=True) -def update_version(): +def add_module_version_string(self,s): + self.module_version_string+="."+s + +def update_version(module_version_string=""): rev = "custom_build" @@ -1167,6 +1170,7 @@ def update_version(): f.write("#define VERSION_PATCH " + str(version.patch) + "\n") f.write("#define VERSION_REVISION " + str(rev) + "\n") f.write("#define VERSION_STATUS " + str(version.status) + "\n") + f.write("#define VERSION_MODULE_CONFIG \"" + str(version.module_config) + module_version_string + "\"\n") import datetime f.write("#define VERSION_YEAR " + str(datetime.datetime.now().year) + "\n") f.close() -- cgit v1.2.3-70-g09d2