2005-11-22 12:26:26 +00:00
|
|
|
/*
|
|
|
|
* build.h - this file is part of Geany, a fast and lightweight IDE
|
|
|
|
*
|
2008-01-06 18:11:57 +00:00
|
|
|
* Copyright 2005-2008 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
|
|
|
* Copyright 2006-2008 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
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
|
|
|
|
|
2008-02-27 13:17:29 +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
|
2008-05-16 14:35:41 +00:00
|
|
|
} GeanyBuildType;
|
2006-10-16 14:15:04 +00:00
|
|
|
|
2008-05-16 14:35:41 +00:00
|
|
|
typedef struct GeanyBuildInfo
|
2006-10-16 14:15:04 +00:00
|
|
|
{
|
2008-05-16 14:35:41 +00:00
|
|
|
GeanyBuildType 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;
|
|
|
|
} GeanyBuildInfo;
|
|
|
|
|
|
|
|
extern GeanyBuildInfo build_info;
|
2006-10-16 14:15:04 +00:00
|
|
|
|
2007-09-17 11:16:48 +00:00
|
|
|
|
|
|
|
typedef struct BuildMenuItems
|
2006-11-30 15:42:52 +00:00
|
|
|
{
|
|
|
|
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
|
|
|
|
2008-02-20 11:24:23 +00:00
|
|
|
void build_init(void);
|
2007-08-23 11:34:06 +00:00
|
|
|
|
2008-02-20 11:24:23 +00:00
|
|
|
void build_finalize(void);
|
2006-10-16 14:41:57 +00:00
|
|
|
|
2007-08-23 11:34:06 +00:00
|
|
|
|
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
|
|
|
|
2008-06-15 13:35:48 +00:00
|
|
|
void build_menu_update(GeanyDocument *doc);
|
2006-10-18 19:35:42 +00:00
|
|
|
|
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
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
#endif
|