The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
767 B

#include <girepository.h>
#include "meson-sample.h"
gint
main (gint argc,
gchar *argv[])
{
GError * error = NULL;
GOptionContext * ctx = g_option_context_new (NULL);
g_option_context_add_group (ctx, g_irepository_get_option_group ());
if (!g_option_context_parse (ctx, &argc, &argv, &error)) {
g_print ("sample: %s\n", error->message);
g_option_context_free (ctx);
if (error) {
g_error_free (error);
}
return 1;
}
MesonSample * i = meson_sample_new ();
MesonDep1 * dep1 = meson_dep1_new ();
MesonDep2 * dep2 = meson_dep2_new ("Hello, meson/c!");
meson_sample_print_message (i, dep1, dep2);
g_object_unref (i);
g_object_unref (dep1);
g_object_unref (dep2);
g_option_context_free (ctx);
return 0;
}