summaryrefslogtreecommitdiff
path: root/Libraries/LibTLS
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@serenityos.org>2020-05-06 18:40:06 +0300
committerAndreas Kling <kling@serenityos.org>2020-05-14 20:15:18 +0200
commit450a2a0f9ce2443bc06445ee018c9860d8cd5fc8 (patch)
treec124a612ef259b764855af5e33c39e0d09ad4df2 /Libraries/LibTLS
parent49727ffee424d8c0038ce18b91b0bf0ff33b1a4d (diff)
downloadserenity-450a2a0f9ce2443bc06445ee018c9860d8cd5fc8.zip
Build: Switch to CMake :^)
Closes https://github.com/SerenityOS/serenity/issues/2080
Diffstat (limited to 'Libraries/LibTLS')
-rw-r--r--Libraries/LibTLS/CMakeLists.txt11
-rw-r--r--Libraries/LibTLS/Makefile21
2 files changed, 11 insertions, 21 deletions
diff --git a/Libraries/LibTLS/CMakeLists.txt b/Libraries/LibTLS/CMakeLists.txt
new file mode 100644
index 0000000000..e4194ac456
--- /dev/null
+++ b/Libraries/LibTLS/CMakeLists.txt
@@ -0,0 +1,11 @@
+set(SOURCES
+ ClientHandshake.cpp
+ Exchange.cpp
+ Handshake.cpp
+ Record.cpp
+ Socket.cpp
+ TLSv12.cpp
+)
+
+serenity_lib(LibTLS tls)
+target_link_libraries(LibTLS LibCore LibCrypto)
diff --git a/Libraries/LibTLS/Makefile b/Libraries/LibTLS/Makefile
deleted file mode 100644
index f138bd517d..0000000000
--- a/Libraries/LibTLS/Makefile
+++ /dev/null
@@ -1,21 +0,0 @@
-LIBTLS_OBJS = TLSv12.o \
- ClientHandshake.o \
- Exchange.o \
- Handshake.o \
- Record.o \
- Socket.o
-
-OBJS = $(LIBTLS_OBJS)
-
-LIBRARY = libtls.a
-
-install:
- for dir in .; do \
- mkdir -p $(SERENITY_BASE_DIR)/Root/usr/include/LibTLS/$$dir; \
- cp $$dir/*.h $(SERENITY_BASE_DIR)/Root/usr/include/LibTLS/$$dir/; \
- done
- cp $(LIBRARY) $(SERENITY_BASE_DIR)/Root/usr/lib/
-
-include ../../Makefile.common
-
-include ../../Makefile.subdir