Skip to content

Commit

Permalink
same names..
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriySalnikov committed Jul 15, 2023
1 parent 47f3441 commit 66e74bb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .github/actions/compile_gdextension/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ inputs:
arch:
description: Arch (universal|x86_32|x86_64|arm32|arm64|rv64|ppc32|ppc64|wasm32)
default: ""
dummy_api:
description: Is dummy_api enabled
default: "no"
additional:
description: Any additional arguments
default: ""
Expand Down Expand Up @@ -71,7 +74,7 @@ runs:
git apply --ignore-space-change --ignore-whitespace ../patches/godot_cpp_exclude_unused_classes.patch
git apply --ignore-space-change --ignore-whitespace ../patches/1165.patch
cd ..
scons platform=${{inputs.platform}} arch=${{inputs.arch}} target=${{inputs.target}} addon_output_dir=${{inputs.output_libs_path}} ${{inputs.additional}}
scons platform=${{inputs.platform}} arch=${{inputs.arch}} target=${{inputs.target}} addon_output_dir=${{inputs.output_libs_path}} dummy_api=${{inputs.dummy_api}} ${{inputs.additional}}
echo "::endgroup::"
- name: Prepare artifact Unix
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/gdextension_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ jobs:
arch: ${{matrix.arch}}
output_libs_path: ${{env.OUTPUT_LIBS_PATH}}
artifact: windows
additional: lto=yes dummy_api=${{matrix.dummy}}
dummy_api: ${{matrix.dummy}}
additional: lto=yes

# ============================================

Expand Down Expand Up @@ -89,7 +90,8 @@ jobs:
arch: ${{matrix.arch}}
output_libs_path: ${{env.OUTPUT_LIBS_PATH}}
artifact: linux
additional: lto=yes dummy_api=${{matrix.dummy}}
dummy_api: ${{matrix.dummy}}
additional: lto=yes

# ============================================

Expand Down Expand Up @@ -124,7 +126,8 @@ jobs:
arch: ${{matrix.arch}}
output_libs_path: ${{env.OUTPUT_LIBS_PATH}}
artifact: macos
additional: lto=yes macos_deployment_target=10.14 dummy_api=${{matrix.dummy}}
dummy_api: ${{matrix.dummy}}
additional: lto=yes macos_deployment_target=10.14

# ============================================

Expand Down Expand Up @@ -162,7 +165,8 @@ jobs:
arch: ${{matrix.arch}}
output_libs_path: ${{env.OUTPUT_LIBS_PATH}}
artifact: android
additional: lto=yes dummy_api=${{matrix.dummy}}
dummy_api: ${{matrix.dummy}}
additional: lto=yes

# ============================================

Expand Down
8 changes: 6 additions & 2 deletions lib_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,12 @@ def gdnative_get_library_object(env, arguments=None, gen_help=None):
# store all obj's in a dedicated folder
env["SHOBJPREFIX"] = "#obj/"

library_full_name = "lib" + lib_name + ".{}.{}.{}{}".format(
env["platform"], env["target"], env["arch"], env["SHLIBSUFFIX"])
additional_tags = ""
if env.get("dummy_api", False):
additional_tags += ".dummy"

library_full_name = "lib" + lib_name + ".{}.{}.{}{}{}".format(
env["platform"], env["target"], env["arch"], additional_tags,env["SHLIBSUFFIX"])

env.Default(env.SharedLibrary(
target=env.File(Path(env["addon_output_dir"]) / library_full_name),
Expand Down

0 comments on commit 66e74bb

Please sign in to comment.