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 30 matching lines...) Expand all Loading... |
41 # world. | 41 # world. |
42 VALID_TARGETS := \ | 42 VALID_TARGETS := \ |
43 nanobench \ | 43 nanobench \ |
44 debugger \ | 44 debugger \ |
45 dm \ | 45 dm \ |
46 everything \ | 46 everything \ |
47 lua_app \ | 47 lua_app \ |
48 lua_pictures \ | 48 lua_pictures \ |
49 most \ | 49 most \ |
50 pathops_unittest \ | 50 pathops_unittest \ |
51 pdfviewer \ | |
52 SampleApp \ | 51 SampleApp \ |
53 SampleApp_APK \ | 52 SampleApp_APK \ |
54 skhello \ | 53 skhello \ |
55 skia_lib \ | 54 skia_lib \ |
56 skpskgr_test \ | 55 skpskgr_test \ |
57 tools \ | 56 tools \ |
58 skpdiff | 57 skpdiff |
59 | 58 |
60 # Default target. This must be listed before all other targets. | 59 # Default target. This must be listed before all other targets. |
61 .PHONY: default | 60 .PHONY: default |
(...skipping 26 matching lines...) Expand all Loading... |
88 # Run gyp no matter what. | 87 # Run gyp no matter what. |
89 .PHONY: gyp | 88 .PHONY: gyp |
90 gyp: | 89 gyp: |
91 $(CWD)/gyp_skia --no-parallel -G config=$(BUILDTYPE) | 90 $(CWD)/gyp_skia --no-parallel -G config=$(BUILDTYPE) |
92 | 91 |
93 # For all specific targets: run gyp if necessary, and then pass control to | 92 # For all specific targets: run gyp if necessary, and then pass control to |
94 # the gyp-generated buildfiles. | 93 # the gyp-generated buildfiles. |
95 .PHONY: $(VALID_TARGETS) | 94 .PHONY: $(VALID_TARGETS) |
96 $(VALID_TARGETS):: gyp | 95 $(VALID_TARGETS):: gyp |
97 ninja -C $(SKIA_OUT)/$(BUILDTYPE) $@ | 96 ninja -C $(SKIA_OUT)/$(BUILDTYPE) $@ |
OLD | NEW |