summaryrefslogtreecommitdiff
path: root/core/os
diff options
context:
space:
mode:
authorGilles Roudière <gilles.roudiere@gmail.com>2022-10-26 18:23:09 +0200
committerGilles Roudière <gilles.roudiere@gmail.com>2022-12-01 18:20:40 +0100
commitfa4143cdeba7c01454190ef90717b73fa6f5722f (patch)
tree0126adf81b5603ab46a7384bfae8e83c67b9ad67 /core/os
parent36bcb8256543fdad71d3f6c7179584ff2591cac6 (diff)
Allow specifying a prefix to automatically detect library files for gdextension exports
Diffstat (limited to 'core/os')
-rw-r--r--core/os/os.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/core/os/os.cpp b/core/os/os.cpp
index bbb2a94fe7..055385579f 100644
--- a/core/os/os.cpp
+++ b/core/os/os.cpp
@@ -353,20 +353,26 @@ bool OS::has_feature(const String &p_feature) {
if (p_feature == "debug") {
return true;
}
+#endif // DEBUG_ENABLED
+
+#ifdef TOOLS_ENABLED
+ if (p_feature == "editor") {
+ return true;
+ }
#else
- if (p_feature == "release") {
+ if (p_feature == "template") {
return true;
}
-#endif
-#ifdef TOOLS_ENABLED
- if (p_feature == "editor") {
+#ifdef DEBUG_ENABLED
+ if (p_feature == "template_debug") {
return true;
}
#else
- if (p_feature == "standalone") {
+ if (p_feature == "template_release" || p_feature == "release") {
return true;
}
-#endif
+#endif // DEBUG_ENABLED
+#endif // TOOLS_ENABLED
if (sizeof(void *) == 8 && p_feature == "64") {
return true;