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-09-12 17:59:04 (GMT)
commit1d0c305b82c6700d50641a9b24cb760abaa9149a (patch)
tree87486d2eff287fca3a2abe802c05398948bbf08f
parentef96bc5357078f6dc09e2e639e9fcc19420a07d9 (diff)
downloadnetsurf-1d0c305b82c6700d50641a9b24cb760abaa9149a.tar.gz
netsurf-1d0c305b82c6700d50641a9b24cb760abaa9149a.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 363b0a2..35dfb4b 100644
--- a/Makefile
+++ b/Makefile
@@ -532,7 +532,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