summaryrefslogtreecommitdiff
path: root/utils/config.h
blob: 21fc523ab0e60a200f4ad95f499c1490a063300c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
 * This file is part of NetSurf, http://netsurf.sourceforge.net/
 * Licensed under the GNU General Public License,
 *                http://www.opensource.org/licenses/gpl-license
 * Copyright 2003,4 John M Bell <jmb202@ecs.soton.ac.uk>
 * Copyright 2004 Andrew Timmins <atimmins@blueyonder.co.uk>
 */

#ifndef _NETSURF_UTILS_CONFIG_H_
#define _NETSURF_UTILS_CONFIG_H_

/* This file toggles build options on and off.
 * Simply undefine a symbol to turn the relevant feature off.
 *
 * IF ADDING A FEATURE HERE, ADD IT TO Docs/Doxyfile LINE 892 AS WELL.
 */

/* HTTP POST support */
#define WITH_POST
/* HTTP Auth */
#define WITH_AUTH
/* Cookies */
#define WITH_COOKIES

/* Image renderering modules */
#if defined(riscos) || defined(debug)
    #define WITH_GIF
    #define WITH_JPEG
    #define WITH_PNG
    #define WITH_MNG
#endif
#ifdef riscos
    #define WITH_DRAW
    #define WITH_SPRITE
#endif

/* Platform specific features */
#ifdef riscos
    /* Plugin module */
    #define WITH_PLUGIN
    /* Acorn URI protocol support */
    #define WITH_URI
    /* ANT URL protocol support */
    #define WITH_URL
#endif
#ifdef ncos
    /* Kiosk style browsing support */
    #define WITH_KIOSK_BROWSING
    /* Kiosk style browsing themes support */
    #define WITH_KIOSK_THEMES
    /* Keyboard navigation support */
    #define WITH_KEYBOARD_NAVIGATION
#endif

#if defined(riscos) || defined(debug)
    /* Export modules */
    #define WITH_SAVE_COMPLETE
    #define WITH_DRAW_EXPORT
    #define WITH_TEXT_EXPORT
#endif

#endif