1 /* 2 * GPAC - Multimedia Framework C SDK 3 * 4 * Authors: Jean Le Feuvre 5 * Copyright (c) Telecom ParisTech 2008-2012 6 * All rights reserved 7 * 8 * This file is part of GPAC 9 * 10 * GPAC is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU Lesser General Public License as published by 12 * the Free Software Foundation; either version 2, or (at your option) 13 * any later version. 14 * 15 * GPAC is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License for more details. 19 * 20 * You should have received a copy of the GNU Lesser General Public 21 * License along with this library; see the file COPYING. If not, write to 22 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 23 * 24 */ 25 26 27 #ifndef _GF_CONFIG_H_ 28 #define _GF_CONFIG_H_ 29 30 #define GPAC_CONFIGURATION "(static configuration file)" 31 32 /*this file defines all common macros for libgpac compilation 33 except for symbian32 which uses .mmp directives ... */ 34 #if defined(WIN32) || defined(_WIN32_WCE) || defined(GPAC_CONFIG_DARWIN) /*visual studio and xcode*/ 35 36 /*enables GPAC fixed point*/ 37 //#define GPAC_FIXED_POINT 38 39 /*automatic tracking is disabled by default, causes too many problems when reusing parts of gpac*/ 40 #if 0 41 /*enables GPAC memory tracking*/ 42 #if defined(DEBUG) || defined(_DEBUG) 43 #define GPAC_MEMORY_TRACKING 44 #endif 45 #endif 46 47 /*platform is big endian*/ 48 //#define GPAC_BIG_ENDIAN 49 50 /*SSL enabled*/ 51 #ifdef WIN32 52 #define GPAC_HAS_SSL 53 #endif 54 55 /*spidermonkey enabled*/ 56 #define GPAC_HAS_SPIDERMONKEY 57 #ifdef GPAC_CONFIG_DARWIN 58 #define MOZILLA_1_8_BRANCH 59 #endif 60 61 /*libjpeg enabled*/ 62 #define GPAC_HAS_JPEG 63 64 /*pnj enabled*/ 65 #define GPAC_HAS_PNG 66 67 /*IPv6 enabled - for win32, this is evaluated at compile time, !! do not uncomment !!*/ 68 //#define GPAC_HAS_IPV6 69 70 /*3D compositor disabled*/ 71 #ifdef GPAC_CONFIG_DARWIN 72 #define GPAC_DISABLE_3D 73 #endif 74 75 /*use TinyGL instead of OpenGL*/ 76 //#define GPAC_USE_TINYGL 77 78 /*use OpenGL ES instead of OpenGL*/ 79 #ifdef GPAC_CONFIG_DARWIN 80 #define GPAC_USE_OGL_ES 81 #endif 82 83 84 #if defined(_WIN32_WCE) 85 86 #ifndef GPAC_FIXED_POINT 87 #define GPAC_FIXED_POINT 88 #endif 89 90 /*use intel fixed-point*/ 91 //#define GPAC_USE_IGPP 92 /*use intel fixed-point with high precision*/ 93 //#define GPAC_USE_IGPP_HP 94 95 #if defined(GPAC_USE_IGPP) && defined(GPAC_USE_IGPP_HP) 96 #error "Only one of GPAC_USE_IGPP and GPAC_USE_IGPP_HP can be defined" 97 #endif 98 99 #if !defined(GPAC_DISABLE_3D) && !defined(GPAC_USE_TINYGL) && !defined(GPAC_USE_OGL_ES) 100 #define GPAC_USE_OGL_ES 101 #endif 102 103 #endif /*_WIN32_WCE*/ 104 105 106 107 #endif /*defined(WIN32) || defined(_WIN32_WCE)*/ 108 109 110 #if defined(__SYMBIAN32__) 111 112 #ifndef GPAC_FIXED_POINT 113 #define GPAC_FIXED_POINT 114 #endif 115 116 #endif 117 118 #if defined(_WIN32_WCE) 119 /*comment this line if you don't have a GLU32 version for Windows Mobile*/ 120 //#define GPAC_HAS_GLU 121 #elif defined(WIN32) 122 #define GPAC_HAS_GLU 123 #endif 124 125 126 /*disables SVG scene graph*/ 127 //#define GPAC_DISABLE_SVG 128 129 /*disables VRML/BIFS scene graphs*/ 130 //#define GPAC_DISABLE_VRML 131 132 /*disables X3D scene graphs*/ 133 //#define GPAC_DISABLE_X3D 134 135 /*disables MPEG-4 OD Framework - this only minimalize the set of OD features used, however all cannot be removed*/ 136 //#define GPAC_MINIMAL_ODF 137 138 /*disables BIFS coding*/ 139 //#define GPAC_DISABLE_BIFS 140 141 /*disables LASeR coder*/ 142 //#define GPAC_DISABLE_LASER 143 144 /*disables BIFS Engine support - TODO - merge DIMS and LASeR into BENG and rename it*/ 145 //#define GPAC_DISABLE_SENG 146 147 /*disables Cubic QTVR importing*/ 148 //#define GPAC_DISABLE_QTVR 149 150 /*disables AVILib support*/ 151 //#define GPAC_DISABLE_AVILIB 152 153 /*disables OGG support*/ 154 //#define GPAC_DISABLE_OGG 155 156 /*disables MPEG2 PS support*/ 157 //#define GPAC_DISABLE_MPEG2PS 158 159 /*disables MPEG2 TS demux support*/ 160 //#define GPAC_DISABLE_MPEG2TS 161 162 /*disables MPEG2 TS Mux support*/ 163 //#define GPAC_DISABLE_MPEG2TS_MUX 164 165 /*disables all media import functions*/ 166 //#define GPAC_DISABLE_MEDIA_IMPORT 167 168 /*disable all AV parsing functions*/ 169 //#define GPAC_DISABLE_AV_PARSERS 170 171 /*disables all media export functions*/ 172 //#define GPAC_DISABLE_MEDIA_EXPORT 173 174 /*disables SWF importer*/ 175 //#define GPAC_DISABLE_SWF_IMPORT 176 177 /*disables all media export functions*/ 178 //#define GPAC_DISABLE_SCENE_STATS 179 180 /*disables scene -> MP4 encoder*/ 181 //#define GPAC_DISABLE_SCENE_ENCODER 182 183 /*disables ISOM -> scene decoder*/ 184 //#define GPAC_DISABLE_LOADER_ISOM 185 186 /*disables BT/WRL/X3DV -> scene decoder*/ 187 //#define GPAC_DISABLE_LOADER_BT 188 189 /*disables XMTA/X3D -> scene decoder*/ 190 //#define GPAC_DISABLE_LOADER_XMT 191 192 /*disables mcrypt*/ 193 //#define GPAC_DISABLE_MCRYPT 194 195 /*disables all ISO FF*/ 196 //#define GPAC_DISABLE_ISOM 197 198 /*disables ISO FF hint tracks*/ 199 //#define GPAC_DISABLE_ISOM_HINTING 200 201 /*disables ISO FF writing*/ 202 //#define GPAC_DISABLE_ISOM_WRITE 203 204 /*disables ISO FF fragments*/ 205 //#define GPAC_DISABLE_ISOM_FRAGMENTS 206 207 /*disables scene graph textual dump*/ 208 //#define GPAC_DISABLE_SCENE_DUMP 209 210 /*disables OD graph textual dump*/ 211 //#define GPAC_DISABLE_OD_DUMP 212 213 /*disables OD graph textual dump*/ 214 //#define GPAC_DISABLE_ISOM_DUMP 215 216 /*disables IETF RTP/SDP/RTSP*/ 217 //#define GPAC_DISABLE_STREAMING 218 219 #endif /*_GF_CONFIG_H_*/