run-program: Remove trailing spaces
[anjuta.git] / plugins / build-basic-autotools / build.h
blob44b20c1ad84851d8d72516ab631e8a81d555d7e5
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 /* Build function type */
39 typedef BuildContext* (*BuildFunc) (BasicAutotoolsPlugin *plugin, GFile *file,
40 IAnjutaBuilderCallback callback, gpointer user_data,
41 GError **err);
43 BuildContext* build_build_file_or_dir (BasicAutotoolsPlugin *plugin,
44 GFile *file,
45 IAnjutaBuilderCallback callback,
46 gpointer user_data,
47 GError **err);
49 BuildContext* build_is_file_built (BasicAutotoolsPlugin *plugin,
50 GFile *file,
51 IAnjutaBuilderCallback callback,
52 gpointer user_data,
53 GError **err);
55 BuildContext* build_install_dir (BasicAutotoolsPlugin *plugin,
56 GFile *dir,
57 IAnjutaBuilderCallback callback,
58 gpointer user_data,
59 GError **err);
61 BuildContext* build_clean_dir (BasicAutotoolsPlugin *plugin,
62 GFile *file,
63 GError **err);
65 BuildContext* build_check_dir (BasicAutotoolsPlugin *plugin,
66 GFile *dir,
67 IAnjutaBuilderCallback callback,
68 gpointer user_data,
69 GError **err);
71 BuildContext* build_distclean (BasicAutotoolsPlugin *plugin);
73 BuildContext* build_tarball (BasicAutotoolsPlugin *plugin);
75 BuildContext* build_compile_file (BasicAutotoolsPlugin *plugin,
76 GFile *file);
78 BuildContext* build_configure_dir (BasicAutotoolsPlugin *plugin,
79 GFile *dir,
80 const gchar *args,
81 BuildFunc func,
82 GFile *file,
83 IAnjutaBuilderCallback callback,
84 gpointer user_data,
85 GError **error);
87 BuildContext* build_generate_dir (BasicAutotoolsPlugin *plugin,
88 GFile *dir,
89 const gchar *args,
90 BuildFunc func,
91 GFile *file,
92 IAnjutaBuilderCallback callback,
93 gpointer user_data,
94 GError **error);
96 void build_project_configured (GObject *sender,
97 IAnjutaBuilderHandle handle,
98 GError *error,
99 gpointer user_data);
101 BuildContext* build_configure_and_build (BasicAutotoolsPlugin *plugin,
102 BuildFunc func,
103 GFile *file,
104 IAnjutaBuilderCallback callback,
105 gpointer user_data,
106 GError **err);
108 BuildContext* build_configure_dialog (BasicAutotoolsPlugin *plugin,
109 BuildFunc func, GFile *file,
110 IAnjutaBuilderCallback callback,
111 gpointer user_data,
112 GError **error);
115 GList* build_list_configuration (BasicAutotoolsPlugin *plugin);
116 const gchar* build_get_uri_configuration (BasicAutotoolsPlugin *plugin, const gchar *uri);
124 #endif