1 /**************************************************************************** 2 * 3 * Copyright (C) 2003-2009 "Sandro Santilli" <strk@keybit.net> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 * 19 ***************************************************************************/ 20 21 /* Set this to the default include path */ 22 #define DEFAULT_FLAGS "-I/usr/share/actionscript -I/usr/local/share/actionscript -I." 23 24 /** 25 * Use a value of 0 to skip the preprocessing phase (unreccommended) 26 */ 27 void makeswf_set_dopreprocess(int value); 28 29 /** 30 * Set SWF version to the given number 31 * !! Make sure you'll save your SWF with that version !! 32 */ 33 void makeswf_set_swfversion(int value); 34 35 /** 36 * Add CPP flags to the default ones 37 */ 38 void makeswf_append_cpparg(const char* buf); 39 40 /** 41 * Return an SWFAction by compiling code in the given sourcefile. 42 * 43 * Note that the source code can use the preprocessor, unless 44 * preprocessing phase is skipped by a call to makeswf_set_dopreprocess(0). 45 * 46 * If the preprocessing step is not skipped, preprocessed file is wrote 47 * into the provided 'ppfile', or <filename>.pp if NULL. 48 * 49 * The debug parameter, if set, enables SWFAction's debugmode. 50 */ 51 SWFAction makeswf_compile_source(const char* filename, const char* ppfile, int debug); 52 53