Fix Spanish translation header
[anjuta.git] / plugins / build-basic-autotools / build.h
blobee48ec026f02dd3a0cf5e004b21e65b4b8f1a08e
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 build.h
4 Copyright (C) 2000 Naba Kumar
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (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
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef __BUILD_H__
22 #define __BUILD_H__
24 #include <glib.h>
27 #include <libanjuta/interfaces/ianjuta-builder.h>
29 #include "plugin.h"
32 GFile * build_file_from_file (BasicAutotoolsPlugin *plugin, GFile *file, gchar **target);
33 GFile * build_object_from_file (BasicAutotoolsPlugin *plugin, GFile *file);
34 GFile * normalize_project_file (GFile *file, GFile *root);
35 gboolean directory_has_makefile (GFile *dir);
36 gboolean directory_has_makefile_am (BasicAutotoolsPlugin *bb_plugin, GFile *dir);
38 gchar * get_configuration_relative_target (BasicAutotoolsPlugin *plugin);
39 void set_configuration_relative_target (BasicAutotoolsPlugin *plugin, const gchar* relative_target);
41 /* Build function type */
42 typedef BuildContext* (*BuildFunc) (BasicAutotoolsPlugin *plugin, GFile *file,
43 IAnjutaBuilderCallback callback, gpointer user_data,
44 GError **err);
46 BuildContext* build_build_file_or_dir (BasicAutotoolsPlugin *plugin,
47 GFile *file,
48 IAnjutaBuilderCallback callback,
49 gpointer user_data,
50 GError **err);
52 BuildContext* build_is_file_built (BasicAutotoolsPlugin *plugin,
53 GFile *file,
54 IAnjutaBuilderCallback callback,
55 gpointer user_data,
56 GError **err);
58 BuildContext* build_install_dir (BasicAutotoolsPlugin *plugin,
59 GFile *dir,
60 IAnjutaBuilderCallback callback,
61 gpointer user_data,
62 GError **err);
64 BuildContext* build_clean_dir (BasicAutotoolsPlugin *plugin,
65 GFile *file,
66 GError **err);
68 BuildContext* build_check_dir (BasicAutotoolsPlugin *plugin,
69 GFile *dir,
70 IAnjutaBuilderCallback callback,
71 gpointer user_data,
72 GError **err);
74 BuildContext* build_distclean (BasicAutotoolsPlugin *plugin);
76 BuildContext* build_tarball (BasicAutotoolsPlugin *plugin);
78 BuildContext* build_compile_file (BasicAutotoolsPlugin *plugin,
79 GFile *file);
81 BuildContext* build_configure_dir (BasicAutotoolsPlugin *plugin,
82 GFile *dir,
83 const gchar *args,
84 BuildFunc func,
85 GFile *file,
86 IAnjutaBuilderCallback callback,
87 gpointer user_data,
88 GError **error);
90 BuildContext* build_generate_dir (BasicAutotoolsPlugin *plugin,
91 GFile *dir,
92 const gchar *args,
93 BuildFunc func,
94 GFile *file,
95 IAnjutaBuilderCallback callback,
96 gpointer user_data,
97 GError **error);
99 void build_project_configured (GObject *sender,
100 IAnjutaBuilderHandle handle,
101 GError *error,
102 gpointer user_data);
104 BuildContext* build_configure_and_build (BasicAutotoolsPlugin *plugin,
105 BuildFunc func,
106 GFile *file,
107 IAnjutaBuilderCallback callback,
108 gpointer user_data,
109 GError **err);
111 BuildContext* build_configure_dialog (BasicAutotoolsPlugin *plugin,
112 BuildFunc func, GFile *file,
113 IAnjutaBuilderCallback callback,
114 gpointer user_data,
115 GError **error);
118 GList* build_list_configuration (BasicAutotoolsPlugin *plugin);
119 const gchar* build_get_uri_configuration (BasicAutotoolsPlugin *plugin, const gchar *uri);
127 #endif