summaryrefslogtreecommitdiffstats
path: root/core/core_builders.py
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-09-15 14:45:54 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-09-15 14:45:54 +0200
commit0e56377e96ee492cc30de9ad2e6e9242737f4dbd (patch)
tree2f2a60a28e21b5b8f90218b2f8df18ecc4fa6c09 /core/core_builders.py
parentd2b38aabecd8f9bac5c050841f730ccbe07538f2 (diff)
downloadredot-engine-0e56377e96ee492cc30de9ad2e6e9242737f4dbd.tar.gz
Allow system certs file to be used by Editor.
Note, it will only used by the Editor, not when running the game. This allows package maintainer to compile Godot to use system installed certificates when accessing the AssetLib.
Diffstat (limited to 'core/core_builders.py')
-rw-r--r--core/core_builders.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/core_builders.py b/core/core_builders.py
index 7b2f88a242..f3a9e3b221 100644
--- a/core/core_builders.py
+++ b/core/core_builders.py
@@ -21,6 +21,10 @@ def make_certs_header(target, source, env):
g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n")
g.write("#ifndef _CERTS_RAW_H\n")
g.write("#define _CERTS_RAW_H\n")
+
+ # System certs path. Editor will use them if defined. (for package maintainers)
+ path = env['system_certs_path']
+ g.write("#define _SYSTEM_CERTS_PATH \"%s\"\n" % str(path))
if env['builtin_certs']:
# Defined here and not in env so changing it does not trigger a full rebuild.
g.write("#define BUILTIN_CERTS_ENABLED\n")