From nobody Wed May 14 03:05:47 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1530288167306691.553236545835; Fri, 29 Jun 2018 09:02:47 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2DE487F6CF; Fri, 29 Jun 2018 16:02:46 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E970E89F0B; Fri, 29 Jun 2018 16:02:45 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 9738F18037F5; Fri, 29 Jun 2018 16:02:45 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w5TG1XiC010101 for ; Fri, 29 Jun 2018 12:01:33 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7147F2026D6A; Fri, 29 Jun 2018 16:01:33 +0000 (UTC) Received: from inaba.usersys.redhat.com (unknown [10.43.2.44]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 165FB2026D68 for ; Fri, 29 Jun 2018 16:01:32 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Fri, 29 Jun 2018 18:01:17 +0200 Message-Id: <20180629160122.19827-11-abologna@redhat.com> In-Reply-To: <20180629160122.19827-1-abologna@redhat.com> References: <20180629160122.19827-1-abologna@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-loop: libvir-list@redhat.com Subject: [libvirt] [dbus PATCH 10/15] src: Build libutil.la separately X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 29 Jun 2018 16:02:46 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" We use these utility functions both in the daemon and for test programs, so create a new convenience library that we can compile once and include in both places. Signed-off-by: Andrea Bolognani --- src/Makefile.am | 11 ++++++++++- tests/Makefile.am | 4 +++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 1b73c8d..493cf81 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -18,12 +18,20 @@ AM_LDFLAGS =3D \ $(PID_LDFLAGS) \ $(NULL) =20 +noinst_LTLIBRARIES =3D \ + libutil.la \ + $(NULL) + +libutil_la_SOURCES =3D \ + util.c \ + util.h \ + $(NULL) + bin_PROGRAMS =3D libvirt-dbus =20 libvirt_dbus_SOURCES =3D \ main.c \ connect.c connect.h \ - util.c util.h \ domain.c domain.h \ events.c events.h \ gdbus.c gdbus.h \ @@ -35,6 +43,7 @@ libvirt_dbus_SOURCES =3D \ storagevol.c storagevol.h \ $(NULL) libvirt_dbus_LDADD =3D \ + libutil.la \ $(GIO2_LIBS) \ $(GLIB2_LIBS) \ $(LIBVIRT_LIBS) \ diff --git a/tests/Makefile.am b/tests/Makefile.am index 03d51aa..2991689 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -18,7 +18,8 @@ check_PROGRAMS =3D \ test_util =20 test_util_SOURCES =3D \ - test_util.c $(top_srcdir)/src/util.c + test_util.c \ + $(NULL) test_util_CFLAGS =3D \ $(GIO2_CFLAGS) \ $(GLIB2_CFLAGS) \ @@ -28,6 +29,7 @@ test_util_LDFLAGS =3D \ $(GLIB2_LDFLAGS) \ $(LIBVIRT_LDFLAGS) test_util_LDADD =3D \ + $(top_builddir)/src/libutil.la \ $(GIO2_LIBS) \ $(GLIB2_LIBS) \ $(LIBVIRT_LIBS) --=20 2.17.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list