diff --git a/.gitignore b/.gitignore index 2797204..6124684 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ build/ *.lib *.TMP -demo/.godot +godot/.godot +godot/lib publish diff --git a/godot/bin/Blitz3.gdextension b/godot/bin/Blitz3.gdextension new file mode 100644 index 0000000..be8f5b5 --- /dev/null +++ b/godot/bin/Blitz3.gdextension @@ -0,0 +1,30 @@ +[icons] +Blitz3 = "res://icon.svg" + +[configuration] + +entry_symbol = "library_init" +compatibility_minimum = "4.2" + +[libraries] + +macos.debug = "res://lib/libBlitz3.macos_framework" +macos.release = "res://lib/libBlitz3.macos_framework" + +window.debug.x86_32 = "res://lib/libBlitz3.windows_debug_x86.dll" +window.release.x86_32 = "res://lib/libBlitz3.windows_release_x86.dll" +window.debug.x86_64 = "res://lib/libBlitz3.windows_debug_x64.dll" +window.release.x86_64 = "res://lib/libBlitz3.windows_release_x64.dll" + +linux.debug.x86_64 = "res://lib/libBlitz3.linux_debug_x86_64.so" +linux.release.x86_64 = "res://lib/libBlitz3.linux_release_x86_64.so" +linux.debug.arm64 = "res://lib/libBlitz3.linux_debug_arm64.so" +linux.release.arm64 = "res://lib/libBlitz3.linux_release_arm64.so" +linux.debug.rv64 = "res://lib/libBlitz3.linux_debug_rv64.so" +linux.release.rv64 = "res://lib/libBlitz3.linux_release_rv64.so" + +android.debug.x86_64 = "res://lib/libBlitz3.android_debug_x86_64.so" +android.release.x86_64 = "res://lib/libBlitz3.android_release_x86_64.so" +android.debug.arm64 = "res://lib/libBlitz3.android_debug_arm64.so" +android.release.arm64 = "res://lib/libBlitz3.android_release_arm64.so" + diff --git a/demo/export_presets.cfg b/godot/export_presets.cfg similarity index 99% rename from demo/export_presets.cfg rename to godot/export_presets.cfg index 85165a6..03c2045 100644 --- a/demo/export_presets.cfg +++ b/godot/export_presets.cfg @@ -19,7 +19,7 @@ encrypt_directory=false custom_template/debug="" custom_template/release="" debug/export_console_wrapper=1 -binary_format/embed_pck=false +binary_format/embed_pck=true texture_format/bptc=true texture_format/s3tc=true texture_format/etc=false @@ -82,7 +82,7 @@ encrypt_directory=false custom_template/debug="" custom_template/release="" debug/export_console_wrapper=1 -binary_format/embed_pck=false +binary_format/embed_pck=true texture_format/bptc=true texture_format/s3tc=true texture_format/etc=false diff --git a/demo/icon.svg b/godot/icon.svg similarity index 100% rename from demo/icon.svg rename to godot/icon.svg diff --git a/demo/icon.svg.import b/godot/icon.svg.import similarity index 100% rename from demo/icon.svg.import rename to godot/icon.svg.import diff --git a/demo/main.tscn b/godot/main.tscn similarity index 100% rename from demo/main.tscn rename to godot/main.tscn diff --git a/demo/project.godot b/godot/project.godot similarity index 94% rename from demo/project.godot rename to godot/project.godot index 9d0b642..7a608df 100644 --- a/demo/project.godot +++ b/godot/project.godot @@ -10,7 +10,7 @@ config_version=5 [application] -config/name="demo" +config/name="Blitz3" run/main_scene="res://main.tscn" config/features=PackedStringArray("4.2", "Forward Plus") config/icon="res://icon.svg" diff --git a/xmake.lua b/xmake.lua index fbec89d..fbd628c 100644 --- a/xmake.lua +++ b/xmake.lua @@ -6,13 +6,13 @@ ------- basic custom config part ------- -- project name -PROJECT_NAME = "gdexample" +PROJECT_NAME = "Blitz3" -- project version VERSION = "0.0.1" -- godot project folder, this will be used as export name, so be careful to make sure it is a valid name -GODOT_PROJECT_FOLDER = "demo" +GODOT_PROJECT_FOLDER = "godot" -- publish folder, the exported files will be put here PUBLISH_FOLDER = "publish" diff --git a/xmake/tasks.lua b/xmake/tasks.lua index b937bd5..035f871 100644 --- a/xmake/tasks.lua +++ b/xmake/tasks.lua @@ -6,7 +6,7 @@ -- target_platform: the target platform, like "Windows Desktop" -- name: the export execute name, it will be endswith ".exe" on windows task("export") - on_run((function(godot_project_folder, publish_folder) + on_run((function(godot_project_folder, publish_folder, project_name) return function(target_platform) local name = godot_project_folder @@ -35,13 +35,13 @@ task("export") local godot_project_file = path.join(godot_project_folder, "project.godot") - local export_path = path.absolute(path.join(publish_folder, name)) + local export_path = path.absolute(path.join(publish_folder, project_name)) os.execv("echo", {"godot", godot_project_file, export_mode, target_platform, export_path}) os.exec("godot %s --headless --%s %s %s", godot_project_file, export_mode, "\"" .. target_platform .. "\"", export_path) end - end)(GODOT_PROJECT_FOLDER, PUBLISH_FOLDER)) + end)(GODOT_PROJECT_FOLDER, PUBLISH_FOLDER, PROJECT_NAME)) task_end()