2008-07-26 21:08:23 +04:00
|
|
|
#
|
|
|
|
# NetSurf build configuration
|
|
|
|
#
|
|
|
|
# Some of these options support an 'AUTO' option, as well as YES and NO. If
|
2008-07-29 00:56:24 +04:00
|
|
|
# AUTO is available, the Makefile will attempt to detect if that feature is
|
|
|
|
# available when such is used.
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Options relating to all versions of NetSurf
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# Enable NetSurf's built-in BMP support
|
|
|
|
# Valid options: YES, NO
|
2008-07-29 03:16:59 +04:00
|
|
|
NETSURF_USE_BMP := YES
|
2008-07-29 00:56:24 +04:00
|
|
|
|
|
|
|
# Enable NetSurf's built-in GIF support
|
|
|
|
# Valid options: YES, NO
|
2008-07-29 03:16:59 +04:00
|
|
|
NETSURF_USE_GIF := YES
|
2008-07-29 00:56:24 +04:00
|
|
|
|
|
|
|
# Enable NetSurf's use of IJG's libjpeg
|
|
|
|
# Valid options: YES, NO
|
2008-07-29 03:16:59 +04:00
|
|
|
NETSURF_USE_JPEG := YES
|
2008-07-29 00:56:24 +04:00
|
|
|
|
|
|
|
# Enable NetSurf's use of libmng for displaying MNGs and PNGs
|
|
|
|
# Valid options: YES, NO
|
2008-07-29 03:16:59 +04:00
|
|
|
NETSURF_USE_MNG := YES
|
2008-07-26 21:08:23 +04:00
|
|
|
|
|
|
|
# Use libharu to enable PDF export and GTK printing support. There is no
|
2008-08-11 20:44:12 +04:00
|
|
|
# auto-detection available for this, as it does not have a pkg-config file.
|
2008-07-29 00:56:24 +04:00
|
|
|
# Valid options: YES, NO
|
2008-07-29 03:16:59 +04:00
|
|
|
NETSURF_USE_HARU_PDF := YES
|
2008-07-29 12:57:51 +04:00
|
|
|
|
|
|
|
# Enable stripping the NetSurf binary
|
|
|
|
# Valid options: YES, NO
|
|
|
|
NETSURF_STRIP_BINARY := NO
|
2008-07-26 21:08:23 +04:00
|
|
|
|
2008-07-29 19:10:31 +04:00
|
|
|
# Template used for constructing the User Agent: string. The first two
|
|
|
|
# replacements are major/minor version, second two are OS and architecture.
|
|
|
|
# Please don't be tempted to mention Mozilla here! Let's let that lie die.
|
|
|
|
NETSURF_UA_FORMAT_STRING := "NetSurf/%d.%d (%s; %s)"
|
|
|
|
|
|
|
|
# Default home page if one is not defined. Note that this does not apply to
|
|
|
|
# the RISC OS version, as it has its own local home page, and it can be changed
|
|
|
|
# by editing the end of gui_init2() in riscos/gui.c
|
|
|
|
NETSURF_HOMEPAGE := "http://www.netsurf-browser.org/welcome/"
|
|
|
|
|
2008-08-09 03:47:11 +04:00
|
|
|
# Force using glibc internal iconv implementation instead of external libiconv
|
|
|
|
# Valid options: YES, NO
|
|
|
|
NETSURF_USE_LIBICONV_PLUG := YES
|
|
|
|
|
2008-08-15 13:49:10 +04:00
|
|
|
# Initial CFLAGS. Optimisation level etc. tend to be target specific.
|
|
|
|
CFLAGS :=
|
2008-08-13 19:31:41 +04:00
|
|
|
|
2008-07-29 00:56:24 +04:00
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# RISC OS-specific options
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
ifeq ($(TARGET),riscos)
|
|
|
|
|
Merged revisions 4859-5013,5016-5018 via svnmerge from
svn://source.netsurf-browser.org/branches/takkaria/netsurf-hubbub
........
r4860 | takkaria | 2008-08-02 03:51:35 +0100 (Sat, 02 Aug 2008) | 2 lines
A really horribly rough first go at integrating hubbub with NetSurf. Segfaults, but I'm not sure what I've done wrong.
........
r4861 | jmb | 2008-08-02 05:01:19 +0100 (Sat, 02 Aug 2008) | 3 lines
Fix segfault caused by mismatched struct layout expectations.
Fix warnings, too.
........
r4862 | jmb | 2008-08-02 05:11:02 +0100 (Sat, 02 Aug 2008) | 2 lines
Destroy parser as soon as it's no longer needed, and flag this so that html_destroy doesn't cause things to trample all over the heap.
........
r4863 | takkaria | 2008-08-02 15:30:34 +0100 (Sat, 02 Aug 2008) | 2 lines
Remove deugging printf()s, add Aliases file, add script { display: none; } block.
........
r4868 | takkaria | 2008-08-02 22:14:55 +0100 (Sat, 02 Aug 2008) | 2 lines
Fix a segfault bug.
........
r4869 | takkaria | 2008-08-02 22:17:58 +0100 (Sat, 02 Aug 2008) | 2 lines
Add gtk/res/Aliases as a symlink to the one in !NS/Resources
........
r4870 | takkaria | 2008-08-02 22:26:31 +0100 (Sat, 02 Aug 2008) | 2 lines
Fix symlink.
........
r4885 | jmb | 2008-08-03 23:26:54 +0100 (Sun, 03 Aug 2008) | 2 lines
Make multiple parallel parser instances work correctly.
........
r4886 | tlsa | 2008-08-04 00:21:29 +0100 (Mon, 04 Aug 2008) | 1 line
Don't display contents of STYLE.
........
r4891 | jmb | 2008-08-04 01:18:07 +0100 (Mon, 04 Aug 2008) | 5 lines
Fix reparent_children to actually work
Make get_parent_node pay attention to the element_only flag
Fixup node referencing when appending a text child
Make clone_node clone attributes and namespace information in the non-deep case
........
r4918 | jmb | 2008-08-05 15:27:03 +0100 (Tue, 05 Aug 2008) | 2 lines
Fix debug target
........
r4944 | takkaria | 2008-08-07 12:56:50 +0100 (Thu, 07 Aug 2008) | 2 lines
Use talloc to allocate space for Hubbub.
........
r4993 | takkaria | 2008-08-10 17:49:47 +0100 (Sun, 10 Aug 2008) | 2 lines
Stub out the encoding change callback so NS-hubbub compiles again.
........
r4994 | takkaria | 2008-08-10 18:02:33 +0100 (Sun, 10 Aug 2008) | 2 lines
Tell Hubbub the encoding that HTTP gives us, if we have one.
........
r5001 | takkaria | 2008-08-11 02:53:24 +0100 (Mon, 11 Aug 2008) | 2 lines
First go at implementing proper <meta charset> support in NetSurf, amongst some refactoring. Probably works, but I have no pages around to test it on.
........
r5002 | takkaria | 2008-08-11 02:56:35 +0100 (Mon, 11 Aug 2008) | 2 lines
Fix (I hope) a 64-bit compiler warning.
........
r5012 | takkaria | 2008-08-11 08:40:28 +0100 (Mon, 11 Aug 2008) | 2 lines
Fix some nits from jmb. (Remove const from html->encoding, set encoding_source to something about right.)
........
r5013 | takkaria | 2008-08-11 08:48:50 +0100 (Mon, 11 Aug 2008) | 2 lines
Properly fix <meta charset> handling, by passing in the right thing as the context. No idea how this worked before. :) (credit: jmb)
........
r5017 | jmb | 2008-08-11 09:13:22 +0100 (Mon, 11 Aug 2008) | 7 lines
Pedantic typo fix.
Make Hubbub YES when building for RISC OS.
Make Hubbub AUTO when building for GTK
Ignore the presence of Hubbub on other platforms.
Remove the explicit libparserutils pkg-config stuff from the makefile (see r5016)
Add some logic that means Hubbub gets enabled correctly when building on RISC OS and when cross-compiling for it. (This is ugly and will go away when pkg-config is available on RO)
........
svn path=/trunk/netsurf/; revision=5019
2008-08-11 12:17:48 +04:00
|
|
|
# Enable using Hubbub to parse HTML rather than libxml2
|
|
|
|
# Valid options: YES, NO
|
|
|
|
NETSURF_USE_HUBBUB := YES
|
|
|
|
|
2008-07-29 03:16:59 +04:00
|
|
|
# Use James Bursa's libsvgtiny for rendering SVG images
|
|
|
|
# Valid options: YES, NO
|
|
|
|
NETSURF_USE_NSSVG := YES
|
2008-07-29 00:56:24 +04:00
|
|
|
|
2008-07-29 03:16:59 +04:00
|
|
|
# Use pencil to enable export to Drawfile
|
|
|
|
# Valid options: YES, NO
|
|
|
|
NETSURF_USE_DRAW := YES
|
2008-07-29 00:56:24 +04:00
|
|
|
|
2008-07-29 03:16:59 +04:00
|
|
|
# Enable NetSurf's RISC OS Sprite support via Tinct
|
|
|
|
# Valid options: YES, NO
|
|
|
|
NETSURF_USE_SPRITE := YES
|
2008-08-13 19:31:41 +04:00
|
|
|
|
2008-07-29 12:50:13 +04:00
|
|
|
# Enable NetSurf's ArtWorks support via AWRender
|
|
|
|
# Valid options: YES, NO
|
|
|
|
NETSURF_USE_ARTWORKS := YES
|
2008-07-29 00:56:24 +04:00
|
|
|
|
2008-08-01 15:29:18 +04:00
|
|
|
# Enable support for the Acorn plugin protocol
|
|
|
|
# Valid options: YES, NO
|
|
|
|
NETSURF_USE_PLUGINS := NO
|
|
|
|
|
2008-08-15 13:49:10 +04:00
|
|
|
# Optimisation levels
|
|
|
|
CFLAGS += -O -Wuninitialized
|
|
|
|
|
2008-07-29 00:56:24 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# GTK-specific options
|
|
|
|
# ----------------------------------------------------------------------------
|
2008-07-26 21:08:23 +04:00
|
|
|
ifeq ($(TARGET),gtk)
|
|
|
|
|
2008-07-29 03:16:59 +04:00
|
|
|
# Where to search for NetSurf's resources after looking in ~/.netsurf and
|
|
|
|
# $NETSURFRES. It must have a trailing /
|
|
|
|
NETSURF_GTK_RESOURCES := /usr/local/share/netsurf/
|
2008-08-13 19:31:41 +04:00
|
|
|
|
2008-07-29 13:08:32 +04:00
|
|
|
# Where to install the netsurf binary
|
|
|
|
NETSURF_GTK_BIN := /usr/local/bin/
|
2008-07-29 00:56:24 +04:00
|
|
|
|
Merged revisions 4859-5013,5016-5018 via svnmerge from
svn://source.netsurf-browser.org/branches/takkaria/netsurf-hubbub
........
r4860 | takkaria | 2008-08-02 03:51:35 +0100 (Sat, 02 Aug 2008) | 2 lines
A really horribly rough first go at integrating hubbub with NetSurf. Segfaults, but I'm not sure what I've done wrong.
........
r4861 | jmb | 2008-08-02 05:01:19 +0100 (Sat, 02 Aug 2008) | 3 lines
Fix segfault caused by mismatched struct layout expectations.
Fix warnings, too.
........
r4862 | jmb | 2008-08-02 05:11:02 +0100 (Sat, 02 Aug 2008) | 2 lines
Destroy parser as soon as it's no longer needed, and flag this so that html_destroy doesn't cause things to trample all over the heap.
........
r4863 | takkaria | 2008-08-02 15:30:34 +0100 (Sat, 02 Aug 2008) | 2 lines
Remove deugging printf()s, add Aliases file, add script { display: none; } block.
........
r4868 | takkaria | 2008-08-02 22:14:55 +0100 (Sat, 02 Aug 2008) | 2 lines
Fix a segfault bug.
........
r4869 | takkaria | 2008-08-02 22:17:58 +0100 (Sat, 02 Aug 2008) | 2 lines
Add gtk/res/Aliases as a symlink to the one in !NS/Resources
........
r4870 | takkaria | 2008-08-02 22:26:31 +0100 (Sat, 02 Aug 2008) | 2 lines
Fix symlink.
........
r4885 | jmb | 2008-08-03 23:26:54 +0100 (Sun, 03 Aug 2008) | 2 lines
Make multiple parallel parser instances work correctly.
........
r4886 | tlsa | 2008-08-04 00:21:29 +0100 (Mon, 04 Aug 2008) | 1 line
Don't display contents of STYLE.
........
r4891 | jmb | 2008-08-04 01:18:07 +0100 (Mon, 04 Aug 2008) | 5 lines
Fix reparent_children to actually work
Make get_parent_node pay attention to the element_only flag
Fixup node referencing when appending a text child
Make clone_node clone attributes and namespace information in the non-deep case
........
r4918 | jmb | 2008-08-05 15:27:03 +0100 (Tue, 05 Aug 2008) | 2 lines
Fix debug target
........
r4944 | takkaria | 2008-08-07 12:56:50 +0100 (Thu, 07 Aug 2008) | 2 lines
Use talloc to allocate space for Hubbub.
........
r4993 | takkaria | 2008-08-10 17:49:47 +0100 (Sun, 10 Aug 2008) | 2 lines
Stub out the encoding change callback so NS-hubbub compiles again.
........
r4994 | takkaria | 2008-08-10 18:02:33 +0100 (Sun, 10 Aug 2008) | 2 lines
Tell Hubbub the encoding that HTTP gives us, if we have one.
........
r5001 | takkaria | 2008-08-11 02:53:24 +0100 (Mon, 11 Aug 2008) | 2 lines
First go at implementing proper <meta charset> support in NetSurf, amongst some refactoring. Probably works, but I have no pages around to test it on.
........
r5002 | takkaria | 2008-08-11 02:56:35 +0100 (Mon, 11 Aug 2008) | 2 lines
Fix (I hope) a 64-bit compiler warning.
........
r5012 | takkaria | 2008-08-11 08:40:28 +0100 (Mon, 11 Aug 2008) | 2 lines
Fix some nits from jmb. (Remove const from html->encoding, set encoding_source to something about right.)
........
r5013 | takkaria | 2008-08-11 08:48:50 +0100 (Mon, 11 Aug 2008) | 2 lines
Properly fix <meta charset> handling, by passing in the right thing as the context. No idea how this worked before. :) (credit: jmb)
........
r5017 | jmb | 2008-08-11 09:13:22 +0100 (Mon, 11 Aug 2008) | 7 lines
Pedantic typo fix.
Make Hubbub YES when building for RISC OS.
Make Hubbub AUTO when building for GTK
Ignore the presence of Hubbub on other platforms.
Remove the explicit libparserutils pkg-config stuff from the makefile (see r5016)
Add some logic that means Hubbub gets enabled correctly when building on RISC OS and when cross-compiling for it. (This is ugly and will go away when pkg-config is available on RO)
........
svn path=/trunk/netsurf/; revision=5019
2008-08-11 12:17:48 +04:00
|
|
|
# Enable using Hubbub to parse HTML rather than libxml2
|
|
|
|
# Valid options: YES, NO, AUTO
|
|
|
|
NETSURF_USE_HUBBUB := AUTO
|
|
|
|
|
2008-07-29 03:16:59 +04:00
|
|
|
# Use librsvg in conjunction with Cairo to render SVG images
|
|
|
|
# Valid options: YES, NO, AUTO
|
|
|
|
NETSURF_USE_RSVG := AUTO
|
2008-07-26 21:08:23 +04:00
|
|
|
|
2008-07-29 03:16:59 +04:00
|
|
|
# Use James Shaw's librosprite for rendering RISC OS Sprites
|
|
|
|
# Valid options: YES, NO, AUTO
|
|
|
|
NETSURF_USE_ROSPRITE := AUTO
|
2008-07-26 21:08:23 +04:00
|
|
|
|
2008-08-11 20:44:12 +04:00
|
|
|
# Configuration overrides for Mac OS X
|
|
|
|
ifeq ($(HOST),macosx)
|
|
|
|
NETSURF_USE_LIBICONV_PLUG := NO
|
|
|
|
NETSURF_USE_HARU_PDF := NO
|
|
|
|
endif
|
2008-08-15 13:49:10 +04:00
|
|
|
|
|
|
|
# Optimisation levels
|
|
|
|
CFLAGS += -O2 -Wuninitialized
|
|
|
|
|
2008-07-26 21:08:23 +04:00
|
|
|
endif
|
|
|
|
|
2008-08-09 03:47:11 +04:00
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# BeOS-specific options
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
ifeq ($(TARGET),beos)
|
|
|
|
|
|
|
|
# Use James Shaw's librosprite for rendering RISC OS Sprites
|
|
|
|
# Valid options: YES, NO, AUTO
|
|
|
|
NETSURF_USE_ROSPRITE := AUTO
|
|
|
|
|
|
|
|
# Use libharu to enable PDF export and GTK printing support.
|
|
|
|
# Valid options: YES, NO
|
|
|
|
NETSURF_USE_HARU_PDF := NO
|
|
|
|
|
|
|
|
# Force using glibc internal iconv implementation instead of external libiconv
|
|
|
|
# Valid options: YES, NO
|
|
|
|
NETSURF_USE_LIBICONV_PLUG := NO
|
2008-08-15 13:49:10 +04:00
|
|
|
|
|
|
|
# Optimisation levels
|
|
|
|
CFLAGS += -O2 -Wuninitialized
|
|
|
|
|
2008-08-09 03:47:11 +04:00
|
|
|
endif
|
|
|
|
|
2008-08-02 18:35:40 +04:00
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Amiga-specific options
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
ifeq ($(TARGET),amiga)
|
|
|
|
|
|
|
|
# Use James Shaw's librosprite for rendering RISC OS Sprites
|
|
|
|
# Valid options: YES, NO, AUTO
|
|
|
|
NETSURF_USE_ROSPRITE := YES
|
|
|
|
|
2008-08-12 22:28:28 +04:00
|
|
|
# Enable using Hubbub to parse HTML rather than libxml2
|
|
|
|
# Valid options: YES, NO, AUTO
|
|
|
|
NETSURF_USE_HUBBUB := YES
|
|
|
|
|
2008-08-15 13:49:10 +04:00
|
|
|
# Optimisation levels
|
|
|
|
CFLAGS += -O2 -Wuninitialized
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Debug-target-specific options
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
ifeq ($(TARGET),debug)
|
|
|
|
# Optimisation levels
|
|
|
|
CFLAGS += -O0
|
2008-08-02 18:35:40 +04:00
|
|
|
endif
|
2008-07-29 13:44:13 +04:00
|
|
|
|
|
|
|
# Include any local overrides
|
|
|
|
-include Makefile.config.override
|
2008-08-15 13:49:10 +04:00
|
|
|
|