1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4; coding: utf-8 -*- */
2 /* am-project-private.h
4 * Copyright (C) 2009 Sébastien Granjoux
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
22 #ifndef _AM_PROJECT_PRIVATE_H_
23 #define _AM_PROJECT_PRIVATE_H_
25 #include "am-project.h"
26 #include "command-queue.h"
27 #include <libanjuta/interfaces/ianjuta-language.h>
32 AM_PROPERTY_IN_CONFIGURE
= 1 << 0,
33 AM_PROPERTY_IN_MAKEFILE
= 1 << 1,
34 AM_PROPERTY_DIRECTORY
= 1 << 2, /* Directory property (having dir suffix) */
35 AM_PROPERTY_DISABLE_FOLLOWING
= 1 << 3, /* Disable following property if true */
36 AM_PROPERTY_PREFIX_OBJECT
= 1 << 4, /* Target compilation flags, need a specific object */
37 AM_PROPERTY_MANDATORY_VALUE
= 1 << 5, /* Value is set by default when the node is created */
42 AnjutaProjectProperty base
;
46 struct _AmpPropertyInfo
{
47 AnjutaProjectPropertyInfo base
;
51 AmpPropertyFlag flags
;
53 AnjutaProjectPropertyInfo
*link
; /* Link to a boolean property disabling this one */
59 /* GFile corresponding to root configure */
61 AnjutaTokenFile
*configure_file
;
62 AnjutaToken
*configure_token
;
65 GFileMonitor
*monitor
;
67 /* Project file list */
70 /* shortcut hash tables, mapping id -> GNode from the tree above */
72 GHashTable
*configs
; /* Config file from configure_file */
75 GHashTable
*ac_variables
;
77 /* Number of not loaded node */
81 AnjutaTokenStyle
*ac_space_list
;
82 AnjutaTokenStyle
*am_space_list
;
83 AnjutaTokenStyle
*arg_list
;
86 PmCommandQueue
*queue
;
88 /* Language Manager */
89 IAnjutaLanguage
*lang_manager
;
92 typedef struct _AmpNodeInfo AmpNodeInfo
;
95 AnjutaProjectNodeInfo base
;
96 AnjutaTokenType token
;
104 #endif /* _AM_PROJECT_PRIVATE_H_ */