From 6d1169e92d421855284dd27e8695e6bdf1e216f3 Mon Sep 17 00:00:00 2001 From: François Revel Date: Wed, 19 Jan 2011 01:36:21 +0000 Subject: Add the required makefile stuff to build NetSurf for OSX using 'make cocoa' in trunk/. Crashes for now though. Requires some libs installed with macports to /opt/local. svn path=/trunk/netsurf/; revision=11380 --- Makefile.defaults | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'Makefile.defaults') diff --git a/Makefile.defaults b/Makefile.defaults index c0d2e1b1a..32bfe8f18 100644 --- a/Makefile.defaults +++ b/Makefile.defaults @@ -345,6 +345,45 @@ ifeq ($(TARGET),atari) endif +# ---------------------------------------------------------------------------- +# Cocoa-specific options +# ---------------------------------------------------------------------------- +ifeq ($(TARGET),cocoa) + + # Force using glibc internal iconv implementation instead of external libiconv + # Valid options: YES, NO + NETSURF_USE_LIBICONV_PLUG := NO + + # Enable NetSurf's use of librosprite for displaying RISC OS Sprites + # Valid options: YES, NO, AUTO + NETSURF_USE_ROSPRITE := NO + + # Enable NetSurf's use of libwebp/libvpx for displaying WebPs + # Valid options: YES, NO + NETSURF_USE_WEBP := NO + + # Enable NetSurf's use of librsvg in conjunction with Cairo to display SVGs + # Valid options: YES, NO, AUTO + NETSURF_USE_RSVG := AUTO + + # Enable NetSurf's use of libsvgtiny for displaying SVGs + # Valid options: YES, NO, AUTO + NETSURF_USE_NSSVG := YES + + NETSURF_USE_MNG := NO + + NETSURF_ATARI_USE_FREETYPE := YES + + # Optimisation levels + CFLAGS += -O2 -Wuninitialized + + WARNFLAGS = -W -Wundef -Wpointer-arith \ + -Wcast-align -Wwrite-strings -Wstrict-prototypes \ + -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls \ + -Wnested-externs -Wl,-t + +endif + # Include any local configuration -include Makefile.config -- cgit v1.2.3