mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2024-12-22 13:45:21 +00:00
build: Use manual registration for gresource
As that is the recommendation for libraries having their own init function
This commit is contained in:
parent
545b29e2bf
commit
7598cb3eac
@ -97,6 +97,7 @@ libmks_gresources = gnome.compile_resources(
|
|||||||
'mks-resources',
|
'mks-resources',
|
||||||
'mks.gresource.xml',
|
'mks.gresource.xml',
|
||||||
c_name: 'mks',
|
c_name: 'mks',
|
||||||
|
extra_args: [ '--manual-register', ],
|
||||||
)
|
)
|
||||||
|
|
||||||
libmks_generated_sources = [
|
libmks_generated_sources = [
|
||||||
|
@ -41,8 +41,6 @@
|
|||||||
static void
|
static void
|
||||||
mks_init_gtypes (void)
|
mks_init_gtypes (void)
|
||||||
{
|
{
|
||||||
g_resources_register (mks_get_resource ());
|
|
||||||
|
|
||||||
/* First register GTypes for QEMU IPC */
|
/* First register GTypes for QEMU IPC */
|
||||||
g_type_ensure (MKS_QEMU_TYPE_AUDIO);
|
g_type_ensure (MKS_QEMU_TYPE_AUDIO);
|
||||||
g_type_ensure (MKS_QEMU_TYPE_AUDIO_IN_LISTENER);
|
g_type_ensure (MKS_QEMU_TYPE_AUDIO_IN_LISTENER);
|
||||||
@ -83,6 +81,7 @@ mks_init (void)
|
|||||||
|
|
||||||
if (g_once_init_enter (&initialized))
|
if (g_once_init_enter (&initialized))
|
||||||
{
|
{
|
||||||
|
mks_register_resource ();
|
||||||
mks_init_gtypes ();
|
mks_init_gtypes ();
|
||||||
g_once_init_leave (&initialized, TRUE);
|
g_once_init_leave (&initialized, TRUE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user