| OLD | NEW |
| 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 30 matching lines...) Expand all Loading... |
| 41 debugger \ | 41 debugger \ |
| 42 everything \ | 42 everything \ |
| 43 gm \ | 43 gm \ |
| 44 most \ | 44 most \ |
| 45 pathops_unittest \ | 45 pathops_unittest \ |
| 46 pdfviewer \ | 46 pdfviewer \ |
| 47 SampleApp \ | 47 SampleApp \ |
| 48 SkiaAndroidApp \ | 48 SkiaAndroidApp \ |
| 49 skia_lib \ | 49 skia_lib \ |
| 50 tests \ | 50 tests \ |
| 51 tools | 51 tools \ |
| 52 skpdiff |
| 52 | 53 |
| 53 # Default target. This must be listed before all other targets. | 54 # Default target. This must be listed before all other targets. |
| 54 .PHONY: default | 55 .PHONY: default |
| 55 default: most | 56 default: most |
| 56 | 57 |
| 57 # As noted in http://code.google.com/p/skia/issues/detail?id=330 , building | 58 # As noted in http://code.google.com/p/skia/issues/detail?id=330 , building |
| 58 # multiple targets in parallel was failing. The special .NOTPARALLEL target | 59 # multiple targets in parallel was failing. The special .NOTPARALLEL target |
| 59 # tells gnu make not to run targets within _this_ Makefile in parallel, but the | 60 # tells gnu make not to run targets within _this_ Makefile in parallel, but the |
| 60 # recursively invoked Makefile within out/ _is_ allowed to run in parallel | 61 # recursively invoked Makefile within out/ _is_ allowed to run in parallel |
| 61 # (so you can still get some speedup that way). | 62 # (so you can still get some speedup that way). |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 else ifneq (,$(findstring make, $(GYP_GENERATORS))) | 119 else ifneq (,$(findstring make, $(GYP_GENERATORS))) |
| 119 $(MAKE) -C $(SKIA_OUT) $@ BUILDTYPE=$(BUILDTYPE) | 120 $(MAKE) -C $(SKIA_OUT) $@ BUILDTYPE=$(BUILDTYPE) |
| 120 else ifneq (,$(findstring Darwin, $(uname))) | 121 else ifneq (,$(findstring Darwin, $(uname))) |
| 121 rm -f out/$(BUILDTYPE) || if test -d out/$(BUILDTYPE); then echo "run 'm
ake clean' or otherwise delete out/$(BUILDTYPE)"; exit 1; fi | 122 rm -f out/$(BUILDTYPE) || if test -d out/$(BUILDTYPE); then echo "run 'm
ake clean' or otherwise delete out/$(BUILDTYPE)"; exit 1; fi |
| 122 xcodebuild -project out/gyp/$@.xcodeproj -configuration $(BUILDTYPE) | 123 xcodebuild -project out/gyp/$@.xcodeproj -configuration $(BUILDTYPE) |
| 123 ln -s $(CWD)/xcodebuild/$(BUILDTYPE) out/$(BUILDTYPE) | 124 ln -s $(CWD)/xcodebuild/$(BUILDTYPE) out/$(BUILDTYPE) |
| 124 else | 125 else |
| 125 echo "unknown platform $(uname)" | 126 echo "unknown platform $(uname)" |
| 126 exit 1 | 127 exit 1 |
| 127 endif | 128 endif |
| OLD | NEW |