~ubuntu-branches/debian/sid/link-monitor-applet/sid

« back to all changes in this revision

Viewing changes to jbsrc/lib/jb-compile-options.h

  • Committer: Bazaar Package Importer
  • Author(s): Adriaan Peeters
  • Date: 2008-03-30 22:26:13 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20080330222613-5aubcuo9mgg2n7st
Tags: upstream-3.0
ImportĀ upstreamĀ versionĀ 3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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          *value;
 
30
} JBStringDefine;
 
31
 
 
32
typedef struct
 
33
{
 
34
  GString       *cflags;
 
35
  GString       *cppflags;
 
36
  GString       *ldflags;
 
37
  GString       *gob2flags;
 
38
  GSList        *string_defines;
 
39
 
 
40
  char          *effective_cppflags;
 
41
} JBCompileOptions;
 
42
 
 
43
extern JBCompileOptions jb_compile_options;
 
44
 
 
45
void jb_compile_options_init (JBCompileOptions *self);
 
46
 
 
47
void jb_compile_options_add_cflags (JBCompileOptions *self, const char *cflags);
 
48
void jb_compile_options_add_cppflags (JBCompileOptions *self, const char *cppflags);
 
49
void jb_compile_options_add_ldflags (JBCompileOptions *self, const char *ldflags);
 
50
void jb_compile_options_add_gob2flags (JBCompileOptions *self, const char *gob2flags);
 
51
 
 
52
void jb_compile_options_add_package (JBCompileOptions *self, const char *name);
 
53
 
 
54
void jb_compile_options_add_string_defines (JBCompileOptions *self,
 
55
                                            const char *name,
 
56
                                            ...) G_GNUC_NULL_TERMINATED;
 
57
 
 
58
const char *jb_compile_options_get_effective_cppflags (JBCompileOptions *self);
 
59
 
 
60
#endif /* _JB_COMPILE_OPTIONS_H */