Compare commits

...

4 Commits

Author SHA1 Message Date
K. S. Ernest (iFire) Lee 81ed689f3c
Merge 5cf329a8dc into 3f44e9b404 2023-12-31 08:26:05 -07:00
David Snopek 3f44e9b404
Merge pull request #1339 from aaronfranke/detect-gdext
Allow detecting when building as a GDExtension
2023-12-29 14:14:35 -06:00
Aaron Franke e17c7bf530
Allow detecting when building as a GDExtension 2023-12-18 09:13:20 -06:00
K. S. Ernest (iFire) Lee 5cf329a8dc Support llvm-mingw. 2023-07-08 16:12:12 -07:00
2 changed files with 4 additions and 1 deletions

View File

@ -38,7 +38,7 @@
#if !defined(GDE_EXPORT)
#if defined(_WIN32)
#define GDE_EXPORT __declspec(dllexport)
#elif defined(__GNUC__)
#elif defined(__GNUC__) && !defined(__MINGW32__)
#define GDE_EXPORT __attribute__((visibility("default")))
#else
#define GDE_EXPORT

View File

@ -295,6 +295,9 @@ def generate(env):
if env["precision"] == "double":
env.Append(CPPDEFINES=["REAL_T_IS_DOUBLE"])
# Allow detecting when building as a GDExtension.
env.Append(CPPDEFINES=["GDEXTENSION"])
# Suffix
suffix = ".{}.{}".format(env["platform"], env["target"])
if env.dev_build: