summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshish Gupta <ashmew2@gmail.com>2017-05-13 22:15:05 (GMT)
committer Ashish Gupta <ashmew2@gmail.com>2017-06-10 06:25:29 (GMT)
commita2a1dabcceaa79e1d95935fa69df250d8af5fe0b (patch)
treee85a1e46274b04135363e467bbda37ff67a840d1
parent698077fba6bc8d9280d005442779f68a0dd07ddc (diff)
downloadnetsurf-a2a1dabcceaa79e1d95935fa69df250d8af5fe0b.tar.gz
netsurf-a2a1dabcceaa79e1d95935fa69df250d8af5fe0b.tar.bz2
Enable GIF PNG JPEG image formats
-rw-r--r--Makefile2
-rw-r--r--frontends/kolibrios/Makefile2
-rw-r--r--frontends/kolibrios/Makefile.defaults6
3 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index aedc371..fa8a6c8 100644
--- a/Makefile
+++ b/Makefile
@@ -529,7 +529,7 @@ ifneq ($(TARGET),kolibrios)
else
KOL_LIBC := $(HOME)/kolibrios/contrib/sdk/sources/newlib/libc/include/
KOL_LIB_DIR := $(HOME)/kolibrios/contrib/sdk/lib
- LIB_LDFLAGS := -L$(KOL_LIB_DIR) -lfreetype -lpng16
+ LIB_LDFLAGS := -L$(KOL_LIB_DIR) -lfreetype -lpng16 -ljpeg
OS_LDFLAGS := -static -S -Tapp-dynamic.lds --image-base 0 -Map netsurf-kolibrios.map
NS_INCLUDE := $(PREFIX)/include
diff --git a/frontends/kolibrios/Makefile b/frontends/kolibrios/Makefile
index fc065d1..742011b 100644
--- a/frontends/kolibrios/Makefile
+++ b/frontends/kolibrios/Makefile
@@ -11,6 +11,8 @@ CFLAGS += '-DKOLIBRI_RUNTIME_RESPATH="$(NETSURF_KOLIBRI_RESPATH)"'
# Enable PNG and others from here (no pkg config for now)
CFLAGS += '-DWITH_PNG'
+CFLAGS += '-DWITH_GIF'
+CFLAGS += '-DWITH_JPEG'
# compile time font locations
CFLAGS += '-DNETSURF_FB_FONTPATH="$(NETSURF_KOLIBRI_FONTPATH)"'
diff --git a/frontends/kolibrios/Makefile.defaults b/frontends/kolibrios/Makefile.defaults
index ef51b6c..5441fd0 100644
--- a/frontends/kolibrios/Makefile.defaults
+++ b/frontends/kolibrios/Makefile.defaults
@@ -42,3 +42,9 @@ NETSURF_KOLIBRI_RESPATH := /usbhd0/1/res
# KolibriOS does not need curl. It has it's own HTTP library.
NETSURF_USE_CURL := NO
NETSURF_USE_KOLIBRI_HTTPLIB := YES
+
+# image formats
+NETSURF_USE_PNG := YES
+NETSURF_USE_GIF := YES
+NETSURF_USE_JPEG := YES
+NETSURF_USE_BMP := NO