2005-11-22 12:26:26 +00:00
|
|
|
/*
|
|
|
|
* build.h - this file is part of Geany, a fast and lightweight IDE
|
|
|
|
*
|
2006-01-11 18:44:52 +00:00
|
|
|
* Copyright 2006 Enrico Troeger <enrico.troeger@uvena.de>
|
2005-11-22 12:26:26 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*
|
2006-01-03 12:39:25 +00:00
|
|
|
* $Id$
|
2005-11-22 12:26:26 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef GEANY_BUILD_H
|
|
|
|
#define GEANY_BUILD_H 1
|
|
|
|
|
2006-11-11 18:51:33 +00:00
|
|
|
typedef enum // Geany Build Options
|
2006-10-16 14:15:04 +00:00
|
|
|
{
|
2006-11-11 18:51:33 +00:00
|
|
|
GBO_COMPILE,
|
|
|
|
GBO_BUILD,
|
2006-10-16 14:15:04 +00:00
|
|
|
GBO_MAKE_ALL,
|
|
|
|
GBO_MAKE_CUSTOM,
|
2006-11-29 10:29:34 +00:00
|
|
|
GBO_MAKE_OBJECT
|
2006-11-11 18:51:33 +00:00
|
|
|
} build_type;
|
2006-10-16 14:15:04 +00:00
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
2006-11-11 18:51:33 +00:00
|
|
|
build_type type; // current action(one of the above enumeration)
|
|
|
|
GPid pid; // process id of the spawned process
|
|
|
|
gchar *dir;
|
|
|
|
guint file_type_id;
|
|
|
|
gchar *custom_target;
|
2006-10-16 14:41:57 +00:00
|
|
|
} BuildInfo;
|
2006-10-16 14:15:04 +00:00
|
|
|
|
2006-10-16 14:41:57 +00:00
|
|
|
extern BuildInfo build_info;
|
2006-10-16 14:15:04 +00:00
|
|
|
|
2006-11-30 15:42:52 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
GtkWidget *menu;
|
|
|
|
GtkWidget *item_compile;
|
|
|
|
GtkWidget *item_link;
|
|
|
|
GtkWidget *item_make_all;
|
|
|
|
GtkWidget *item_make_custom;
|
|
|
|
GtkWidget *item_make_object;
|
2006-12-08 15:50:10 +00:00
|
|
|
GtkWidget *item_next_error;
|
2006-11-30 15:42:52 +00:00
|
|
|
GtkWidget *item_exec;
|
|
|
|
GtkWidget *item_exec2;
|
|
|
|
GtkWidget *item_set_args;
|
|
|
|
} BuildMenuItems;
|
|
|
|
|
|
|
|
|
2006-10-16 14:15:04 +00:00
|
|
|
|
2006-10-16 14:41:57 +00:00
|
|
|
void build_finalize();
|
|
|
|
|
2006-10-16 14:15:04 +00:00
|
|
|
GPid build_make_file(gint idx, gint build_opts);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-04-27 18:06:35 +00:00
|
|
|
GPid build_compile_file(gint idx);
|
|
|
|
|
|
|
|
GPid build_link_file(gint idx);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-01-18 12:11:44 +00:00
|
|
|
GPid build_compile_tex_file(gint idx, gint mode);
|
|
|
|
|
|
|
|
GPid build_view_tex_file(gint idx, gint mode);
|
2006-01-11 18:44:52 +00:00
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
GPid build_run_cmd(gint idx);
|
|
|
|
|
2007-01-04 11:49:14 +00:00
|
|
|
gboolean build_parse_make_dir(const gchar *string, gchar **prefix);
|
2006-12-30 16:16:59 +00:00
|
|
|
|
2006-10-18 19:35:42 +00:00
|
|
|
void build_menu_update(gint idx);
|
|
|
|
|
2007-01-03 16:21:44 +00:00
|
|
|
BuildMenuItems *build_get_menu_items(gint filetype_idx);
|
2006-11-30 15:42:52 +00:00
|
|
|
|
2006-10-18 19:35:42 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
on_build_compile_activate (GtkMenuItem *menuitem,
|
|
|
|
gpointer user_data);
|
|
|
|
|
|
|
|
void
|
|
|
|
on_build_tex_activate (GtkMenuItem *menuitem,
|
|
|
|
gpointer user_data);
|
|
|
|
|
|
|
|
void
|
|
|
|
on_build_build_activate (GtkMenuItem *menuitem,
|
|
|
|
gpointer user_data);
|
|
|
|
|
|
|
|
void
|
|
|
|
on_build_make_activate (GtkMenuItem *menuitem,
|
|
|
|
gpointer user_data);
|
|
|
|
|
|
|
|
void
|
|
|
|
on_build_execute_activate (GtkMenuItem *menuitem,
|
|
|
|
gpointer user_data);
|
|
|
|
|
|
|
|
void
|
|
|
|
on_build_arguments_activate (GtkMenuItem *menuitem,
|
|
|
|
gpointer user_data);
|
|
|
|
|
2006-12-08 15:50:10 +00:00
|
|
|
void
|
|
|
|
on_build_next_error (GtkMenuItem *menuitem,
|
|
|
|
gpointer user_data);
|
2006-12-30 16:16:59 +00:00
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
#endif
|