Skip to content

Commit

Permalink
new simplified build for apple osx
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Sep 24, 2024
1 parent a3feadd commit 37255ae
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,11 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: hendrikmuhs/[email protected]
- run: |
make -f build/apple-ios.mk ios-arm64
# make clean
# make -f build/apple-ios.mk ios-sim
# make -f build/apple-ios.mk ios-fat
# make -f build/apple-ios.mk ios-armv7
# make clean
make -f build/apple-osx.mk CCACHE=1
make clean
make -f build/apple-ios.mk ios-arm64 CCACHE=1
go-build-check:
name: 🐹 go build & checks
Expand Down
24 changes: 24 additions & 0 deletions build/apple-osx.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Initialize build defaults
include build/init.mk

ifdef CCACHE
milagro_cmake_flags += -DCMAKE_C_COMPILER_LAUNCHER=ccache
pfxcc += "ccache "
endif
ifdef DEBUG
cflags += ${cflags_debug}
else
cflags += ${cflags_protection}
endif

all: ${BUILD_DEPS} zenroom.command zencode-exec.command

zenroom.command: ${ZEN_SOURCES} src/cli-zenroom.o
$(info === Building the zenroom CLI)
${pfxcc}${cc} ${cflags} ${ZEN_SOURCES} cli-zenroom.c -o $@ ${ldflags} ${ldadd}

zencode-exec.command: ${ZEN_SOURCES} src/zencode-exec.o
$(info === Building the zencode-exec utility)
${pfxcc}${cc} ${cflags} ${ZEN_SOURCES} zencode-exec.o -o $@ ${ldflags} ${ldadd}

include build/deps.mk

0 comments on commit 37255ae

Please sign in to comment.