Commit 6d8c3938 authored by Felipe Borges's avatar Felipe Borges 👣 Committed by Felipe Borges

build: Add libovf-glib dependency

This library enables Boxes to handle .ova files.

See https://gitlab.gnome.org/felipeborges/libovf-glib
parent 4b9fa7ce
[submodule "subprojects/gtk-frdp"]
path = subprojects/gtk-frdp
url = https://gitlab.gnome.org/gnome/gtk-frdp
[submodule "subprojects/libovf-glib"]
path = subprojects/libovf-glib
url = https://gitlab.gnome.org/felipeborges/libovf-glib.git
......@@ -350,6 +350,19 @@
}
]
},
{
"name" : "govf",
"config-opts" : [
"--libdir=/app/lib"
],
"buildsystem" : "meson",
"sources" : [
{
"type" : "git",
"url" : "https://gitlab.gnome.org/felipeborges/libovf-glib.git"
}
]
},
{
"name" : "gnome-boxes",
"buildsystem" : "meson",
......
......@@ -23,6 +23,7 @@ pkglibdir = join_paths (get_option ('libdir'), meson.project_name ())
po_dir = join_paths (meson.source_root (), 'po')
data_dir = join_paths (get_option ('prefix'), get_option ('datadir'))
locale_dir = join_paths (get_option ('prefix'), get_option ('localedir'))
pkgdatadir = join_paths (data_dir, meson.project_name ())
conf = configuration_data ()
conf.set_quoted ('DISTRIBUTOR_NAME', get_option ('distributor_name'))
......
......@@ -149,6 +149,8 @@ endif
if get_option('flatpak')
vala_args += '--define=FLATPAK'
dependencies += dependency ('govf-0.1')
if get_option('rdp')
dependencies += dependency ('gtk-frdp-0.1')
endif
......@@ -172,7 +174,6 @@ else
endif
if get_option('rdp')
pkgdatadir = join_paths (data_dir, meson.project_name ())
gtk_frdp = subproject(
'gtk-frdp',
default_options: [
......@@ -183,8 +184,19 @@ else
dependencies += gtk_frdp.get_variable('gtk_frdp_vapi')
endif
libovf = subproject(
'libovf-glib',
default_options: [
'pkgdatadir=' + pkgdatadir,
'pkglibdir=' + pkglibdir
]
)
dependencies += libovf.get_variable('govf_vapi')
endif
executable ('gnome-boxes', vala_sources + resources,
include_directories: config_h_dir,
vala_args: vala_args,
......
Subproject commit 9b06d2476e4c04783dc3e9f01dbc8bc0ea6e1e77
[wrap-git]
directory=libovf-glib
url=https://gitlab.gnome.org/felipeborges/libovf-glib.git
revision=head
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