Commit 564b9a34 authored by Ole Aamot's avatar Ole Aamot 💬

Add Meson build files to build libgnomeinternetradiolocator library

parent f80a4e88
project('gnome-internet-radio-locator', 'c',
version : '1.0.3',
license : 'GPL')
add_project_arguments('-DDEBUG=0', language : 'c')
as_version = meson.project_version() # set in project() below
conf = configuration_data()
conf.set_quoted('VERSION', as_version)
conf.set_quoted('GNOME_INTERNET_RADIO_LOCATOR_DATADIR', join_paths(get_option('prefix'), get_option('datadir')))
configure_file(output : 'config.h', configuration : conf)
glib_dep = dependency('glib-2.0')
gtk3_dep = dependency('gtk+-3.0')
gst_dep = dependency('gstreamer-player-1.0')
champlain_gtk_dep = dependency('champlain-gtk-0.12')
champlain_dep = dependency('champlain-0.12')
geocode_dep = dependency('geocode-glib-1.0')
libxml_dep = dependency('libxml-2.0')
cc = meson.get_compiler('c')
m_dep = cc.find_library('m', required : false)
inc = include_directories('src')
subdir('src')
pkg_mod = import('pkgconfig')
pkg_mod.generate(libraries : gnomeinternetradiolocatorlib,
version : '1.0.3',
name : 'libgnomeinternetradiolocator',
filebase : 'gnomeinternetradiolocator',
description : 'A Library for Free Internet Radio')
......@@ -26,10 +26,7 @@
#include <locale.h>
#include <sys/stat.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <gtk/gtk.h>
#include <gtk/gtkcombobox.h>
#include <glib/gstdio.h>
......
......@@ -24,6 +24,7 @@
#ifndef GNOME_INTERNET_RADIO_LOCATOR_H
#define GNOME_INTERNET_RADIO_LOCATOR_H 1
#include <config.h>
#include <glib.h>
typedef enum {
......
as_version = meson.project_version() # set in project() below
ver_arr = as_version.split('.')
as_major_version = ver_arr[0]
as_minor_version = ver_arr[1]
as_micro_version = ver_arr[2]
conf = configuration_data()
conf.set_quoted('VERSION', as_version)
conf.set_quoted('GNOME_INTERNET_RADIO_LOCATOR_DATADIR', join_paths(get_option('prefix'), get_option('datadir')))
configure_file(output : 'config.h', configuration : conf)
gnomeinternetradiolocator_sources = ['gnome-internet-radio-locator.c', 'gnome-internet-radio-locator-gui.c', 'gnome-internet-radio-locator-listener.c', 'gnome-internet-radio-locator-markers.c', 'gnome-internet-radio-locator-player.c', 'gnome-internet-radio-locator-program.c', 'gnome-internet-radio-locator-radius.c', 'gnome-internet-radio-locator-runners.c', 'gnome-internet-radio-locator-station.c', 'gnome-internet-radio-locator-stations-map.c', 'gnome-internet-radio-locator-streams.c', 'gnome-internet-radio-locator-tz.c', 'gnome-internet-radio-locator.h', 'gnome-internet-radio-locator-gui.h', 'gnome-internet-radio-locator-listener.h', 'gnome-internet-radio-locator-markers.h', 'gnome-internet-radio-locator-player.h', 'gnome-internet-radio-locator-program.h', 'gnome-internet-radio-locator-radius.h', 'gnome-internet-radio-locator-runners.h', 'gnome-internet-radio-locator-station.h', 'gnome-internet-radio-locator-stations-map.h', 'gnome-internet-radio-locator-streams.h', 'gnome-internet-radio-locator-tz.h' ]
gnomeinternetradiolocatorlib = shared_library('gnomeinternetradiolocator',
gnomeinternetradiolocator_sources,
dependencies : [glib_dep, gtk3_dep, gst_dep, champlain_gtk_dep, champlain_dep, geocode_dep, libxml_dep, m_dep],
install : true)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment