forked from rime/librime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.xcode
More file actions
29 lines (21 loc) · 915 Bytes
/
Copy pathMakefile.xcode
File metadata and controls
29 lines (21 loc) · 915 Bytes
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
RIME_ROOT = $(CURDIR)
RIME_COMPILER_OPTIONS = CC=clang CXX=clang++ CXXFLAGS="-stdlib=libc++" LDFLAGS="-stdlib=libc++"
.PHONY: all release debug clean thirdparty
all: release
release:
mkdir -p xbuild
cd xbuild; cmake -G Xcode .. -DBUILD_STATIC=ON -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON
cd xbuild; xcodebuild -project rime.xcodeproj -configuration Release build | grep -v setenv | tee build.log
debug:
mkdir -p xdebug
cd xdebug; cmake -G Xcode .. -DBUILD_STATIC=ON -DBUILD_TEST=ON -DBUILD_SEPARATE_LIBS=ON
cd xdebug; xcodebuild -project rime.xcodeproj -configuration Debug build | grep -v setenv | tee build.log
clean:
rm -rf xbuild > /dev/null 2>&1 || true
rm -rf xdebug > /dev/null 2>&1 || true
rm build.log > /dev/null 2>&1 || true
thirdparty:
$(RIME_COMPILER_OPTIONS) make -f Makefile.thirdparty
make -f Makefile.thirdparty clean-src
thirdparty/%:
make -f Makefile.thirdparty $(@:thirdparty/%=%)