aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-01-23 21:24:39 +0000
committerGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-01-23 21:24:39 +0000
commitfb210163380c89bffa7cb13772e31ee65b77a1f9 (patch)
treecc3c9399306cbdb9571cc9bd4ad4d43049ac6ff4
parent64dbab7e05203e3809b825ad0d65b6f0de3169f8 (diff)
Move libpng file into app, rather than the libskia, so it doesn't get optimized
away git-svn-id: http://skia.googlecode.com/svn/trunk@81 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c5cfd86c60..a0a6955bb6 100644
--- a/Makefile
+++ b/Makefile
@@ -45,15 +45,12 @@ ifeq ($(SKIA_BUILD_FOR),mac)
SRC_LIST += src/ports/SkImageDecoder_CG.cpp
SRC_LIST += src/utils/mac/SkCreateCGImageRef.cpp
else
- LINKER_OPTS += -lpng -ljpeg
+ LINKER_OPTS += -lpng
DEFINES += -DSK_BUILD_FOR_UNIX
# these are our registry-based factories
SRC_LIST += src/images/SkImageDecoder_Factory.cpp
SRC_LIST += src/images/SkImageEncoder_Factory.cpp
- # this is our list of optional codecs
- SRC_LIST += src/images/SkImageDecoder_libpng.cpp
- SRC_LIST += src/images/SkImageDecoder_libjpeg.cpp
# support files
SRC_LIST += src/images/SkScaledBitmapSampler.cpp
endif
@@ -73,6 +70,9 @@ out/libskia.a: Makefile $(OBJ_LIST)
BENCH_SRCS := RectBench.cpp SkBenchmark.cpp main.cpp
BENCH_SRCS := $(addprefix bench/, $(BENCH_SRCS))
+# add any optional codecs for this app
+BENCH_SRCS += src/images/SkImageDecoder_libpng.cpp
+
BENCH_OBJS := $(BENCH_SRCS:.cpp=.o)
BENCH_OBJS := $(addprefix out/, $(BENCH_OBJS))