Skip to content
Snippets Groups Projects
Commit b0a010b1 authored by Andreas Zwinkau's avatar Andreas Zwinkau Committed by Richard van der Hoff
Browse files

Support building as a static library


Signed-off-by: default avatarAndreas Zwinkau <qznc@web.de>
parent 793cec02
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,10 @@ CC = gcc
EMCC = emcc
AFL_CC = afl-gcc
AFL_CXX = afl-g++
AR = ar
RELEASE_TARGET := $(BUILD_DIR)/libolm.so.$(VERSION)
STATIC_RELEASE_TARGET := $(BUILD_DIR)/libolm.a
DEBUG_TARGET := $(BUILD_DIR)/libolm_debug.so.$(VERSION)
JS_TARGET := javascript/olm.js
......@@ -120,6 +122,12 @@ $(DEBUG_TARGET): $(DEBUG_OBJECTS)
$(OUTPUT_OPTION) $(DEBUG_OBJECTS)
ln -sf libolm_debug.so.$(VERSION) $(BUILD_DIR)/libolm_debug.so.$(MAJOR)
static: $(STATIC_RELEASE_TARGET)
.PHONY: static
$(STATIC_RELEASE_TARGET): $(RELEASE_OBJECTS)
$(AR) rcs $@ $^
js: $(JS_TARGET)
.PHONY: js
......
......@@ -46,6 +46,12 @@ To build the Xcode workspace for Objective-C bindings, run:
pod install
open OLMKit.xcworkspace
To build olm as a static library (which still needs libstdc++ dynamically) run:
.. code:: bash
make static
Release process
---------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment