Skip to content

Commit de8eecc

Browse files
committed
In tests, remove the word "example" to avoid confusion
1 parent 9c7567d commit de8eecc

17 files changed

Lines changed: 459 additions & 460 deletions

test/CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ add_library(${TARGET_NAME} SHARED EXCLUDE_FROM_ALL)
1313

1414
target_sources(
1515
${TARGET_NAME}
16-
PRIVATE src/example.cpp src/example.h src/register_types.cpp src/register_types.h src/tests.h
16+
PRIVATE src/my_test.cpp src/my_test.h src/register_types.cpp src/register_types.h src/tests.h
1717
)
1818

1919
# conditionally add doc data to compile output
@@ -52,8 +52,7 @@ set_target_properties(
5252
PDB_OUTPUT_DIRECTORY "$<1:${OUTPUT_DIR}>" #MSVC Only, ignored on other platforms
5353

5454
PREFIX "lib"
55-
OUTPUT_NAME "gdexample${GODOTCPP_SUFFIX}"
56-
# TODO rename the file for both CMake and SCons
55+
OUTPUT_NAME "mytest${GODOTCPP_SUFFIX}"
5756

5857
# Some IDE's respect this property to logically group targets
5958
FOLDER "godot-cpp"
@@ -64,6 +63,6 @@ set_target_properties(
6463
if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
6564
set_target_properties(
6665
${TARGET_NAME}
67-
PROPERTIES SUFFIX "" OUTPUT_DIR "${OUTPUT_DIR}/libgdexample.macos.${GODOTCPP_TARGET}.framework"
66+
PROPERTIES SUFFIX "" OUTPUT_DIR "${OUTPUT_DIR}/libmytest.macos.${GODOTCPP_TARGET}.framework"
6867
)
6968
endif()

test/SConstruct

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@ if env["target"] in ["editor", "template_debug"]:
2020

2121
if env["platform"] == "macos":
2222
library = env.SharedLibrary(
23-
"project/bin/libgdexample.{}.{}.framework/libgdexample.{}.{}".format(
23+
"project/bin/libmytest.{}.{}.framework/libmytest.{}.{}".format(
2424
env["platform"], env["target"], env["platform"], env["target"]
2525
),
2626
source=sources,
2727
)
2828
elif env["platform"] == "ios":
2929
if env["ios_simulator"]:
3030
library = env.StaticLibrary(
31-
"project/bin/libgdexample.{}.{}.simulator.a".format(env["platform"], env["target"]),
31+
"project/bin/libmytest.{}.{}.simulator.a".format(env["platform"], env["target"]),
3232
source=sources,
3333
)
3434
else:
3535
library = env.StaticLibrary(
36-
"project/bin/libgdexample.{}.{}.a".format(env["platform"], env["target"]),
36+
"project/bin/libmytest.{}.{}.a".format(env["platform"], env["target"]),
3737
source=sources,
3838
)
3939
else:
4040
library = env.SharedLibrary(
41-
"project/bin/libgdexample{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),
41+
"project/bin/libmytest{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),
4242
source=sources,
4343
)
4444

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
2-
<class name="Example" inherits="Control" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/godotengine/godot/master/doc/class.xsd">
2+
<class name="MyTestMain" inherits="Control" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/godotengine/godot/master/doc/class.xsd">
33
<brief_description>
44
A test control defined in GDExtension.
55
</brief_description>

test/generate_xcframework.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
scons arch=universal ios_simulator=yes platform=ios target=$1 $2
44
scons arch=arm64 ios_simulator=no platform=ios target=$1 $2
55

6-
xcodebuild -create-xcframework -library ./project/bin/libgdexample.ios.$1.a -library ./project/bin/libgdexample.ios.$1.simulator.a -output ./project/bin/libgdexample.ios.$1.xcframework
6+
xcodebuild -create-xcframework -library ./project/bin/libmytest.ios.$1.a -library ./project/bin/libmytest.ios.$1.simulator.a -output ./project/bin/libmytest.ios.$1.xcframework
77
xcodebuild -create-xcframework -library ../bin/libgodot-cpp.ios.$1.arm64.a -library ../bin/libgodot-cpp.ios.$1.universal.simulator.a -output ./project/bin/libgodot-cpp.ios.$1.xcframework

test/project/example.gdextension

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)