1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
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
27 #include <libanjuta/interfaces/ianjuta-builder.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
,
46 BuildContext
* build_build_file_or_dir (BasicAutotoolsPlugin
*plugin
,
48 IAnjutaBuilderCallback callback
,
52 BuildContext
* build_is_file_built (BasicAutotoolsPlugin
*plugin
,
54 IAnjutaBuilderCallback callback
,
58 BuildContext
* build_install_dir (BasicAutotoolsPlugin
*plugin
,
60 IAnjutaBuilderCallback callback
,
64 BuildContext
* build_clean_dir (BasicAutotoolsPlugin
*plugin
,
68 BuildContext
* build_check_dir (BasicAutotoolsPlugin
*plugin
,
70 IAnjutaBuilderCallback callback
,
74 BuildContext
* build_distclean (BasicAutotoolsPlugin
*plugin
);
76 BuildContext
* build_tarball (BasicAutotoolsPlugin
*plugin
);
78 BuildContext
* build_compile_file (BasicAutotoolsPlugin
*plugin
,
81 BuildContext
* build_configure_dir (BasicAutotoolsPlugin
*plugin
,
86 IAnjutaBuilderCallback callback
,
90 BuildContext
* build_generate_dir (BasicAutotoolsPlugin
*plugin
,
95 IAnjutaBuilderCallback callback
,
99 void build_project_configured (GObject
*sender
,
100 IAnjutaBuilderHandle handle
,
104 BuildContext
* build_configure_and_build (BasicAutotoolsPlugin
*plugin
,
107 IAnjutaBuilderCallback callback
,
111 BuildContext
* build_configure_dialog (BasicAutotoolsPlugin
*plugin
,
112 BuildFunc func
, GFile
*file
,
113 IAnjutaBuilderCallback callback
,
118 GList
* build_list_configuration (BasicAutotoolsPlugin
*plugin
);
119 const gchar
* build_get_uri_configuration (BasicAutotoolsPlugin
*plugin
, const gchar
*uri
);