summaryrefslogtreecommitdiff
path: root/core/SCsub
diff options
context:
space:
mode:
authorIbrahn Sahir <ibrahn.sahir@gmail.com>2018-05-16 05:54:22 +0100
committerIbrahn Sahir <ibrahn.sahir@gmail.com>2018-05-19 00:40:16 +0100
commit1433c2cbbb89df1edb0b727c9781481af5705f59 (patch)
tree275b605dc53f680129baf19e1b954feaf35b75a4 /core/SCsub
parentedc3e6b0daf4acfeb3565f0f799d304d945e5a0a (diff)
GDScript access to copyright, license, author and donor information.
Adds following functions to the Engine singleton: get_author_info - names of Godot authors get_copyright_info - detailed source copyright get_license_info get_donor_info - donor names get_license_info - full text of licenses used, indexed by license names get_license_text - the text of the Godot Expat license
Diffstat (limited to 'core/SCsub')
-rw-r--r--core/SCsub13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/SCsub b/core/SCsub
index 383aaf0e12..c4f1cdbe97 100644
--- a/core/SCsub
+++ b/core/SCsub
@@ -2,6 +2,8 @@
Import('env')
+import methods
+
env.core_sources = []
@@ -93,6 +95,17 @@ env.add_source_files(env.core_sources, "*.cpp")
import make_binders
env.Command(['method_bind.gen.inc', 'method_bind_ext.gen.inc'], 'make_binders.py', make_binders.run)
+# Authors
+env.Depends('#core/authors.gen.h', "../AUTHORS.md")
+env.Command('#core/authors.gen.h', "../AUTHORS.md", methods.make_authors_header)
+
+# Donors
+env.Depends('#core/donors.gen.h', "../DONORS.md")
+env.Command('#core/donors.gen.h', "../DONORS.md", methods.make_donors_header)
+
+# License
+env.Depends('#core/license.gen.h', ["../COPYRIGHT.txt", "../LICENSE.txt"])
+env.Command('#core/license.gen.h', ["../COPYRIGHT.txt", "../LICENSE.txt"], methods.make_license_header)
# Chain load SCsubs
SConscript('os/SCsub')