2015-11-16 15:23:23 +00:00
|
|
|
/*
|
|
|
|
* Copyright © 2015 Red Hat, Inc
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2016-07-29 18:27:49 +00:00
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2015-11-16 15:23:23 +00:00
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Alexander Larsson <alexl@redhat.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __BUILDER_OPTIONS_H__
|
|
|
|
#define __BUILDER_OPTIONS_H__
|
|
|
|
|
|
|
|
#include <json-glib/json-glib.h>
|
|
|
|
#include "builder-cache.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef struct BuilderOptions BuilderOptions;
|
|
|
|
|
2016-05-06 14:03:27 +00:00
|
|
|
#define BUILDER_TYPE_OPTIONS (builder_options_get_type ())
|
2015-11-16 15:23:23 +00:00
|
|
|
#define BUILDER_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BUILDER_TYPE_OPTIONS, BuilderOptions))
|
|
|
|
#define BUILDER_IS_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BUILDER_TYPE_OPTIONS))
|
|
|
|
|
|
|
|
/* Bump this if format changes in incompatible ways to force rebuild */
|
|
|
|
#define BUILDER_OPTION_CHECKSUM_VERSION "1"
|
|
|
|
|
|
|
|
GType builder_options_get_type (void);
|
|
|
|
|
2016-05-06 14:03:27 +00:00
|
|
|
const char *builder_options_get_cflags (BuilderOptions *self,
|
|
|
|
BuilderContext *context);
|
|
|
|
const char *builder_options_get_cxxflags (BuilderOptions *self,
|
|
|
|
BuilderContext *context);
|
2017-07-06 13:38:57 +00:00
|
|
|
const char *builder_options_get_cppflags (BuilderOptions *self,
|
|
|
|
BuilderContext *context);
|
2017-03-14 09:26:22 +00:00
|
|
|
const char *builder_options_get_ldflags (BuilderOptions *self,
|
|
|
|
BuilderContext *context);
|
2016-05-06 14:03:27 +00:00
|
|
|
const char *builder_options_get_prefix (BuilderOptions *self,
|
|
|
|
BuilderContext *context);
|
|
|
|
char ** builder_options_get_env (BuilderOptions *self,
|
|
|
|
BuilderContext *context);
|
|
|
|
char ** builder_options_get_build_args (BuilderOptions *self,
|
2016-08-22 15:23:32 +00:00
|
|
|
BuilderContext *context,
|
|
|
|
GError **error);
|
2016-05-06 14:03:27 +00:00
|
|
|
char ** builder_options_get_config_opts (BuilderOptions *self,
|
|
|
|
BuilderContext *context,
|
|
|
|
char **base_opts);
|
2017-09-22 15:07:22 +00:00
|
|
|
char ** builder_options_get_make_args (BuilderOptions *self,
|
|
|
|
BuilderContext *context,
|
|
|
|
char **base_args);
|
|
|
|
char ** builder_options_get_make_install_args (BuilderOptions *self,
|
|
|
|
BuilderContext *context,
|
|
|
|
char **base_args);
|
2016-05-06 14:03:27 +00:00
|
|
|
void builder_options_checksum (BuilderOptions *self,
|
|
|
|
BuilderCache *cache,
|
|
|
|
BuilderContext *context);
|
2016-01-08 17:01:35 +00:00
|
|
|
gboolean builder_options_get_no_debuginfo (BuilderOptions *self,
|
|
|
|
BuilderContext *context);
|
2017-10-05 15:59:24 +00:00
|
|
|
gboolean builder_options_get_no_debuginfo_compression (BuilderOptions *self,
|
|
|
|
BuilderContext *context);
|
2016-05-06 14:03:27 +00:00
|
|
|
gboolean builder_options_get_strip (BuilderOptions *self,
|
|
|
|
BuilderContext *context);
|
2015-11-16 15:23:23 +00:00
|
|
|
|
2016-05-06 14:03:27 +00:00
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BuilderOptions, g_object_unref)
|
2015-11-16 15:23:23 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __BUILDER_OPTIONS_H__ */
|