mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 18:07:57 +00:00
lib: Generate pkgconfig file
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
0ef4f01066
commit
14cad21eb5
1
.gitignore
vendored
1
.gitignore
vendored
@ -25,3 +25,4 @@ arch/x86/syscalls.S
|
|||||||
pie/pie.lds.S
|
pie/pie.lds.S
|
||||||
include/config.h
|
include/config.h
|
||||||
protobuf-desc-gen.h
|
protobuf-desc-gen.h
|
||||||
|
criu.pc
|
||||||
|
6
Makefile
6
Makefile
@ -266,6 +266,12 @@ install: $(PROGRAM) install-man
|
|||||||
$(Q) install -m 644 scripts/sd/criu.service $(DESTDIR)$(SYSTEMDUNITDIR)
|
$(Q) install -m 644 scripts/sd/criu.service $(DESTDIR)$(SYSTEMDUNITDIR)
|
||||||
$(Q) mkdir -p $(DESTDIR)$(LOGROTATEDIR)
|
$(Q) mkdir -p $(DESTDIR)$(LOGROTATEDIR)
|
||||||
$(Q) install -m 644 scripts/logrotate.d/criu-service $(DESTDIR)$(LOGROTATEDIR)
|
$(Q) install -m 644 scripts/logrotate.d/criu-service $(DESTDIR)$(LOGROTATEDIR)
|
||||||
|
$(Q) sed -e 's,@version@,$(GITID),' \
|
||||||
|
-e 's,@libdir@,$(LIBDIR),' \
|
||||||
|
-e 's,@includedir@,$(dir $(INCLUDEDIR)),' \
|
||||||
|
lib/criu.pc.in > criu.pc
|
||||||
|
$(Q) mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig
|
||||||
|
$(Q) install -m 644 criu.pc $(DESTDIR)$(LIBDIR)/pkgconfig
|
||||||
|
|
||||||
install-man:
|
install-man:
|
||||||
$(Q) $(MAKE) -C Documentation install
|
$(Q) $(MAKE) -C Documentation install
|
||||||
|
8
lib/criu.pc.in
Normal file
8
lib/criu.pc.in
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
libdir=@libdir@
|
||||||
|
includedir=@includedir@
|
||||||
|
|
||||||
|
Name: CRIU
|
||||||
|
Description: RPC library for userspace checkpoint and restore
|
||||||
|
Version: @version@
|
||||||
|
Libs: -L${libdir} -lcriu
|
||||||
|
Cflags: -I${includedir}
|
Loading…
x
Reference in New Issue
Block a user