1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-16 15:32:43 +01:00

C API: move to src/lib*/c/

This commit is contained in:
Yorick van Pelt 2023-08-07 17:16:58 +02:00 committed by José Luis Lafuente
parent df9401eb4e
commit e642bbc2a7
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A
22 changed files with 78 additions and 5 deletions

17
src/libstore/c/local.mk Normal file
View file

@ -0,0 +1,17 @@
libraries += libstorec
libstorec_NAME = libnixstorec
libstorec_DIR := $(d)
libstorec_SOURCES := $(wildcard $(d)/*.cc)
libstorec_LIBS = libutil libstore libutilc
libstorec_LDFLAGS += -pthread
libstorec_CXXFLAGS += -I src/libutil -I src/libstore -I src/libutil/c
$(eval $(call install-file-in, $(d)/nix-store-c.pc, $(libdir)/pkgconfig, 0644))
libstorec_FORCE_INSTALL := 1

View file

@ -0,0 +1,9 @@
prefix=@prefix@
libdir=@libdir@
includedir=@includedir@
Name: Nix
Description: Nix Package Manager - C API
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lnixstorec -lnixutilc
Cflags: -I${includedir}/nix