From: Daniel Golle Date: Tue, 20 May 2014 00:43:51 +0000 (+0200) Subject: libubi-utils: export static library X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=850cdb429b36c993649d05ea928776f86912597b;p=oweals%2Ffstools.git libubi-utils: export static library uboot-envtools will use parts of libubi-utils in the near future to allow native r/w support of ubi-volume backed environments. Install libubi-utils.a as well as the headers needed so uboot-envtools can link libubi-utils. Signed-off-by: Daniel Golle --- diff --git a/CMakeLists.txt b/CMakeLists.txt index c1e5a09..5211bcd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,15 @@ ADD_LIBRARY(ubi-utils STATIC libubi/libubi.c libubi/libubi-tiny.c libubi/ubiutils-common.c) +INSTALL(TARGETS ubi-utils ARCHIVE DESTINATION lib) + +SET_TARGET_PROPERTIES(ubi-utils PROPERTIES COMPILE_FLAGS + "-ffunction-sections -fdata-sections") + +INSTALL(FILES libubi/libubi-tiny.h libubi/libubi.h libubi/ubi-media.h + libubi/ubi-user.h libubi/ubi-media.h + DESTINATION include +) ADD_EXECUTABLE(mount_root mount_root.c) TARGET_LINK_LIBRARIES(mount_root fstools)