LEFT | RIGHT |
1 # Makefile that wraps the Gyp and build steps for Unix and Mac (but not Windows) | 1 # Makefile that wraps the Gyp and build steps for Unix and Mac (but not Windows) |
2 # Uses "make" to build on Unix, and "xcodebuild" to build on Mac. | 2 # Uses "make" to build on Unix, and "xcodebuild" to build on Mac. |
3 # | 3 # |
4 # Some usage examples (tested on both Linux and Mac): | 4 # Some usage examples (tested on both Linux and Mac): |
5 # | 5 # |
6 # # Clean everything | 6 # # Clean everything |
7 # make clean | 7 # make clean |
8 # | 8 # |
9 # # Build and run tests (in Debug mode) | 9 # # Build and run tests (in Debug mode) |
10 # make tests | 10 # make tests |
(...skipping 15 matching lines...) Expand all Loading... |
26 # gyp-generated projects yourself. | 26 # gyp-generated projects yourself. |
27 # | 27 # |
28 # See https://sites.google.com/site/skiadocs/ for complete documentation. | 28 # See https://sites.google.com/site/skiadocs/ for complete documentation. |
29 | 29 |
30 BUILDTYPE ?= Debug | 30 BUILDTYPE ?= Debug |
31 CWD := $(shell pwd) | 31 CWD := $(shell pwd) |
32 | 32 |
33 # Soon we should be able to get rid of VALID_TARGETS, and just pass control | 33 # Soon we should be able to get rid of VALID_TARGETS, and just pass control |
34 # to the gyp-generated Makefile for *any* target name. | 34 # to the gyp-generated Makefile for *any* target name. |
35 # But that will be a bit complicated, so let's keep it for a future CL. | 35 # But that will be a bit complicated, so let's keep it for a future CL. |
| 36 # Tracked as https://code.google.com/p/skia/issues/detail?id=947 ('eliminate |
| 37 # need for VALID_TARGETS in toplevel Makefile') |
36 VALID_TARGETS := \ | 38 VALID_TARGETS := \ |
37 bench \ | 39 bench \ |
38 debugger \ | 40 debugger \ |
39 everything \ | 41 everything \ |
40 gm \ | 42 gm \ |
41 most \ | 43 most \ |
42 SampleApp \ | 44 SampleApp \ |
43 SkiaAndroidApp \ | 45 SkiaAndroidApp \ |
44 skia_base_libs \ | 46 skia_base_libs \ |
45 tests \ | 47 tests \ |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 else ifneq (,$(findstring Linux, $(uname))) | 110 else ifneq (,$(findstring Linux, $(uname))) |
109 $(MAKE) -C out $@ BUILDTYPE=$(BUILDTYPE) | 111 $(MAKE) -C out $@ BUILDTYPE=$(BUILDTYPE) |
110 else ifneq (,$(findstring Darwin, $(uname))) | 112 else ifneq (,$(findstring Darwin, $(uname))) |
111 rm -f out/$(BUILDTYPE) || if test -d out/$(BUILDTYPE); then echo "run 'm
ake clean' or otherwise delete out/$(BUILDTYPE)"; exit 1; fi | 113 rm -f out/$(BUILDTYPE) || if test -d out/$(BUILDTYPE); then echo "run 'm
ake clean' or otherwise delete out/$(BUILDTYPE)"; exit 1; fi |
112 xcodebuild -project out/gyp/$@.xcodeproj -configuration $(BUILDTYPE) | 114 xcodebuild -project out/gyp/$@.xcodeproj -configuration $(BUILDTYPE) |
113 ln -s $(CWD)/xcodebuild/$(BUILDTYPE) out/$(BUILDTYPE) | 115 ln -s $(CWD)/xcodebuild/$(BUILDTYPE) out/$(BUILDTYPE) |
114 else | 116 else |
115 echo "unknown platform $(uname)" | 117 echo "unknown platform $(uname)" |
116 exit 1 | 118 exit 1 |
117 endif | 119 endif |
LEFT | RIGHT |