[anjuta/newproject] Add read only flags to project property
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/newproject] Add read only flags to project property
- Date: Sun, 17 Oct 2010 08:38:13 +0000 (UTC)
commit 21742c6027a802f51189d71704fbc97458687bd3
Author: Sébastien Granjoux <seb sfo free fr>
Date: Sat Oct 16 11:30:40 2010 +0200
Add read only flags to project property
libanjuta/anjuta-project.h | 8 +++
plugins/am-project/ac-writer.c | 2 +-
plugins/am-project/ac-writer.h | 2 +-
plugins/am-project/am-project-private.h | 7 +++
plugins/am-project/am-project.c | 74 +++++------------------------
plugins/am-project/am-properties.c | 80 +++++++++++++++---------------
plugins/am-project/am-writer.c | 8 +++
plugins/am-project/am-writer.h | 2 +
8 files changed, 79 insertions(+), 104 deletions(-)
---
diff --git a/libanjuta/anjuta-project.h b/libanjuta/anjuta-project.h
index 1c2e6d9..a398acc 100644
--- a/libanjuta/anjuta-project.h
+++ b/libanjuta/anjuta-project.h
@@ -106,12 +106,20 @@ typedef enum
ANJUTA_PROJECT_PROPERTY_MAP
} AnjutaProjectValueType;
+typedef enum
+{
+ ANJUTA_PROJECT_PROPERTY_READ_ONLY = 1 << 0,
+ ANJUTA_PROJECT_PROPERTY_READ_WRITE = 1 << 1,
+} AnjutaProjectPropertyFlags;
+
+
typedef struct _AnjutaProjectProperty AnjutaProjectProperty;
struct _AnjutaProjectProperty
{
gchar *name;
AnjutaProjectValueType type;
+ AnjutaProjectPropertyFlags flags;
gchar *value;
AnjutaProjectProperty *native;
};
diff --git a/plugins/am-project/ac-writer.c b/plugins/am-project/ac-writer.c
index 7e9a5ff..557ebc9 100644
--- a/plugins/am-project/ac-writer.c
+++ b/plugins/am-project/ac-writer.c
@@ -121,7 +121,7 @@ skip_comment (AnjutaToken *token)
*---------------------------------------------------------------------------*/
gboolean
-amp_project_update_property (AmpProject *project, AnjutaProjectProperty *property)
+amp_project_update_ac_property (AmpProject *project, AnjutaProjectProperty *property)
{
AnjutaToken *token;
AnjutaToken *arg;
diff --git a/plugins/am-project/ac-writer.h b/plugins/am-project/ac-writer.h
index c136966..45be864 100644
--- a/plugins/am-project/ac-writer.h
+++ b/plugins/am-project/ac-writer.h
@@ -29,7 +29,7 @@
G_BEGIN_DECLS
-gboolean amp_project_update_property (AmpProject *project, AnjutaProjectProperty *property);
+gboolean amp_project_update_ac_property (AmpProject *project, AnjutaProjectProperty *property);
G_END_DECLS
diff --git a/plugins/am-project/am-project-private.h b/plugins/am-project/am-project-private.h
index 3ac1f6f..593d330 100644
--- a/plugins/am-project/am-project-private.h
+++ b/plugins/am-project/am-project-private.h
@@ -26,10 +26,17 @@
G_BEGIN_DECLS
+typedef enum {
+ AM_PROPERTY_IN_CONFIGURE = 1 << 0,
+ AM_PROPERTY_IN_MAKEFILE = 1 << 1
+} AmpPropertyFlag;
+
+
struct _AmpProperty {
AnjutaProjectProperty base;
gint token_type;
gint position;
+ AmpPropertyFlag flags;
AnjutaToken *token;
};
diff --git a/plugins/am-project/am-project.c b/plugins/am-project/am-project.c
index ec163b4..eae4325 100644
--- a/plugins/am-project/am-project.c
+++ b/plugins/am-project/am-project.c
@@ -2096,67 +2096,6 @@ amp_project_add_file (AmpProject *project, GFile *file, AnjutaTokenFile* token)
g_object_add_toggle_ref (G_OBJECT (token), remove_config_file, project);
}
-#if 0
-gchar *
-amp_project_get_property (AmpProject *project, AmpPropertyType type)
-{
- const gchar *value = NULL;
-
- if (project->property != NULL)
- {
- switch (type)
- {
- case AMP_PROPERTY_NAME:
- value = project->property->name;
- break;
- case AMP_PROPERTY_VERSION:
- value = project->property->version;
- break;
- case AMP_PROPERTY_BUG_REPORT:
- value = project->property->bug_report;
- break;
- case AMP_PROPERTY_TARNAME:
- value = project->property->tarname;
- if (value == NULL) return ac_init_default_tarname (project->property->name);
- break;
- case AMP_PROPERTY_URL:
- value = project->property->url;
- break;
- }
- }
-
- return value == NULL ? NULL : g_strdup (value);
-}
-
-gboolean
-amp_project_set_property (AmpProject *project, AmpPropertyType type, const gchar *value)
-{
- if (project->property == NULL)
- {
- project->property = amp_property_new (NULL, NULL);
- }
- switch (type)
- {
- case AMP_PROPERTY_NAME:
- STR_REPLACE (project->property->name, value);
- break;
- case AMP_PROPERTY_VERSION:
- STR_REPLACE (project->property->version, value);
- break;
- case AMP_PROPERTY_BUG_REPORT:
- STR_REPLACE (project->property->bug_report, value);
- break;
- case AMP_PROPERTY_TARNAME:
- STR_REPLACE (project->property->tarname, value);
- break;
- case AMP_PROPERTY_URL:
- STR_REPLACE (project->property->url, value);
- break;
- }
-
- return amp_project_update_property (project, type);
-}
-#endif
/* Implement IAnjutaProject
*---------------------------------------------------------------------------*/
@@ -2297,9 +2236,20 @@ static AnjutaProjectProperty *
iproject_set_property (IAnjutaProject *obj, AnjutaProjectNode *node, AnjutaProjectProperty *property, const gchar *value, GError **error)
{
AnjutaProjectProperty *new_prop;
+ gint flags;
new_prop = amp_node_property_set (node, property, value);
- amp_project_update_property (AMP_PROJECT (obj), new_prop);
+
+ flags = ((AmpProperty *)new_prop->native)->flags;
+
+ if (flags & AM_PROPERTY_IN_CONFIGURE)
+ {
+ amp_project_update_ac_property (AMP_PROJECT (obj), new_prop);
+ }
+ else if (flags & AM_PROPERTY_IN_MAKEFILE)
+ {
+ amp_project_update_am_property (AMP_PROJECT (obj), new_prop);
+ }
return new_prop;
}
diff --git a/plugins/am-project/am-properties.c b/plugins/am-project/am-properties.c
index 33114b3..06a5628 100644
--- a/plugins/am-project/am-properties.c
+++ b/plugins/am-project/am-properties.c
@@ -42,60 +42,60 @@
*---------------------------------------------------------------------------*/
static AmpProperty AmpProjectProperties[] = {
- {{N_("Name:"), ANJUTA_PROJECT_PROPERTY_STRING, NULL, NULL}, AC_TOKEN_AC_INIT, 0, NULL},
- {{N_("Version:"), ANJUTA_PROJECT_PROPERTY_STRING, NULL, NULL}, AC_TOKEN_AC_INIT, 1, NULL},
- {{N_("Bug report URL:"), ANJUTA_PROJECT_PROPERTY_STRING, NULL, NULL}, AC_TOKEN_AC_INIT, 2, NULL},
- {{N_("Package name:"), ANJUTA_PROJECT_PROPERTY_STRING, NULL, NULL}, AC_TOKEN_AC_INIT, 3, NULL},
- {{N_("URL:"), ANJUTA_PROJECT_PROPERTY_STRING, NULL, NULL}, AC_TOKEN_AC_INIT, 4, NULL},
- {{NULL, ANJUTA_PROJECT_PROPERTY_STRING, NULL, NULL}, AC_TOKEN_AC_INIT, 5, NULL}};
+ {{N_("Name:"), ANJUTA_PROJECT_PROPERTY_STRING, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AC_TOKEN_AC_INIT, 0, AM_PROPERTY_IN_CONFIGURE, NULL},
+ {{N_("Version:"), ANJUTA_PROJECT_PROPERTY_STRING, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AC_TOKEN_AC_INIT, 1, AM_PROPERTY_IN_CONFIGURE, NULL},
+ {{N_("Bug report URL:"), ANJUTA_PROJECT_PROPERTY_STRING, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AC_TOKEN_AC_INIT, 2, AM_PROPERTY_IN_CONFIGURE, NULL},
+ {{N_("Package name:"), ANJUTA_PROJECT_PROPERTY_STRING, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AC_TOKEN_AC_INIT, 3, AM_PROPERTY_IN_CONFIGURE, NULL},
+ {{N_("URL:"), ANJUTA_PROJECT_PROPERTY_STRING, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AC_TOKEN_AC_INIT, 4, AM_PROPERTY_IN_CONFIGURE, NULL},
+ {{NULL, ANJUTA_PROJECT_PROPERTY_STRING, 0, NULL, NULL}, AC_TOKEN_AC_INIT, 5, 0, NULL}};
static GList* AmpProjectPropertyList = NULL;
static AmpProperty AmpGroupProperties[] = {
- {{N_("Linker flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN__LDFLAGS, 0, NULL},
- {{N_("C preprocessor flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN__CPPFLAGS, 0, NULL},
- {{N_("C compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN__CFLAGS, 0, NULL},
- {{N_("C++ compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN__CXXFLAGS, 0, NULL},
- {{N_("Java Compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN__JAVACFLAGS, 0, NULL},
- {{N_("Fortan compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN__FCFLAGS, 0, NULL},
- {{N_("Objective C compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN__OBJCFLAGS, 0, NULL},
- {{N_("Lex/Flex flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN__LFLAGS, 0, NULL},
- {{N_("Yacc/Bison flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL},AM_TOKEN__YFLAGS, 0, NULL},
- {{N_("Install directories:"), ANJUTA_PROJECT_PROPERTY_MAP, NULL, NULL}, AM_TOKEN_DIR, 0, NULL},
- {{NULL, ANJUTA_PROJECT_PROPERTY_STRING, NULL, NULL}, 0, 0, NULL}};
+ {{N_("Linker flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN__LDFLAGS, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("C preprocessor flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN__CPPFLAGS, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("C compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN__CFLAGS, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("C++ compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN__CXXFLAGS, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Java Compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN__JAVACFLAGS, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Fortan compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN__FCFLAGS, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Objective C compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN__OBJCFLAGS, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Lex/Flex flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN__LFLAGS, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Yacc/Bison flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN__YFLAGS, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Install directories:"), ANJUTA_PROJECT_PROPERTY_MAP, ANJUTA_PROJECT_PROPERTY_READ_ONLY, NULL, NULL}, AM_TOKEN_DIR, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{NULL, ANJUTA_PROJECT_PROPERTY_STRING, 0, NULL, NULL}, 0, 0, 0, NULL}};
static GList* AmpGroupPropertyList = NULL;
static AmpProperty AmpTargetProperties[] = {
- {{N_("Do not install:"), ANJUTA_PROJECT_PROPERTY_BOOLEAN, NULL, NULL}, AM_TOKEN__PROGRAMS, 3, NULL},
- {{N_("Installation directory:"), ANJUTA_PROJECT_PROPERTY_STRING, NULL, NULL}, AM_TOKEN__PROGRAMS, 6, NULL},
- {{N_("Linker flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN_TARGET_LDFLAGS, 0, NULL},
- {{N_("Additional libraries:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN_TARGET_LIBADD, 0, NULL},
- {{N_("Additional objects:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN_TARGET_LDADD, 0, NULL},
- {{N_("C preprocessor flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN_TARGET_CPPFLAGS, 0, NULL},
- {{N_("C compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN_TARGET_CFLAGS, 0, NULL},
- {{N_("C++ compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN_TARGET_CXXFLAGS, 0, NULL},
- {{N_("Java Compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN_TARGET_JAVACFLAGS, 0, NULL},
- {{N_("Fortan compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN_TARGET_FCFLAGS, 0, NULL},
- {{N_("Objective C compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN_TARGET_OBJCFLAGS, 0, NULL},
- {{N_("Lex/Flex flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN_TARGET_LFLAGS, 0, NULL},
- {{N_("Yacc/Bison flags:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN_TARGET_YFLAGS, 0, NULL},
- {{N_("Additional dependencies:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, AM_TOKEN_TARGET_DEPENDENCIES, 0, NULL},
- {{N_("Include in distribution:"), ANJUTA_PROJECT_PROPERTY_BOOLEAN, NULL, NULL}, AM_TOKEN__PROGRAMS, 2, NULL},
- {{N_("Build for check only:"), ANJUTA_PROJECT_PROPERTY_BOOLEAN, NULL, NULL}, AM_TOKEN__PROGRAMS, 4, NULL},
- {{N_("Do not use prefix:"), ANJUTA_PROJECT_PROPERTY_BOOLEAN, NULL, NULL}, AM_TOKEN__PROGRAMS, 1, NULL},
- {{N_("Keep target path:"), ANJUTA_PROJECT_PROPERTY_BOOLEAN, NULL, NULL}, AM_TOKEN__PROGRAMS, 0, NULL},
- {{NULL, ANJUTA_PROJECT_PROPERTY_STRING, NULL, NULL}, 0, 0, NULL}};
+ {{N_("Do not install:"), ANJUTA_PROJECT_PROPERTY_BOOLEAN, ANJUTA_PROJECT_PROPERTY_READ_ONLY, NULL, NULL}, AM_TOKEN__PROGRAMS, 3, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Installation directory:"), ANJUTA_PROJECT_PROPERTY_STRING, ANJUTA_PROJECT_PROPERTY_READ_ONLY, NULL, NULL}, AM_TOKEN__PROGRAMS, 6, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Linker flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN_TARGET_LDFLAGS, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Additional libraries:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN_TARGET_LIBADD, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Additional objects:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN_TARGET_LDADD, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("C preprocessor flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN_TARGET_CPPFLAGS, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("C compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN_TARGET_CFLAGS, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("C++ compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN_TARGET_CXXFLAGS, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Java Compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN_TARGET_JAVACFLAGS,0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Fortan compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN_TARGET_FCFLAGS, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Objective C compiler flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN_TARGET_OBJCFLAGS,0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Lex/Flex flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN_TARGET_LFLAGS, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Yacc/Bison flags:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN_TARGET_YFLAGS, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Additional dependencies:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_WRITE, NULL, NULL}, AM_TOKEN_TARGET_DEPENDENCIES, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Include in distribution:"), ANJUTA_PROJECT_PROPERTY_BOOLEAN, ANJUTA_PROJECT_PROPERTY_READ_ONLY, NULL, NULL}, AM_TOKEN__PROGRAMS, 2, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Build for check only:"), ANJUTA_PROJECT_PROPERTY_BOOLEAN, ANJUTA_PROJECT_PROPERTY_READ_ONLY, NULL, NULL}, AM_TOKEN__PROGRAMS, 4, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Do not use prefix:"), ANJUTA_PROJECT_PROPERTY_BOOLEAN, ANJUTA_PROJECT_PROPERTY_READ_ONLY, NULL, NULL}, AM_TOKEN__PROGRAMS, 1, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Keep target path:"), ANJUTA_PROJECT_PROPERTY_BOOLEAN, ANJUTA_PROJECT_PROPERTY_READ_ONLY, NULL, NULL}, AM_TOKEN__PROGRAMS, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{NULL, ANJUTA_PROJECT_PROPERTY_STRING, 0, NULL, NULL}, 0, 0, 0, NULL}};
static GList* AmpTargetPropertyList = NULL;
static AmpProperty AmpManTargetProperties[] = {
- {{N_("Additional dependencies:"), ANJUTA_PROJECT_PROPERTY_LIST, NULL, NULL}, 0, 0, NULL},
- {{N_("Do not use prefix:"), ANJUTA_PROJECT_PROPERTY_BOOLEAN, NULL, NULL}, AM_TOKEN__PROGRAMS, 1, NULL},
- {{N_("Manual section:"), ANJUTA_PROJECT_PROPERTY_STRING, NULL, NULL}, AM_TOKEN__PROGRAMS, 5, NULL},
- {{NULL, ANJUTA_PROJECT_PROPERTY_STRING, NULL, NULL}, 0, 0, NULL}};
+ {{N_("Additional dependencies:"), ANJUTA_PROJECT_PROPERTY_LIST, ANJUTA_PROJECT_PROPERTY_READ_ONLY, NULL, NULL}, 0, 0, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Do not use prefix:"), ANJUTA_PROJECT_PROPERTY_BOOLEAN, ANJUTA_PROJECT_PROPERTY_READ_ONLY, NULL, NULL}, AM_TOKEN__PROGRAMS, 1, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{N_("Manual section:"), ANJUTA_PROJECT_PROPERTY_STRING, ANJUTA_PROJECT_PROPERTY_READ_ONLY, NULL, NULL}, AM_TOKEN__PROGRAMS, 5, AM_PROPERTY_IN_MAKEFILE, NULL},
+ {{NULL, ANJUTA_PROJECT_PROPERTY_STRING, 0, NULL, NULL}, 0, 0, 0, NULL}};
static GList* AmpManTargetPropertyList = NULL;
diff --git a/plugins/am-project/am-writer.c b/plugins/am-project/am-writer.c
index 09e587f..c1ee823 100644
--- a/plugins/am-project/am-writer.c
+++ b/plugins/am-project/am-writer.c
@@ -816,3 +816,11 @@ amp_source_delete_token (AmpProject *project, AnjutaAmSourceNode *source, GErro
return TRUE;
}
+
+/* Properties
+ *---------------------------------------------------------------------------*/
+
+gboolean amp_project_update_am_property (AmpProject *project, AnjutaProjectProperty *property)
+{
+ return TRUE;
+}
diff --git a/plugins/am-project/am-writer.h b/plugins/am-project/am-writer.h
index 4af47a7..5bdbf9d 100644
--- a/plugins/am-project/am-writer.h
+++ b/plugins/am-project/am-writer.h
@@ -29,6 +29,8 @@
G_BEGIN_DECLS
+gboolean amp_project_update_am_property (AmpProject *project, AnjutaProjectProperty *property);
+
gboolean amp_group_create_token (AmpProject *project, AnjutaAmGroupNode *group, GError **error);
gboolean amp_group_delete_token (AmpProject *project, AnjutaAmGroupNode *target, GError **error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]