|
rpm-build |
c487f7 |
/*
|
|
rpm-build |
c487f7 |
* Copyright © 2015 Red Hat, Inc
|
|
rpm-build |
c487f7 |
*
|
|
rpm-build |
c487f7 |
* This program is free software; you can redistribute it and/or
|
|
rpm-build |
c487f7 |
* modify it under the terms of the GNU Lesser General Public
|
|
rpm-build |
c487f7 |
* License as published by the Free Software Foundation; either
|
|
rpm-build |
c487f7 |
* version 2.1 of the License, or (at your option) any later version.
|
|
rpm-build |
c487f7 |
*
|
|
rpm-build |
c487f7 |
* This library is distributed in the hope that it will be useful,
|
|
rpm-build |
c487f7 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
rpm-build |
c487f7 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
rpm-build |
c487f7 |
* Lesser General Public License for more details.
|
|
rpm-build |
c487f7 |
*
|
|
rpm-build |
c487f7 |
* You should have received a copy of the GNU Lesser General Public
|
|
rpm-build |
c487f7 |
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
rpm-build |
c487f7 |
*
|
|
rpm-build |
c487f7 |
* Authors:
|
|
rpm-build |
c487f7 |
* Alexander Larsson <alexl@redhat.com>
|
|
rpm-build |
c487f7 |
*/
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
#ifndef __BUILDER_OPTIONS_H__
|
|
rpm-build |
c487f7 |
#define __BUILDER_OPTIONS_H__
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
#include <json-glib/json-glib.h>
|
|
rpm-build |
c487f7 |
#include "builder-cache.h"
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
G_BEGIN_DECLS
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
typedef struct BuilderOptions BuilderOptions;
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
#define BUILDER_TYPE_OPTIONS (builder_options_get_type ())
|
|
rpm-build |
c487f7 |
#define BUILDER_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BUILDER_TYPE_OPTIONS, BuilderOptions))
|
|
rpm-build |
c487f7 |
#define BUILDER_IS_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BUILDER_TYPE_OPTIONS))
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
/* Bump this if format changes in incompatible ways to force rebuild */
|
|
rpm-build |
c487f7 |
#define BUILDER_OPTION_CHECKSUM_VERSION "1"
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
GType builder_options_get_type (void);
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
const char *builder_options_get_cflags (BuilderOptions *self,
|
|
rpm-build |
c487f7 |
BuilderContext *context);
|
|
rpm-build |
c487f7 |
const char *builder_options_get_cxxflags (BuilderOptions *self,
|
|
rpm-build |
c487f7 |
BuilderContext *context);
|
|
rpm-build |
c487f7 |
const char *builder_options_get_cppflags (BuilderOptions *self,
|
|
rpm-build |
c487f7 |
BuilderContext *context);
|
|
rpm-build |
c487f7 |
const char *builder_options_get_ldflags (BuilderOptions *self,
|
|
rpm-build |
c487f7 |
BuilderContext *context);
|
|
rpm-build |
c487f7 |
const char *builder_options_get_prefix (BuilderOptions *self,
|
|
rpm-build |
c487f7 |
BuilderContext *context);
|
|
rpm-build |
c487f7 |
const char *builder_options_get_libdir (BuilderOptions *self,
|
|
rpm-build |
c487f7 |
BuilderContext *context);
|
|
rpm-build |
c487f7 |
char ** builder_options_get_env (BuilderOptions *self,
|
|
rpm-build |
c487f7 |
BuilderContext *context);
|
|
rpm-build |
c487f7 |
char ** builder_options_get_build_args (BuilderOptions *self,
|
|
rpm-build |
c487f7 |
BuilderContext *context,
|
|
rpm-build |
c487f7 |
GError **error);
|
|
rpm-build |
c487f7 |
char ** builder_options_get_test_args (BuilderOptions *self,
|
|
rpm-build |
c487f7 |
BuilderContext *context,
|
|
rpm-build |
c487f7 |
GError **error);
|
|
rpm-build |
c487f7 |
char ** builder_options_get_config_opts (BuilderOptions *self,
|
|
rpm-build |
c487f7 |
BuilderContext *context,
|
|
rpm-build |
c487f7 |
char **base_opts);
|
|
rpm-build |
c487f7 |
char ** builder_options_get_make_args (BuilderOptions *self,
|
|
rpm-build |
c487f7 |
BuilderContext *context,
|
|
rpm-build |
c487f7 |
char **base_args);
|
|
rpm-build |
c487f7 |
char ** builder_options_get_make_install_args (BuilderOptions *self,
|
|
rpm-build |
c487f7 |
BuilderContext *context,
|
|
rpm-build |
c487f7 |
char **base_args);
|
|
rpm-build |
c487f7 |
void builder_options_checksum (BuilderOptions *self,
|
|
rpm-build |
c487f7 |
BuilderCache *cache,
|
|
rpm-build |
c487f7 |
BuilderContext *context);
|
|
rpm-build |
c487f7 |
gboolean builder_options_get_no_debuginfo (BuilderOptions *self,
|
|
rpm-build |
c487f7 |
BuilderContext *context);
|
|
rpm-build |
c487f7 |
gboolean builder_options_get_no_debuginfo_compression (BuilderOptions *self,
|
|
rpm-build |
c487f7 |
BuilderContext *context);
|
|
rpm-build |
c487f7 |
gboolean builder_options_get_strip (BuilderOptions *self,
|
|
rpm-build |
c487f7 |
BuilderContext *context);
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BuilderOptions, g_object_unref)
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
G_END_DECLS
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
#endif /* __BUILDER_OPTIONS_H__ */
|