jbsrc/lib/src/core/jb-compile-options.h (2151B) - raw
1 /* 2 * JB, the Jean-Yves Lefort's Build System 3 * Copyright (C) 2008 Jean-Yves Lefort <jylefort@brutele.be> 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 3 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 along 16 * with this program; if not, write to the Free Software Foundation, Inc., 17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18 */ 19 20 #ifndef _JB_COMPILE_OPTIONS_H 21 #define _JB_COMPILE_OPTIONS_H 22 23 #include <stdarg.h> 24 #include <glib.h> 25 26 typedef struct 27 { 28 char *name; 29 char *cppflags; /* private, use accessor */ 30 } JBCompileOptions; 31 32 extern JBCompileOptions *jb_compile_options; 33 34 JBCompileOptions *jb_compile_options_new (const char *name); 35 36 void jb_compile_options_add_cflags (JBCompileOptions *self, const char *cflags); 37 const char *jb_compile_options_get_cflags (JBCompileOptions *self); 38 39 void jb_compile_options_add_cppflags (JBCompileOptions *self, const char *cppflags); 40 const char *jb_compile_options_get_cppflags (JBCompileOptions *self); 41 42 void jb_compile_options_add_ldflags (JBCompileOptions *self, const char *ldflags); 43 const char *jb_compile_options_get_ldflags (JBCompileOptions *self); 44 45 void jb_compile_options_add_libs (JBCompileOptions *self, const char *libs); 46 const char *jb_compile_options_get_libs (JBCompileOptions *self); 47 48 void jb_compile_options_add_gob2flags (JBCompileOptions *self, const char *gob2flags); 49 const char *jb_compile_options_get_gob2flags (JBCompileOptions *self); 50 51 void jb_compile_options_add_package (JBCompileOptions *self, const char *name); 52 53 void jb_compile_options_add_string_defines (JBCompileOptions *self, 54 const char *name, 55 ...) G_GNUC_NULL_TERMINATED; 56 57 #endif /* _JB_COMPILE_OPTIONS_H */