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 tests | 10 # make dm |
11 # out/Debug/tests | 11 # out/Debug/dm |
12 # | 12 # |
13 # # Build and run tests (in Release mode) | 13 # # Build and run tests (in Release mode) |
14 # make tests BUILDTYPE=Release | 14 # make dm BUILDTYPE=Release |
15 # out/Release/tests | 15 # out/Release/dm |
16 # | 16 # |
17 # # Build bench and SampleApp (both in Release mode), and then run them | 17 # # Build bench and SampleApp (both in Release mode), and then run them |
18 # make SampleApp bench BUILDTYPE=Release | 18 # make SampleApp bench BUILDTYPE=Release |
19 # out/Release/bench -repeat 2 | 19 # out/Release/bench -repeat 2 |
20 # out/Release/SampleApp | 20 # out/Release/SampleApp |
21 # | 21 # |
22 # # Build all targets (in Debug mode) | 22 # # Build all targets (in Debug mode) |
23 # make | 23 # make |
24 # | 24 # |
25 # If you want more fine-grained control, you can run gyp and then build the | 25 # If you want more fine-grained control, you can run gyp and then build the |
(...skipping 20 matching lines...) Expand all Loading... |
46 everything \ | 46 everything \ |
47 gm \ | 47 gm \ |
48 most \ | 48 most \ |
49 pathops_unittest \ | 49 pathops_unittest \ |
50 pdfviewer \ | 50 pdfviewer \ |
51 SampleApp \ | 51 SampleApp \ |
52 SampleApp_APK \ | 52 SampleApp_APK \ |
53 skhello \ | 53 skhello \ |
54 skia_lib \ | 54 skia_lib \ |
55 skpskgr_test \ | 55 skpskgr_test \ |
56 tests \ | |
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 |
62 default: most | 61 default: most |
63 | 62 |
64 # As noted in http://code.google.com/p/skia/issues/detail?id=330 , building | 63 # As noted in http://code.google.com/p/skia/issues/detail?id=330 , building |
65 # multiple targets in parallel was failing. The special .NOTPARALLEL target | 64 # multiple targets in parallel was failing. The special .NOTPARALLEL target |
66 # tells gnu make not to run targets within this Makefile in parallel. | 65 # tells gnu make not to run targets within this Makefile in parallel. |
(...skipping 21 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 | 90 $(CWD)/gyp_skia |
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 |