-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renames from GDNative to GDExtension Add Pictures/Gifs and clarified compatability Remove GDNative language bindings from GDExtension docs Update SConstruct and AddingProperties section updated with suggestions Added property hint example + updated to API naming changes Fixed redirect.csv
- Loading branch information
Showing
15 changed files
with
796 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
tutorials/scripting/gdextension/files/cpp_example/SConstruct
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
|
||
env = SConscript("godot-cpp/SConstruct") | ||
|
||
# For reference: | ||
# - CCFLAGS are compilation flags shared between C and C++ | ||
# - CFLAGS are for C-specific compilation flags | ||
# - CXXFLAGS are for C++-specific compilation flags | ||
# - CPPFLAGS are for pre-processor flags | ||
# - CPPDEFINES are for pre-processor defines | ||
# - LINKFLAGS are for linking flags | ||
|
||
# tweak this if you want to use different folders, or more folders, to store your source code in. | ||
env.Append(CPPPATH=["src/"]) | ||
sources = Glob("src/*.cpp") | ||
|
||
if env["platform"] == "macos": | ||
library = env.SharedLibrary( | ||
"demo/bin/libgdexample.{}.{}.framework/libgdexample.{}.{}".format( | ||
env["platform"], env["target"], env["platform"], env["target"] | ||
), | ||
source=sources, | ||
) | ||
else: | ||
library = env.SharedLibrary( | ||
"demo/bin/libgdexample{}{}".format(env["suffix"], env["SHLIBSUFFIX"]), | ||
source=sources, | ||
) | ||
|
||
Default(library) |
Oops, something went wrong.