generated from Persson-dev/Godot-Xmake
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -15,6 +15,7 @@ build/
|
||||
*.lib
|
||||
*.TMP
|
||||
|
||||
demo/.godot
|
||||
godot/.godot
|
||||
godot/lib
|
||||
|
||||
publish
|
||||
|
||||
30
godot/bin/Blitz3.gdextension
Normal file
30
godot/bin/Blitz3.gdextension
Normal file
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
Before Width: | Height: | Size: 949 B After Width: | Height: | Size: 949 B |
@@ -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"
|
||||
@@ -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"
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user