-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile.osx.mak
66 lines (53 loc) · 2.54 KB
/
Makefile.osx.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# -*- mode:makefile-gmake; -*-
##########################################################################
##########################################################################
.PHONY:init_xcode
init_xcode: _FOLDER=$(BUILD_FOLDER)/$(FOLDER_PREFIX)Xcode
init_xcode:
rm -Rf "$(_FOLDER)"
mkdir -p "$(_FOLDER)"
cd "$(_FOLDER)" && cmake -G Xcode $(CMAKE_DEFINES) ../..
# Quicker turnaround when iterating on CMake stuff. CMake is supposed
# to do this for you automatically, something that works pretty well
# with Ninja and Visual Studio, but with Xcode it seems very
# unreliable.
.PHONY:reinit_xcode
reinit_xcode: _FOLDER=$(BUILD_FOLDER)/$(FOLDER_PREFIX)Xcode
reinit_xcode:
cd "$(_FOLDER)" && cmake -G Xcode $(CMAKE_DEFINES) ../..
##########################################################################
##########################################################################
# for me, on my Mac... but it might work for you...
.PHONY:run_tests
run_tests: BUILD?=Debug
run_tests: _OUTPUT=b2_tests_output/
run_tests: MELD?=/Applications/Meld.app/Contents/MacOS/Meld
run_tests:
cd build/Xcode && rm -Rf $(_OUTPUT) && ctest -C $(BUILD) -j$(NPROC) -LE 'slow|kevin_edwards' --output-on-failure || $(MELD) $(_OUTPUT)/got/ $(_OUTPUT)/wanted/
.PHONY:run_all_tests
run_all_tests: BUILD?=RelWithDebInfo
run_all_tests:
cd build/Xcode && ctest -C $(BUILD) -j$(NPROC) --output-on-failure
##########################################################################
##########################################################################
.PHONY:github_ci_macos_homebrew
github_ci_macos_homebrew:
brew update
brew install ninja
.PHONY:github_ci_macos_homebrew_ffmpeg
github_ci_macos_homebrew_ffmpeg:
brew install ffmpeg@4
.PHONY:_github_ci_macos_release
_github_ci_macos_release:
$(PYTHON3) "./etc/release/release.py" --verbose $(TARGET_ARGS) --timestamp=$(shell $(PYTHON3) "./etc/release/release2.py" print-timestamp) --gh-release $(shell $(PYTHON3) "./etc/release/release2.py" print-suffix)
.PHONY:github_ci_macos_x64
github_ci_macos_x64: export PKG_CONFIG_PATH:=$(PKG_CONFIG_PATH):/usr/local/opt/ffmpeg@4/lib/pkgconfig
github_ci_macos_x64:
$(MAKE) _github_ci_macos_release TARGET_ARGS=--macos-deployment-target=11.0
.PHONY:github_ci_older_macos_x64
github_ci_older_macos_x64:
$(MAKE) _github_ci_macos_release TARGET_ARGS=--macos-deployment-target=10.9
.PHONY:github_ci_macos_arm
github_ci_macos_arm: export PKG_CONFIG_PATH:=$(PKG_CONFIG_PATH):/opt/homebrew/opt/ffmpeg@4/lib/pkgconfig
github_ci_macos_arm:
$(MAKE) _github_ci_macos_release TARGET_ARGS=--macos-deployment-target=13.0