Skip to content

Remove .dev suffix from builds. #1705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cmake/godotcpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ function( godotcpp_generate )
string( CONCAT GODOT_SUFFIX
"$<1:.${SYSTEM_NAME}>"
"$<1:.${TARGET_ALIAS}>"
"$<${IS_DEV_BUILD}:.dev>"
"$<$<STREQUAL:${GODOT_PRECISION},double>:.double>"
"$<1:.${ARCH_NAME}>"
# TODO IOS_SIMULATOR
Expand Down
11 changes: 11 additions & 0 deletions src/godot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,17 @@ void GDExtensionBinding::initialize_level(void *p_userdata, GDExtensionInitializ
doc_data.load_data();
}
}

#ifdef DEV_ENABLED
if ((ModuleInitializationLevel)p_level == MODULE_INITIALIZATION_LEVEL_SCENE) {
callable_mp_static(+[]() {
String library_path;
internal::gdextension_interface_get_library_path(internal::library, library_path._native_ptr());

WARN_PRINT("GDExtension loaded from a development build: " + library_path);
}).call_deferred();
}
#endif
}

void GDExtensionBinding::deinitialize_level(void *p_userdata, GDExtensionInitializationLevel p_level) {
Expand Down
4 changes: 1 addition & 3 deletions tools/godotcpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,6 @@ def generate(env):

# Suffix
suffix = ".{}.{}".format(env["platform"], env["target"])
if env.dev_build:
suffix += ".dev"
if env["precision"] == "double":
suffix += ".double"
suffix += "." + env["arch"]
Expand All @@ -496,7 +494,7 @@ def generate(env):
suffix += ".nothreads"

env["suffix"] = suffix # Exposed when included from another project
env["OBJSUFFIX"] = suffix + env["OBJSUFFIX"]
env["OBJSUFFIX"] = suffix + (".dev" if env.dev_build else "") + env["OBJSUFFIX"]

# compile_commands.json
env.Tool("compilation_db")
Expand Down