summaryrefslogtreecommitdiff
path: root/lib/liblp
diff options
context:
space:
mode:
authorJacek Kryszyn <j.kryszyn@samsung.com>2023-07-28 16:25:55 +0200
committerJacek Kryszyn <j.kryszyn@samsung.com>2023-07-28 16:25:55 +0200
commitbb3025f25201e59d0a7ba7d8bec2578480ed0689 (patch)
tree4e16d90a0f94efc9b3f8970d825dfaa718e45c8c /lib/liblp
parent3241cf203afc344273e5f6cc3d5ab40500717b5d (diff)
downloaddynpart-tools-bb3025f25201e59d0a7ba7d8bec2578480ed0689.tar.gz
dynpart-tools-bb3025f25201e59d0a7ba7d8bec2578480ed0689.tar.bz2
dynpart-tools-bb3025f25201e59d0a7ba7d8bec2578480ed0689.zip
lpmake is built using cmake. libraries added as subdirectories. static build
Diffstat (limited to 'lib/liblp')
-rw-r--r--lib/liblp/CMakeLists.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/liblp/CMakeLists.txt b/lib/liblp/CMakeLists.txt
new file mode 100644
index 0000000..088a563
--- /dev/null
+++ b/lib/liblp/CMakeLists.txt
@@ -0,0 +1,30 @@
+cmake_minimum_required(VERSION 3.22)
+
+project(liblp VERSION 1.0.0 DESCRIPTION "liblp")
+
+add_library(liblp STATIC
+ builder.cpp
+ images.cpp
+ partition_opener.cpp
+ property_fetcher.cpp
+ reader.cpp
+ utility.cpp
+ writer.cpp
+)
+
+target_include_directories(liblp PUBLIC
+ ${CMAKE_CURRENT_SOURCE_DIR}/../include
+)
+
+set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION})
+
+set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR})
+
+target_compile_definitions(liblp PRIVATE -D_FILE_OFFSET_BITS=64)
+
+target_compile_options(liblp PRIVATE -std=c++17)
+
+#cd ../liblp
+#$CC -std=c++17 -I../include -D_FILE_OFFSET_BITS=64 ${CFLAGS} -c builder.cpp images.cpp partition_opener.cpp property_fetcher.cpp reader.cpp utility.cpp writer.cpp
+#$AR rcs ../lib/liblp.a *.o
+#rm -r *.o