/* * build.h - this file is part of Geany, a fast and lightweight IDE * * Copyright 2006 Enrico Troeger * * 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. * * $Id$ */ #ifndef GEANY_BUILD_H #define GEANY_BUILD_H 1 typedef enum // Geany Build Options { GBO_COMPILE, GBO_BUILD, GBO_MAKE_ALL, GBO_MAKE_CUSTOM, GBO_MAKE_OBJECT, GBO_RUN } build_type; typedef struct { 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; } BuildInfo; extern BuildInfo build_info; void build_finalize(); GPid build_make_file(gint idx, gint build_opts); GPid build_compile_file(gint idx); GPid build_link_file(gint idx); GPid build_compile_tex_file(gint idx, gint mode); GPid build_view_tex_file(gint idx, gint mode); GPid build_run_cmd(gint idx); void build_menu_update(gint idx); 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); void on_build_tex_arguments_activate (GtkMenuItem *menuitem, gpointer user_data); #endif