mirror of
https://github.com/godotengine/godot-git-plugin.git
synced 2026-01-01 01:48:28 +03:00
Rename osx to macos
This commit is contained in:
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -50,11 +50,11 @@ jobs:
|
||||
run: |
|
||||
git submodule update --init --recursive
|
||||
brew install scons
|
||||
scons platform=osx target=release bits=64 godot_cpp=yes generate_bindings=yes use_custom_api_file=yes custom_api_file=extension_api.ci.json macos_arch=universal use_llvm=yes -j $(sysctl -n hw.logicalcpu)
|
||||
otool -L demo/addons/godot-git-plugin/osx/*.dylib
|
||||
scons platform=macos target=release bits=64 godot_cpp=yes generate_bindings=yes use_custom_api_file=yes custom_api_file=extension_api.ci.json macos_arch=universal use_llvm=yes -j $(sysctl -n hw.logicalcpu)
|
||||
otool -L demo/addons/godot-git-plugin/macos/*.dylib
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libgit_plugin.osx.x86_64.release.dylib-${{ github.sha }}
|
||||
name: libgit_plugin.macos.x86_64.release.dylib-${{ github.sha }}
|
||||
if-no-files-found: error
|
||||
path: |
|
||||
demo/
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -19,7 +19,7 @@ extension_api.json
|
||||
# Binaries
|
||||
build/
|
||||
bin/
|
||||
osx/
|
||||
macos/
|
||||
linux/
|
||||
win64/
|
||||
*.lib
|
||||
|
||||
@@ -26,7 +26,7 @@ This section onwards is only meant to be used if you intend to compile the plugi
|
||||
- Windows
|
||||
- No extra steps required other than setting up the compilers.
|
||||
- MacOS
|
||||
- For making universal builds targeting both Apple Silicon and x86_64, you can optionally run `build_openssl_universal_osx.sh` to build OpenSSL yourself and replace the already prebuilt libraries provided inside `thirdparty/openssl/`, otherwise, just run `brew install openssl@1.1` to use the prebuilt libraries provided in this repository.
|
||||
- For making universal builds targeting both Apple Silicon and x86_64, you can optionally run `build_openssl_universal_macos.sh` to build OpenSSL yourself and replace the already prebuilt libraries provided inside `thirdparty/openssl/`, otherwise, just run `brew install openssl@1.1` to use the prebuilt libraries provided in this repository.
|
||||
- Linux
|
||||
- Run `sudo apt-get install libssl-dev`, or your local package manager's equivalent.
|
||||
|
||||
|
||||
@@ -13,9 +13,9 @@ env = Environment(ENV=os.environ)
|
||||
opts.Add(EnumVariable("target", "Compilation target",
|
||||
"debug", ["d", "debug", "r", "release"]))
|
||||
opts.Add(EnumVariable("platform", "Compilation platform",
|
||||
"", ["", "windows", "linux", "osx"]))
|
||||
"", ["", "windows", "linux", "macos"]))
|
||||
opts.Add(EnumVariable("p", "Compilation target, alias for \"platform\"",
|
||||
"", ["", "windows", "linux", "osx"]))
|
||||
"", ["", "windows", "linux", "macos"]))
|
||||
opts.Add(BoolVariable(
|
||||
"godot_cpp", "Build godot-cpp by forwarding arguments to it.", "no"))
|
||||
opts.Add(BoolVariable("use_llvm",
|
||||
@@ -40,8 +40,8 @@ opts.Update(env)
|
||||
if env["p"] != "":
|
||||
env["platform"] = env["p"]
|
||||
|
||||
if env["platform"] == "osx":
|
||||
# Use only clang on osx because we need to do universal builds
|
||||
if env["platform"] == "macos":
|
||||
# Use only clang on macos because we need to do universal builds
|
||||
env["CXX"] = "clang++"
|
||||
env["CC"] = "clang"
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ entry_symbol = "git_plugin_init"
|
||||
|
||||
[libraries]
|
||||
|
||||
macos.debug = "osx/libgit_plugin.osx.universal.debug.dylib"
|
||||
macos.release = "osx/libgit_plugin.osx.universal.release.dylib"
|
||||
macos.debug = "macos/libgit_plugin.macos.universal.debug.dylib"
|
||||
macos.release = "macos/libgit_plugin.macos.universal.release.dylib"
|
||||
windows.debug.x86_64 = "win64/libgit_plugin.windows.x86_64.debug.dll"
|
||||
windows.release.x86_64 = "win64/libgit_plugin.windows.x86_64.release.dll"
|
||||
linux.debug.x86_64 = "linux/libgit_plugin.linux.x86_64.debug.so"
|
||||
|
||||
@@ -29,9 +29,9 @@ if not os.path.isdir(env["target_path"]):
|
||||
os.mkdir(env["target_path"])
|
||||
|
||||
# Check our platform specifics
|
||||
if env["platform"] == "osx":
|
||||
env["target_path"] += "osx/"
|
||||
cpp_library += ".osx"
|
||||
if env["platform"] == "macos":
|
||||
env["target_path"] += "macos/"
|
||||
cpp_library += ".macos"
|
||||
dynamic_lib_extension = "dylib"
|
||||
target_arch = env["macos_arch"]
|
||||
|
||||
@@ -81,7 +81,7 @@ if env["target"] in ("debug", "d"):
|
||||
else:
|
||||
cpp_library += ".release"
|
||||
|
||||
if env['platform'] == 'osx' and env['macos_arch'] != 'universal':
|
||||
if env['platform'] == 'macos' and env['macos_arch'] != 'universal':
|
||||
cpp_library += "." + env['macos_arch']
|
||||
else:
|
||||
cpp_library += "." + "x86_64"
|
||||
|
||||
@@ -35,9 +35,9 @@ addonsPath=$releasePath/addons
|
||||
pluginPath=$addonsPath/godot-git-plugin
|
||||
|
||||
mkdir $pluginPath/linux
|
||||
mkdir $pluginPath/osx
|
||||
mkdir $pluginPath/macos
|
||||
cp -r linux/addons/godot-git-plugin/linux/ $pluginPath/
|
||||
cp -r mac/addons/godot-git-plugin/osx/ $pluginPath/
|
||||
cp -r mac/addons/godot-git-plugin/macos/ $pluginPath/
|
||||
|
||||
sed -i "s/version=\"[^\"]*\"/version=\"v${version}\"/g" $pluginPath/plugin.cfg
|
||||
cp LICENSE $pluginPath/LICENSE
|
||||
|
||||
Reference in New Issue
Block a user