Skip to content

Commit ed967a2

Browse files
vladandrewunikraft-bot
authored andcommitted
sqlite: Export headers to other libraries
Other external libraries such as Python might want to use the sqlite C API. In this patch we make the headers available to other libraries. Further, we add a fix to register the library only if the config option is selected Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@upb.ro> Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@gmail.com> Approved-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro> Tested-by: Unikraft CI <monkey@unikraft.io> GitHub-Pull-Request: #3
1 parent 9f18f7c commit ed967a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile.uk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
################################################################################
3636
# App registration
3737
################################################################################
38-
$(eval $(call addlib,libsqlite))
38+
$(eval $(call addlib,libsqlite,$(CONFIG_LIBSQLITE)))
3939

4040
################################################################################
4141
# Sources
@@ -56,7 +56,8 @@ LIBSQLITE_SRC = $(LIBSQLITE_ORIGIN)/$(LIBSQLITE_BASENAME)
5656
# Library includes
5757
################################################################################
5858
LIBSQLITE_CINCLUDES-y += -I$(LIBSQLITE_BASE)/include
59-
LIBSQLITE_CINCLUDES += -I$(LIBSQLITE_SRC)
59+
CINCLUDES-$(CONFIG_LIBSQLITE) += -I$(LIBSQLITE_SRC)
60+
CXXINCLUDES-$(CONFIG_LIBSQLITE) += -I$(LIBSQLITE_SRC)
6061

6162
################################################################################
6263
# Global flags

0 commit comments

Comments
 (0)