reed@android.com | 4c7d3d6 | 2009-01-21 03:15:13 +0000 | [diff] [blame] | 1 | # Simple makefile for skia library and test apps |
reed@android.com | 4cb8bd1 | 2009-01-16 16:15:37 +0000 | [diff] [blame] | 2 | |
reed@android.com | 9db6087 | 2009-01-21 15:07:03 +0000 | [diff] [blame] | 3 | # setup our defaults |
reed@android.com | 4c7d3d6 | 2009-01-21 03:15:13 +0000 | [diff] [blame] | 4 | CC := gcc |
reed@android.com | cf4ac25 | 2010-05-12 17:25:30 +0000 | [diff] [blame] | 5 | GPP := g++ |
reed@google.com | 873cb1e | 2010-12-23 15:00:45 +0000 | [diff] [blame] | 6 | C_INCLUDES := -Iinclude/config -Iinclude/core -Iinclude/effects -Iinclude/images -Iinclude/gpu -Iinclude/utils -Igpu/include |
| 7 | |
reed@android.com | 179d616 | 2010-12-20 18:32:39 +0000 | [diff] [blame] | 8 | CFLAGS := -Wall -O2 |
senorblanco@chromium.org | 4e75355 | 2009-11-16 21:09:00 +0000 | [diff] [blame] | 9 | CFLAGS_SSE2 = $(CFLAGS) -msse2 |
reed@google.com | 0770044 | 2010-12-20 19:46:07 +0000 | [diff] [blame] | 10 | LINKER_OPTS := -lpthread -lz |
reed@android.com | 4c7d3d6 | 2009-01-21 03:15:13 +0000 | [diff] [blame] | 11 | DEFINES := -DSK_CAN_USE_FLOAT |
reed@android.com | 4cb8bd1 | 2009-01-16 16:15:37 +0000 | [diff] [blame] | 12 | HIDE = @ |
| 13 | |
reed@android.com | 9db6087 | 2009-01-21 15:07:03 +0000 | [diff] [blame] | 14 | ifeq ($(SKIA_SCALAR),fixed) |
reed@android.com | 4c7d3d6 | 2009-01-21 03:15:13 +0000 | [diff] [blame] | 15 | DEFINES += -DSK_SCALAR_IS_FIXED |
| 16 | else |
| 17 | DEFINES += -DSK_SCALAR_IS_FLOAT |
| 18 | endif |
| 19 | |
| 20 | ifeq ($(SKIA_DEBUG),true) |
reed@google.com | eeeb5a0 | 2010-12-23 15:12:59 +0000 | [diff] [blame] | 21 | DEFINES += -DSK_DEBUG -DSK_SUPPORT_UNIT -DGR_DEBUG=1 |
reed@android.com | 4c7d3d6 | 2009-01-21 03:15:13 +0000 | [diff] [blame] | 22 | else |
reed@google.com | eeeb5a0 | 2010-12-23 15:12:59 +0000 | [diff] [blame] | 23 | DEFINES += -DSK_RELEASE -DGR_DEBUG=0 |
reed@android.com | 4c7d3d6 | 2009-01-21 03:15:13 +0000 | [diff] [blame] | 24 | endif |
reed@android.com | 4cb8bd1 | 2009-01-16 16:15:37 +0000 | [diff] [blame] | 25 | |
reed@android.com | f549369 | 2009-07-22 19:21:01 +0000 | [diff] [blame] | 26 | DEFINES += -DSK_SUPPORT_LCDTEXT |
| 27 | |
reed@google.com | 0770044 | 2010-12-20 19:46:07 +0000 | [diff] [blame] | 28 | ifeq ($(SKIA_PDF_SUPPORT),true) |
| 29 | DEFINES += -DSK_SUPPORT_PDF |
reed@google.com | d642329 | 2010-12-20 20:53:13 +0000 | [diff] [blame] | 30 | DEFINES += -DSK_ZLIB_INCLUDE="<zlib.h>" |
reed@google.com | 0770044 | 2010-12-20 19:46:07 +0000 | [diff] [blame] | 31 | endif |
| 32 | |
reed@android.com | 4cb8bd1 | 2009-01-16 16:15:37 +0000 | [diff] [blame] | 33 | # start with the core (required) |
| 34 | include src/core/core_files.mk |
| 35 | SRC_LIST := $(addprefix src/core/, $(SOURCE)) |
| 36 | |
reed@android.com | ed7bd9b | 2009-07-30 02:25:54 +0000 | [diff] [blame] | 37 | # add the opts (optimizations) |
| 38 | include src/opts/opts_files.mk |
| 39 | SRC_LIST += $(addprefix src/opts/, $(SOURCE)) |
| 40 | |
reed@android.com | 4cb8bd1 | 2009-01-16 16:15:37 +0000 | [diff] [blame] | 41 | # we usually need ports |
| 42 | include src/ports/ports_files.mk |
| 43 | SRC_LIST += $(addprefix src/ports/, $(SOURCE)) |
| 44 | |
| 45 | # do we want effects? |
| 46 | include src/effects/effects_files.mk |
| 47 | SRC_LIST += $(addprefix src/effects/, $(SOURCE)) |
| 48 | |
reed@android.com | 4c7d3d6 | 2009-01-21 03:15:13 +0000 | [diff] [blame] | 49 | # core image files |
| 50 | include src/images/images_files.mk |
| 51 | SRC_LIST += $(addprefix src/images/, $(SOURCE)) |
| 52 | |
reed@android.com | 9781ca5 | 2009-04-14 14:28:22 +0000 | [diff] [blame] | 53 | # core util files |
| 54 | include src/utils/utils_files.mk |
| 55 | SRC_LIST += $(addprefix src/utils/, $(SOURCE)) |
| 56 | |
reed@google.com | 873cb1e | 2010-12-23 15:00:45 +0000 | [diff] [blame] | 57 | # GPU files |
| 58 | include gpu/src/gr_files.mk |
| 59 | SRC_LIST += $(addprefix gpu/src/, $(SOURCE)) |
| 60 | |
| 61 | # GPU support files |
| 62 | include src/gpu/skgr_files.mk |
| 63 | SRC_LIST += $(addprefix src/gpu/, $(SOURCE)) |
| 64 | |
vandebo@chromium.org | 8459d4e | 2010-09-24 22:25:30 +0000 | [diff] [blame] | 65 | # pdf backend files |
| 66 | ifeq ($(SKIA_PDF_SUPPORT),true) |
| 67 | C_INCLUDES += -Iinclude/pdf |
| 68 | include src/pdf/pdf_files.mk |
| 69 | SRC_LIST += $(addprefix src/pdf/, $(SOURCE)) |
| 70 | endif |
| 71 | |
reed@android.com | 9781ca5 | 2009-04-14 14:28:22 +0000 | [diff] [blame] | 72 | # extra files we want to build to prevent bit-rot, but not link |
| 73 | JUST_COMPILE_LIST := src/ports/SkFontHost_tables.cpp |
| 74 | |
reed@android.com | 4c7d3d6 | 2009-01-21 03:15:13 +0000 | [diff] [blame] | 75 | # conditional files based on our platform |
reed@android.com | 9db6087 | 2009-01-21 15:07:03 +0000 | [diff] [blame] | 76 | ifeq ($(SKIA_BUILD_FOR),mac) |
reed@android.com | cf4ac25 | 2010-05-12 17:25:30 +0000 | [diff] [blame] | 77 | # make it work with 10.4 for our font port |
reed@android.com | 179d616 | 2010-12-20 18:32:39 +0000 | [diff] [blame] | 78 | # GPP := g++-4.0 |
| 79 | # SDK := /Developer/SDKs/MacOSX10.4u.sdk |
| 80 | # SDK_OPTS := -isysroot $(SDK) -mmacosx-version-min=10.4 |
| 81 | # CC := gcc-4.0 $(SDK_OPTS) |
reed@android.com | cf4ac25 | 2010-05-12 17:25:30 +0000 | [diff] [blame] | 82 | |
reed@google.com | 7876114 | 2010-12-23 16:34:58 +0000 | [diff] [blame] | 83 | C_INCLUDES += -I/opt/local/include |
reed@google.com | 37df17d | 2010-12-23 20:20:51 +0000 | [diff] [blame] | 84 | LINKER_OPTS += -L/opt/local/lib -framework Carbon -lpng12 -framework OpenGL -framework AGL |
reed@google.com | 7876114 | 2010-12-23 16:34:58 +0000 | [diff] [blame] | 85 | DEFINES += -DSK_BUILD_FOR_MAC -DSK_ENABLE_LIBPNG |
reed@android.com | 4c7d3d6 | 2009-01-21 03:15:13 +0000 | [diff] [blame] | 86 | |
| 87 | C_INCLUDES += -Iinclude/utils/mac |
reed@google.com | 7876114 | 2010-12-23 16:34:58 +0000 | [diff] [blame] | 88 | # SRC_LIST += src/ports/SkImageDecoder_CG.cpp |
reed@android.com | 38669c1 | 2011-01-03 13:48:50 +0000 | [diff] [blame^] | 89 | SRC_LIST += src/utils/mac/SkCreateCGImageRef.cpp |
reed@google.com | 873cb1e | 2010-12-23 15:00:45 +0000 | [diff] [blame] | 90 | SRC_LIST += src/utils/mac/SkEGLContext_mac.cpp |
reed@android.com | 179d616 | 2010-12-20 18:32:39 +0000 | [diff] [blame] | 91 | SRC_LIST += src/ports/SkFontHost_mac_coretext.cpp |
reed@google.com | 7876114 | 2010-12-23 16:34:58 +0000 | [diff] [blame] | 92 | |
| 93 | # these are our registry-based factories |
| 94 | SRC_LIST += src/images/SkImageDecoder_Factory.cpp |
| 95 | SRC_LIST += src/images/SkImageEncoder_Factory.cpp |
| 96 | SRC_LIST += src/images/SkImageDecoder_libpng.cpp |
| 97 | # support files |
| 98 | SRC_LIST += src/images/SkScaledBitmapSampler.cpp |
reed@android.com | 4c7d3d6 | 2009-01-21 03:15:13 +0000 | [diff] [blame] | 99 | else |
reed@google.com | 37df17d | 2010-12-23 20:20:51 +0000 | [diff] [blame] | 100 | LINKER_OPTS += -lpng -lfreetype -lGL |
| 101 | DEFINES += -DSK_BUILD_FOR_UNIX -DSK_ENABLE_LIBPNG -DGR_LINUX_BUILD=1 |
reed@android.com | 4c7d3d6 | 2009-01-21 03:15:13 +0000 | [diff] [blame] | 102 | |
reed@android.com | f2afb67 | 2009-09-28 16:12:48 +0000 | [diff] [blame] | 103 | # needed for freetype support |
| 104 | C_INCLUDES += -I/usr/include/freetype2 |
| 105 | SRC_LIST += src/ports/SkFontHost_linux.cpp |
| 106 | SRC_LIST += src/ports/SkFontHost_gamma_none.cpp |
| 107 | SRC_LIST += src/ports/SkFontHost_FreeType.cpp |
| 108 | SRC_LIST += src/ports/SkFontHost_FreeType_Subpixel.cpp |
| 109 | SRC_LIST += src/utils/SkOSFile.cpp |
reed@google.com | 37df17d | 2010-12-23 20:20:51 +0000 | [diff] [blame] | 110 | SRC_LIST += src/utils/SkEGLContext_none.cpp |
reed@android.com | 7b830a1 | 2009-01-22 13:41:08 +0000 | [diff] [blame] | 111 | # these are our registry-based factories |
| 112 | SRC_LIST += src/images/SkImageDecoder_Factory.cpp |
| 113 | SRC_LIST += src/images/SkImageEncoder_Factory.cpp |
reed@android.com | fd9714e | 2010-04-15 14:28:24 +0000 | [diff] [blame] | 114 | SRC_LIST += src/images/SkImageDecoder_libpng.cpp |
reed@android.com | 7b830a1 | 2009-01-22 13:41:08 +0000 | [diff] [blame] | 115 | # support files |
| 116 | SRC_LIST += src/images/SkScaledBitmapSampler.cpp |
reed@android.com | 4c7d3d6 | 2009-01-21 03:15:13 +0000 | [diff] [blame] | 117 | endif |
| 118 | |
senorblanco@chromium.org | 4e75355 | 2009-11-16 21:09:00 +0000 | [diff] [blame] | 119 | # For these files, and these files only, compile with -msse2. |
| 120 | SSE2_OBJS := out/src/opts/SkBlitRow_opts_SSE2.o \ |
senorblanco@chromium.org | 29e5054 | 2010-12-16 19:07:45 +0000 | [diff] [blame] | 121 | out/src/opts/SkBitmapProcState_opts_SSE2.o \ |
senorblanco@chromium.org | 4e75355 | 2009-11-16 21:09:00 +0000 | [diff] [blame] | 122 | out/src/opts/SkUtils_opts_SSE2.o |
| 123 | $(SSE2_OBJS) : CFLAGS := $(CFLAGS_SSE2) |
| 124 | |
reed@android.com | 4cb8bd1 | 2009-01-16 16:15:37 +0000 | [diff] [blame] | 125 | out/%.o : %.cpp |
| 126 | @mkdir -p $(dir $@) |
| 127 | $(HIDE)$(CC) $(C_INCLUDES) $(CFLAGS) $(DEFINES) -c $< -o $@ |
| 128 | @echo "compiling $@" |
| 129 | |
senorblanco@chromium.org | 4aa910e | 2009-10-30 18:50:23 +0000 | [diff] [blame] | 130 | %.s : %.cpp |
| 131 | @mkdir -p $(dir $@) |
| 132 | $(CC) $(C_INCLUDES) $(CFLAGS) $(DEFINES) -S -c $< -o $@ |
| 133 | |
reed@android.com | 4cb8bd1 | 2009-01-16 16:15:37 +0000 | [diff] [blame] | 134 | # now build out objects |
| 135 | OBJ_LIST := $(SRC_LIST:.cpp=.o) |
| 136 | OBJ_LIST := $(addprefix out/, $(OBJ_LIST)) |
| 137 | |
reed@android.com | 9781ca5 | 2009-04-14 14:28:22 +0000 | [diff] [blame] | 138 | # we want to compile these, but we don't actually link them |
| 139 | JUST_COMPILE_OBJS := $(JUST_COMPILE_LIST:.cpp=.o) |
| 140 | JUST_COMPILE_OBJS := $(addprefix out/, $(JUST_COMPILE_OBJS)) |
| 141 | |
| 142 | out/libskia.a: Makefile $(OBJ_LIST) $(JUST_COMPILE_OBJS) |
reed@android.com | 4cb8bd1 | 2009-01-16 16:15:37 +0000 | [diff] [blame] | 143 | $(HIDE)$(AR) ru $@ $(OBJ_LIST) |
| 144 | $(HIDE)ranlib $@ |
| 145 | |
reed@android.com | a396a16 | 2009-02-28 18:26:14 +0000 | [diff] [blame] | 146 | ############################################################################## |
| 147 | |
reed@android.com | 4d85059 | 2009-08-12 20:30:58 +0000 | [diff] [blame] | 148 | BENCH_SRCS := RectBench.cpp SkBenchmark.cpp benchmain.cpp BitmapBench.cpp \ |
reed@android.com | 7911e27 | 2010-04-15 16:34:54 +0000 | [diff] [blame] | 149 | RepeatTileBench.cpp DecodeBench.cpp FPSBench.cpp |
reed@android.com | 179d616 | 2010-12-20 18:32:39 +0000 | [diff] [blame] | 150 | |
reed@android.com | 4cb8bd1 | 2009-01-16 16:15:37 +0000 | [diff] [blame] | 151 | BENCH_SRCS := $(addprefix bench/, $(BENCH_SRCS)) |
reed@android.com | 1b4c815 | 2009-01-23 21:51:56 +0000 | [diff] [blame] | 152 | |
reed@android.com | fb21016 | 2009-01-23 21:24:39 +0000 | [diff] [blame] | 153 | # add any optional codecs for this app |
reed@android.com | 3a859a0 | 2009-01-28 00:56:29 +0000 | [diff] [blame] | 154 | ifeq ($(SKIA_BUILD_FOR),mac) |
reed@android.com | d6638e6 | 2009-04-08 05:03:52 +0000 | [diff] [blame] | 155 | BENCH_SRCS += bench/TextBench.cpp |
reed@android.com | 3a859a0 | 2009-01-28 00:56:29 +0000 | [diff] [blame] | 156 | else |
reed@android.com | a21ff6f | 2009-01-27 18:25:02 +0000 | [diff] [blame] | 157 | BENCH_SRCS += src/images/SkImageDecoder_libpng.cpp |
reed@android.com | 1b4c815 | 2009-01-23 21:51:56 +0000 | [diff] [blame] | 158 | endif |
reed@android.com | fb21016 | 2009-01-23 21:24:39 +0000 | [diff] [blame] | 159 | |
reed@android.com | 4cb8bd1 | 2009-01-16 16:15:37 +0000 | [diff] [blame] | 160 | BENCH_OBJS := $(BENCH_SRCS:.cpp=.o) |
| 161 | BENCH_OBJS := $(addprefix out/, $(BENCH_OBJS)) |
| 162 | |
| 163 | bench: $(BENCH_OBJS) out/libskia.a |
reed@android.com | 4c7d3d6 | 2009-01-21 03:15:13 +0000 | [diff] [blame] | 164 | @echo "linking bench..." |
reed@android.com | cf4ac25 | 2010-05-12 17:25:30 +0000 | [diff] [blame] | 165 | $(HIDE)$(GPP) $(BENCH_OBJS) out/libskia.a -o out/bench/bench $(LINKER_OPTS) |
reed@android.com | 4cb8bd1 | 2009-01-16 16:15:37 +0000 | [diff] [blame] | 166 | |
reed@android.com | a396a16 | 2009-02-28 18:26:14 +0000 | [diff] [blame] | 167 | ############################################################################## |
| 168 | |
reed@android.com | 0650c6c | 2009-03-04 14:02:44 +0000 | [diff] [blame] | 169 | # we let tests cheat and see private headers, so we can unittest modules |
| 170 | C_INCLUDES += -Isrc/core |
| 171 | |
reed@android.com | bbff1d5 | 2009-06-05 16:21:03 +0000 | [diff] [blame] | 172 | include tests/tests_files.mk |
vandebo@chromium.org | 8459d4e | 2010-09-24 22:25:30 +0000 | [diff] [blame] | 173 | ifeq ($(SKIA_PDF_SUPPORT),true) |
| 174 | SOURCE += PDFPrimitivesTest.cpp |
| 175 | endif |
reed@android.com | bbff1d5 | 2009-06-05 16:21:03 +0000 | [diff] [blame] | 176 | TESTS_SRCS := $(addprefix tests/, $(SOURCE)) |
reed@android.com | a396a16 | 2009-02-28 18:26:14 +0000 | [diff] [blame] | 177 | |
| 178 | TESTS_OBJS := $(TESTS_SRCS:.cpp=.o) |
| 179 | TESTS_OBJS := $(addprefix out/, $(TESTS_OBJS)) |
| 180 | |
| 181 | tests: $(TESTS_OBJS) out/libskia.a |
| 182 | @echo "linking tests..." |
reed@android.com | cf4ac25 | 2010-05-12 17:25:30 +0000 | [diff] [blame] | 183 | $(HIDE)$(GPP) $(TESTS_OBJS) out/libskia.a -o out/tests/tests $(LINKER_OPTS) |
reed@android.com | a396a16 | 2009-02-28 18:26:14 +0000 | [diff] [blame] | 184 | |
| 185 | ############################################################################## |
| 186 | |
reed@android.com | af45979 | 2009-04-24 19:52:53 +0000 | [diff] [blame] | 187 | SKIMAGE_SRCS := skimage_main.cpp |
| 188 | |
| 189 | SKIMAGE_SRCS := $(addprefix tools/, $(SKIMAGE_SRCS)) |
| 190 | |
| 191 | SKIMAGE_OBJS := $(SKIMAGE_SRCS:.cpp=.o) |
| 192 | SKIMAGE_OBJS := $(addprefix out/, $(SKIMAGE_OBJS)) |
| 193 | |
| 194 | skimage: $(SKIMAGE_OBJS) out/libskia.a |
| 195 | @echo "linking skimage..." |
reed@android.com | cf4ac25 | 2010-05-12 17:25:30 +0000 | [diff] [blame] | 196 | $(HIDE)$(GPP) $(SKIMAGE_OBJS) out/libskia.a -o out/tools/skimage $(LINKER_OPTS) |
reed@android.com | af45979 | 2009-04-24 19:52:53 +0000 | [diff] [blame] | 197 | |
| 198 | ############################################################################## |
| 199 | |
reed@android.com | 6413e79 | 2010-04-12 14:27:37 +0000 | [diff] [blame] | 200 | SKHELLO_SRCS := skhello.cpp |
| 201 | |
| 202 | SKHELLO_SRCS := $(addprefix tools/, $(SKHELLO_SRCS)) |
| 203 | |
| 204 | SKHELLO_OBJS := $(SKHELLO_SRCS:.cpp=.o) |
| 205 | SKHELLO_OBJS := $(addprefix out/, $(SKHELLO_OBJS)) |
| 206 | |
| 207 | skhello: $(SKHELLO_OBJS) out/libskia.a |
| 208 | @echo "linking shkello..." |
reed@android.com | cf4ac25 | 2010-05-12 17:25:30 +0000 | [diff] [blame] | 209 | $(HIDE)$(GPP) $(SKHELLO_OBJS) out/libskia.a -o out/tools/skhello $(LINKER_OPTS) |
reed@android.com | 6413e79 | 2010-04-12 14:27:37 +0000 | [diff] [blame] | 210 | |
| 211 | ############################################################################## |
| 212 | |
reed@android.com | 048522d | 2009-06-23 12:19:41 +0000 | [diff] [blame] | 213 | include gm/gm_files.mk |
| 214 | GM_SRCS := $(addprefix gm/, $(SOURCE)) |
reed@android.com | dd0ac28 | 2009-06-20 02:38:16 +0000 | [diff] [blame] | 215 | |
senorblanco@chromium.org | 4aa910e | 2009-10-30 18:50:23 +0000 | [diff] [blame] | 216 | ifneq ($(SKIA_BUILD_FOR),mac) |
| 217 | GM_SRCS += src/images/SkImageDecoder_libpng.cpp |
| 218 | endif |
| 219 | |
reed@android.com | dd0ac28 | 2009-06-20 02:38:16 +0000 | [diff] [blame] | 220 | GM_OBJS := $(GM_SRCS:.cpp=.o) |
| 221 | GM_OBJS := $(addprefix out/, $(GM_OBJS)) |
| 222 | |
| 223 | gm: $(GM_OBJS) out/libskia.a |
| 224 | @echo "linking gm..." |
reed@google.com | 37df17d | 2010-12-23 20:20:51 +0000 | [diff] [blame] | 225 | $(HIDE)$(GPP) $(GM_OBJS) out/libskia.a -o out/gm/gm $(LINKER_OPTS) |
reed@android.com | dd0ac28 | 2009-06-20 02:38:16 +0000 | [diff] [blame] | 226 | |
reed@google.com | 0770044 | 2010-12-20 19:46:07 +0000 | [diff] [blame] | 227 | SAMPLEPDF_SRCS := samplepdf.cpp |
| 228 | |
| 229 | SAMPLEPDF_SRCS := $(addprefix tools/, $(SAMPLEPDF_SRCS)) |
| 230 | |
| 231 | SAMPLEPDF_OBJS := $(SAMPLEPDF_SRCS:.cpp=.o) |
| 232 | SAMPLEPDF_OBJS := $(addprefix out/, $(SAMPLEPDF_OBJS)) |
| 233 | |
| 234 | samplepdf: $(SAMPLEPDF_OBJS) out/libskia.a |
| 235 | @echo "linking samplepdf..." |
| 236 | $(HIDE)$(GPP) $(SAMPLEPDF_OBJS) out/libskia.a -o out/tools/samplepdf $(LINKER_OPTS) |
| 237 | |
reed@android.com | dd0ac28 | 2009-06-20 02:38:16 +0000 | [diff] [blame] | 238 | ############################################################################## |
| 239 | |
reed@android.com | ee0eb01 | 2009-06-23 17:13:30 +0000 | [diff] [blame] | 240 | .PHONY: all |
reed@android.com | 6413e79 | 2010-04-12 14:27:37 +0000 | [diff] [blame] | 241 | all: $ bench gm skimage tests skhello |
reed@android.com | ee0eb01 | 2009-06-23 17:13:30 +0000 | [diff] [blame] | 242 | |
reed@android.com | 9db6087 | 2009-01-21 15:07:03 +0000 | [diff] [blame] | 243 | .PHONY: clean |
reed@android.com | 4cb8bd1 | 2009-01-16 16:15:37 +0000 | [diff] [blame] | 244 | clean: |
| 245 | $(HIDE)rm -rf out |
reed@android.com | 9db6087 | 2009-01-21 15:07:03 +0000 | [diff] [blame] | 246 | |
| 247 | .PHONY: help |
reed@android.com | 4c7d3d6 | 2009-01-21 03:15:13 +0000 | [diff] [blame] | 248 | help: |
| 249 | @echo "Targets:" |
| 250 | @echo " <default>: out/libskia.a" |
| 251 | @echo " bench: out/bench/bench" |
reed@android.com | dd0ac28 | 2009-06-20 02:38:16 +0000 | [diff] [blame] | 252 | @echo " gm: out/gm/gm" |
reed@android.com | af45979 | 2009-04-24 19:52:53 +0000 | [diff] [blame] | 253 | @echo " skimage: out/tools/skimage" |
reed@android.com | 6413e79 | 2010-04-12 14:27:37 +0000 | [diff] [blame] | 254 | @echo " skhello: out/tools/skhello" |
reed@android.com | a396a16 | 2009-02-28 18:26:14 +0000 | [diff] [blame] | 255 | @echo " tests: out/tests/tests" |
reed@android.com | 4c7d3d6 | 2009-01-21 03:15:13 +0000 | [diff] [blame] | 256 | @echo " clean: removes entire out/ directory" |
| 257 | @echo " help: this text" |
reed@android.com | 9db6087 | 2009-01-21 15:07:03 +0000 | [diff] [blame] | 258 | @echo "Options: (after make, or in bash shell)" |
reed@android.com | 4c7d3d6 | 2009-01-21 03:15:13 +0000 | [diff] [blame] | 259 | @echo " SKIA_DEBUG=true for debug build" |
reed@android.com | 9db6087 | 2009-01-21 15:07:03 +0000 | [diff] [blame] | 260 | @echo " SKIA_SCALAR=fixed for fixed-point build" |
| 261 | @echo " SKIA_BUILD_FOR=mac for mac build (e.g. CG for image decoding)" |
vandebo@chromium.org | 8459d4e | 2010-09-24 22:25:30 +0000 | [diff] [blame] | 262 | @echo " SKIA_PDF_SUPPORT=true to enable the pdf generation backend" |
reed@android.com | 4c7d3d6 | 2009-01-21 03:15:13 +0000 | [diff] [blame] | 263 | @echo "" |