| 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 "ninja" to build the code. | 2 # Uses "ninja" to build the code. |
| 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 dm | 10 # make dm |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 .PHONY: clean | 79 .PHONY: clean |
| 80 clean: | 80 clean: |
| 81 rm -rf out xcodebuild | 81 rm -rf out xcodebuild |
| 82 ifneq (out, $(SKIA_OUT)) | 82 ifneq (out, $(SKIA_OUT)) |
| 83 rm -rf $(SKIA_OUT) | 83 rm -rf $(SKIA_OUT) |
| 84 endif | 84 endif |
| 85 | 85 |
| 86 # Run gyp no matter what. | 86 # Run gyp no matter what. |
| 87 .PHONY: gyp | 87 .PHONY: gyp |
| 88 gyp: | 88 gyp: |
| 89 » $(CWD)/gyp_skia | 89 » $(CWD)/gyp_skia --no-parallel -G config=$(BUILDTYPE) |
| 90 | 90 |
| 91 # For all specific targets: run gyp if necessary, and then pass control to | 91 # For all specific targets: run gyp if necessary, and then pass control to |
| 92 # the gyp-generated buildfiles. | 92 # the gyp-generated buildfiles. |
| 93 .PHONY: $(VALID_TARGETS) | 93 .PHONY: $(VALID_TARGETS) |
| 94 $(VALID_TARGETS):: gyp | 94 $(VALID_TARGETS):: gyp |
| 95 ninja -C $(SKIA_OUT)/$(BUILDTYPE) $@ | 95 ninja -C $(SKIA_OUT)/$(BUILDTYPE) $@ |
| OLD | NEW |