Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(68)

Side by Side Diff: Makefile

Issue 4548047: gm support for linux (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 13 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « . ('k') | include/utils/SkEGLContext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Simple makefile for skia library and test apps 1 # Simple makefile for skia library and test apps
2 2
3 # setup our defaults 3 # setup our defaults
4 CC := gcc 4 CC := gcc
5 GPP := g++ 5 GPP := g++
6 C_INCLUDES := -Iinclude/config -Iinclude/core -Iinclude/effects -Iinclude/images -Iinclude/ports 6 C_INCLUDES := -Iinclude/config -Iinclude/core -Iinclude/effects -Iinclude/images -Iinclude/ports
7 C_INCLUDES += -Iinclude/gpu -Iinclude/utils -Igpu/include 7 C_INCLUDES += -Iinclude/gpu -Iinclude/utils -Igpu/include
8 C_INCLUDES += -Ithird_party/glu 8 C_INCLUDES += -Ithird_party/glu
9 9
10 CFLAGS := -Wall -fstrict-aliasing 10 CFLAGS := -Wall -fstrict-aliasing
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 # these are our registry-based factories 109 # these are our registry-based factories
110 SRC_LIST += src/images/SkImageDecoder_Factory.cpp 110 SRC_LIST += src/images/SkImageDecoder_Factory.cpp
111 SRC_LIST += src/images/SkImageEncoder_Factory.cpp 111 SRC_LIST += src/images/SkImageEncoder_Factory.cpp
112 SRC_LIST += src/images/SkImageDecoder_libpng.cpp 112 SRC_LIST += src/images/SkImageDecoder_libpng.cpp
113 # support files 113 # support files
114 SRC_LIST += src/images/SkScaledBitmapSampler.cpp 114 SRC_LIST += src/images/SkScaledBitmapSampler.cpp
115 ········ 115 ········
116 SRC_LIST += gpu/src/mac/GrGLDefaultInterface_mac.cpp 116 SRC_LIST += gpu/src/mac/GrGLDefaultInterface_mac.cpp
117 else 117 else
118 » LINKER_OPTS += -lpng -lfreetype -lGL 118 » LINKER_OPTS += -lpng -lfreetype -lGL -lGLU -lX11
119 DEFINES += -DSK_BUILD_FOR_UNIX -DSK_ENABLE_LIBPNG -DGR_LINUX_BUILD=1 119 DEFINES += -DSK_BUILD_FOR_UNIX -DSK_ENABLE_LIBPNG -DGR_LINUX_BUILD=1
120 120
121 ifeq ($(SKIA_SAMPLES_FOR_X),true) 121 » #Assume the color order for now.
122 DEFINES += -DSK_SAMPLES_FOR_X 122 » DEFINES += -DSK_SAMPLES_FOR_X
123 endif 123
124 # needed for freetype support 124 # needed for freetype support
125 C_INCLUDES += -I/usr/include/freetype2 125 C_INCLUDES += -I/usr/include/freetype2
126 SRC_LIST += src/ports/SkFontHost_linux.cpp 126 SRC_LIST += src/ports/SkFontHost_linux.cpp
127 SRC_LIST += src/ports/SkFontHost_gamma_none.cpp 127 SRC_LIST += src/ports/SkFontHost_gamma_none.cpp
128 SRC_LIST += src/ports/SkFontHost_FreeType.cpp 128 SRC_LIST += src/ports/SkFontHost_FreeType.cpp
129 SRC_LIST += src/ports/SkFontHost_FreeType_Subpixel.cpp 129 SRC_LIST += src/ports/SkFontHost_FreeType_Subpixel.cpp
130 » SRC_LIST += src/utils/SkEGLContext_none.cpp 130 » SRC_LIST += src/utils/unix/SkEGLContext_Unix.cpp
131 # these are our registry-based factories 131 # these are our registry-based factories
132 SRC_LIST += src/images/SkImageDecoder_Factory.cpp 132 SRC_LIST += src/images/SkImageDecoder_Factory.cpp
133 SRC_LIST += src/images/SkImageEncoder_Factory.cpp 133 SRC_LIST += src/images/SkImageEncoder_Factory.cpp
134 SRC_LIST += src/images/SkImageDecoder_libpng.cpp 134 SRC_LIST += src/images/SkImageDecoder_libpng.cpp
135 # support files 135 # support files
136 SRC_LIST += src/images/SkScaledBitmapSampler.cpp 136 SRC_LIST += src/images/SkScaledBitmapSampler.cpp
137 ········ 137 ········
138 » SRC_LIST += gpu/src/GrGLDefaultInterface_none.cpp 138 » SRC_LIST += gpu/src/unix/GrGLDefaultInterface_unix.cpp
139 endif 139 endif
140 140
141 # For these files, and these files only, compile with -msse2. 141 # For these files, and these files only, compile with -msse2.
142 SSE2_OBJS := out/src/opts/SkBlitRow_opts_SSE2.o \ 142 SSE2_OBJS := out/src/opts/SkBlitRow_opts_SSE2.o \
143 out/src/opts/SkBitmapProcState_opts_SSE2.o \ 143 out/src/opts/SkBitmapProcState_opts_SSE2.o \
144 out/src/opts/SkUtils_opts_SSE2.o 144 out/src/opts/SkUtils_opts_SSE2.o
145 $(SSE2_OBJS) : CFLAGS := $(CFLAGS_SSE2) 145 $(SSE2_OBJS) : CFLAGS := $(CFLAGS_SSE2)
146 146
147 out/%.o : %.cpp 147 out/%.o : %.cpp
148 @mkdir -p $(dir $@) 148 @mkdir -p $(dir $@)
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 @echo " tests: out/tests/tests" 280 @echo " tests: out/tests/tests"
281 @echo " clean: removes entire out/ directory" 281 @echo " clean: removes entire out/ directory"
282 @echo " help: this text" 282 @echo " help: this text"
283 @echo "Options: (after make, or in bash shell)" 283 @echo "Options: (after make, or in bash shell)"
284 @echo " SKIA_DEBUG=true for debug build" 284 @echo " SKIA_DEBUG=true for debug build"
285 @echo " SKIA_SHARED=true for shared-object libskia build" 285 @echo " SKIA_SHARED=true for shared-object libskia build"
286 @echo " SKIA_SCALAR=fixed for fixed-point build" 286 @echo " SKIA_SCALAR=fixed for fixed-point build"
287 @echo " SKIA_BUILD_FOR=mac for mac build (e.g. CG for image decoding) " 287 @echo " SKIA_BUILD_FOR=mac for mac build (e.g. CG for image decoding) "
288 @echo " SKIA_PDF_SUPPORT=false to disable the pdf generation backend" 288 @echo " SKIA_PDF_SUPPORT=false to disable the pdf generation backend"
289 @echo "" 289 @echo ""
OLDNEW
« no previous file with comments | « . ('k') | include/utils/SkEGLContext.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b