forked from getsentry/crashpad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (30 loc) · 880 Bytes
/
Makefile
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
SHELL := /bin/bash
PATH := $(PWD)/../depot_tools:$(PATH)
all:
echo 'Nothing to do' && exit 1
build-with-gn:
gn gen out/Default
ninja -C out/Default
.PHONY: build-with-gn
build-with-cmake:
mkdir -p cmakebuild
cd cmakebuild; cmake ..
cmake --build cmakebuild --parallel
.PHONY: build-with-cmake
update-with-gclient:
gclient sync
.PHONY: update-with-gclient
example: build-with-gn
g++ -g \
-o example example.cpp \
-I. -I./third_party/mini_chromium/mini_chromium \
-std=c++14 \
-L./out/Default/obj/client -lclient \
-L./out/Default/obj/util -lutil \
-L./out/Default/obj/third_party/mini_chromium/mini_chromium/base -lbase \
-framework Foundation -framework Security -framework CoreText \
-framework CoreGraphics -framework IOKit -lbsm
.PHONY: example
gen-sentry-patch:
git format-patch --stdout master...HEAD > getsentry.patch
.PHONY: get-sentry-patch