OLD | NEW |
1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 # | 4 # |
5 # Makefile | 5 # Makefile |
6 # | 6 # |
7 # usage: 'make [package]' | 7 # usage: 'make [package]' |
8 # | 8 # |
9 # This makefile can by used to perform common actions such as building | 9 # This makefile can by used to perform common actions such as building |
10 # all ports, building a give port, running a webserver to test the ports. | 10 # all ports, building a give port, running a webserver to test the ports. |
11 # Each port has a dependency on its own sentinel file, which can be found | 11 # Each port has a dependency on its own sentinel file, which can be found |
12 # at out/sentinels/* | 12 # at out/sentinels/* |
13 | 13 |
14 SDK_LIBS = zlib tiff jpeg8d libpng freetype lua5.2 libogg | 14 SDK_LIBS = zlib tiff jpeg8d libpng freetype lua5.2 libogg |
15 SDK_LIBS += libtheora libvorbis libwebp libxml2 tinyxml openal-soft freealut | 15 SDK_LIBS += libtheora libvorbis libwebp libxml2 tinyxml openal-soft freealut |
16 | 16 |
17 COVERAGE = coverage | 17 COVERAGE = python third_party/coverage |
18 COVERAGE_ARGS = --fail-under=56 | 18 COVERAGE_ARGS = --fail-under=56 |
19 COVERAGE_VER := $(shell $(COVERAGE) --version 2>/dev/null) | 19 COVERAGE_VER := $(shell $(COVERAGE) --version 2>/dev/null) |
20 | 20 |
21 ifndef COVERAGE_VER | |
22 # Debian/Ubuntu ship the coverage binary as 'python-coverage' so check | |
23 # for that if coverage is not found. | |
24 # The version in ubunaru/precise 3.4 does not support the --fail-under | |
25 # argument. | |
26 COVERAGE_VER := $(shell python-coverage --version 2>/dev/null) | |
27 ifdef COVERAGE_VER | |
28 COVERAGE = python-coverage | |
29 COVERAGE_ARGS = | |
30 endif | |
31 endif | |
32 | |
33 ifeq ($(V),1) | 21 ifeq ($(V),1) |
34 VERBOSE ?= 1 | 22 VERBOSE ?= 1 |
35 endif | 23 endif |
36 | 24 |
37 ifeq ($(F),1) | 25 ifeq ($(F),1) |
38 FORCE ?= 1 | 26 FORCE ?= 1 |
39 endif | 27 endif |
40 | 28 |
41 ifeq ($(V),2) | 29 ifeq ($(V),2) |
42 VERBOSE ?= 1 | 30 VERBOSE ?= 1 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 build_tools/build_tools_test.py | 74 build_tools/build_tools_test.py |
87 $(COVERAGE) run --include=lib/naclports/* lib/naclports_test.py | 75 $(COVERAGE) run --include=lib/naclports/* lib/naclports_test.py |
88 $(COVERAGE) report $(COVERAGE_ARGS) | 76 $(COVERAGE) report $(COVERAGE_ARGS) |
89 @rm -rf out/coverage_html | 77 @rm -rf out/coverage_html |
90 $(COVERAGE) html | 78 $(COVERAGE) html |
91 | 79 |
92 %: | 80 %: |
93 bin/naclports install $* $(BUILD_FLAGS) | 81 bin/naclports install $* $(BUILD_FLAGS) |
94 | 82 |
95 .PHONY: all run clean sdklibs sdklibs_list reallyclean check test | 83 .PHONY: all run clean sdklibs sdklibs_list reallyclean check test |
OLD | NEW |