summaryrefslogtreecommitdiff
path: root/builder/builder-options.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2015-11-16 16:23:23 +0100
committerAlexander Larsson <alexl@redhat.com>2015-11-25 15:26:32 +0100
commitb2790349d6c5d257c3691df37eb2c46ea9fb821c (patch)
treefdca2e8ecb9a51f3cdeed695568bae8fd85672a7 /builder/builder-options.h
parent7e1a645f990c29296878ed7e3253f0151dab1c1c (diff)
downloadxdg-app-b2790349d6c5d257c3691df37eb2c46ea9fb821c.tar.gz
Add xdg-app-builder
This is a tool that makes it easy to build applications and their dependecies by automating the configure && make && make install steps.
Diffstat (limited to 'builder/builder-options.h')
-rw-r--r--builder/builder-options.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/builder/builder-options.h b/builder/builder-options.h
new file mode 100644
index 0000000..e4a1c0b
--- /dev/null
+++ b/builder/builder-options.h
@@ -0,0 +1,57 @@
+/*
+ * 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
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * 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 BuilderContext BuilderContext;
+typedef struct BuilderOptions BuilderOptions;
+
+#define BUILDER_TYPE_OPTIONS (builder_options_get_type())
+#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);
+
+const char *builder_options_get_cflags (BuilderOptions *self,
+ BuilderContext *context);
+const char *builder_options_get_cxxflags (BuilderOptions *self,
+ BuilderContext *context);
+char ** builder_options_get_env (BuilderOptions *self,
+ BuilderContext *context);
+char ** builder_options_get_build_args (BuilderOptions *self,
+ BuilderContext *context);
+void builder_options_checksum (BuilderOptions *self,
+ BuilderCache *cache,
+ BuilderContext *context);
+
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(BuilderOptions, g_object_unref)
+
+G_END_DECLS
+
+#endif /* __BUILDER_OPTIONS_H__ */