aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-17 14:24:46 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-17 14:24:46 +0000
commit16bab87a78cfaf6a4f334e1af910c46883f460af (patch)
treed3673b82876bca69b03b1eaf04d3f0fdc16ee622 /Makefile
parent1dd17a133f4fa5c5a0c752e6b9a6f7af6f329fb8 (diff)
Add GL context creation for X so that gm can run GPU on Linux.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 7a53951c0a..32a793ff03 100644
--- a/Makefile
+++ b/Makefile
@@ -115,19 +115,19 @@ ifeq ($(SKIA_BUILD_FOR),mac)
SRC_LIST += gpu/src/mac/GrGLDefaultInterface_mac.cpp
else
- LINKER_OPTS += -lpng -lfreetype -lGL
+ LINKER_OPTS += -lpng -lfreetype -lGL -lGLU -lX11
DEFINES += -DSK_BUILD_FOR_UNIX -DSK_ENABLE_LIBPNG -DGR_LINUX_BUILD=1
- ifeq ($(SKIA_SAMPLES_FOR_X),true)
- DEFINES += -DSK_SAMPLES_FOR_X
- endif
+ #Assume the color order for now.
+ DEFINES += -DSK_SAMPLES_FOR_X
+
# needed for freetype support
C_INCLUDES += -I/usr/include/freetype2
SRC_LIST += src/ports/SkFontHost_linux.cpp
SRC_LIST += src/ports/SkFontHost_gamma_none.cpp
SRC_LIST += src/ports/SkFontHost_FreeType.cpp
SRC_LIST += src/ports/SkFontHost_FreeType_Subpixel.cpp
- SRC_LIST += src/utils/SkEGLContext_none.cpp
+ SRC_LIST += src/utils/unix/SkEGLContext_Unix.cpp
# these are our registry-based factories
SRC_LIST += src/images/SkImageDecoder_Factory.cpp
SRC_LIST += src/images/SkImageEncoder_Factory.cpp
@@ -135,7 +135,7 @@ else
# support files
SRC_LIST += src/images/SkScaledBitmapSampler.cpp
- SRC_LIST += gpu/src/GrGLDefaultInterface_none.cpp
+ SRC_LIST += gpu/src/unix/GrGLDefaultInterface_unix.cpp
endif
# For these files, and these files only, compile with -msse2.