Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alam Ed Arias
SRB2
Commits
8e66ed73
Commit
8e66ed73
authored
6 months ago
by
Eidolon
Browse files
Options
Downloads
Patches
Plain Diff
Add mac universal fuse build scripts
parent
aabf8ae5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scripts/arm64-osx-1015.cmake
+7
-0
7 additions, 0 deletions
scripts/arm64-osx-1015.cmake
scripts/make-macos-universal.sh
+25
-0
25 additions, 0 deletions
scripts/make-macos-universal.sh
scripts/x64-osx-1015.cmake
+7
-0
7 additions, 0 deletions
scripts/x64-osx-1015.cmake
with
39 additions
and
0 deletions
scripts/arm64-osx-1015.cmake
0 → 100644
+
7
−
0
View file @
8e66ed73
set
(
VCPKG_TARGET_ARCHITECTURE arm64
)
set
(
VCPKG_OSX_DEPLOYMENT_TARGET 10.15
)
set
(
VCPKG_CRT_LINKAGE dynamic
)
set
(
VCPKG_LIBRARY_LINKAGE static
)
set
(
VCPKG_CMAKE_SYSTEM_NAME Darwin
)
set
(
VCPKG_OSX_ARCHITECTURES arm64
)
This diff is collapsed.
Click to expand it.
scripts/make-macos-universal.sh
0 → 100755
+
25
−
0
View file @
8e66ed73
#!/usr/bin/env bash
# Makes a fused macOS Universal app bundle in the arm64 release preset dir
# Only works if in master branch or in source tarball
set
-e
rm
-rf
"build/ninja-x64_osx_vcpkg-release"
rm
-rf
"build/ninja-arm64_osx_vcpkg-release"
cmake
--preset
ninja-x64_osx_vcpkg-release
-DVCPKG_OVERLAY_TRIPLETS
=
scripts/
-DVCPKG_TARGET_TRIPLET
=
x64-osx-1015
-DCMAKE_OSX_ARCHITECTURES
=
x86_64
-DCMAKE_OSX_DEPLOYMENT_TARGET
=
10.15
"-DSRB2_SDL2_EXE_NAME=srb2"
cmake
--build
--preset
ninja-x64_osx_vcpkg-release
cmake
--preset
ninja-arm64_osx_vcpkg-release
-DVCPKG_OVERLAY_TRIPLETS
=
scripts/
-DVCPKG_TARGET_TRIPLET
=
arm64-osx-1015
-DCMAKE_OSX_ARCHITECTURES
=
arm64
-DCMAKE_OSX_DEPLOYMENT_TARGET
=
10.15
"-DSRB2_SDL2_EXE_NAME=srb2"
cmake
--build
--preset
ninja-arm64_osx_vcpkg-release
mkdir
-p
build/dist
rm
-rf
"build/dist/Sonic Robo Blast 2.app"
"build/dist/srb2.app"
cp
-r
build/ninja-arm64_osx_vcpkg-release/bin/srb2.app build/dist/
lipo
-create
\
-output
"build/dist/srb2.app/Contents/MacOS/srb2"
\
build/ninja-x64_osx_vcpkg-release/bin/srb2.app/Contents/MacOS/srb2
\
build/ninja-arm64_osx_vcpkg-release/bin/srb2.app/Contents/MacOS/srb2
mv
build/dist/srb2.app
"build/dist/Sonic Robo Blast 2.app"
This diff is collapsed.
Click to expand it.
scripts/x64-osx-1015.cmake
0 → 100644
+
7
−
0
View file @
8e66ed73
set
(
VCPKG_TARGET_ARCHITECTURE x64
)
set
(
VCPKG_OSX_DEPLOYMENT_TARGET 10.15
)
set
(
VCPKG_CRT_LINKAGE dynamic
)
set
(
VCPKG_LIBRARY_LINKAGE static
)
set
(
VCPKG_CMAKE_SYSTEM_NAME Darwin
)
set
(
VCPKG_OSX_ARCHITECTURES x86_64
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment