Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-06-11 04:39:12 +0400
committerJohn Crispin <blogic@openwrt.org>2014-06-11 04:39:12 +0400
commite130b08d98d59dae5d0c59210aeb7633c011b107 (patch)
treeb8128404ca88f884d9cfb822fbff47f5c0671fd7 /CMakeLists.txt
parent949f0d00bf12c90dcf4acc8479da184f1cd81673 (diff)
build a static version of libubox
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c339e02..681f8b1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,6 +22,8 @@ ENDIF()
SET(SOURCES avl.c avl-cmp.c blob.c blobmsg.c uloop.c usock.c ustream.c ustream-fd.c vlist.c utils.c safe_list.c runqueue.c md5.c kvlist.c)
ADD_LIBRARY(ubox SHARED ${SOURCES})
+ADD_LIBRARY(ubox-static STATIC ${SOURCES})
+SET_TARGET_PROPERTIES(ubox-static PROPERTIES OUTPUT_NAME ubox)
SET(LIBS)
CHECK_FUNCTION_EXISTS(clock_gettime HAVE_GETTIME)
@@ -36,7 +38,8 @@ FILE(GLOB headers *.h)
INSTALL(FILES ${headers}
DESTINATION include/libubox
)
-INSTALL(TARGETS ubox
+INSTALL(TARGETS ubox ubox-static
+ ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
)