Kaynağa Gözat

Add build of shared lib

Stefan Profanter 7 yıl önce
ebeveyn
işleme
d1d1d08e8b
1 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  1. 7 0
      tools/travis/travis_linux_script.sh

+ 7 - 0
tools/travis/travis_linux_script.sh

@@ -127,6 +127,13 @@ if [ -z ${DOCKER+x} ]; then
 		cd .. && rm build -rf
 		echo -en 'travis_fold:end:script.build.example\\r'
 
+		echo "Compile as shared lib version" && echo -en 'travis_fold:start:script.build.shared_libs\\r'
+		mkdir -p build && cd build
+		cmake -DBUILD_SHARED_LIBS=ON -DUA_ENABLE_AMALGAMATION=ON -DUA_BUILD_EXAMPLES=ON ..
+		make -j
+		cd .. && rm build -rf
+		echo -en 'travis_fold:end:script.build.shared_libs\\r'
+
 		echo "Compile multithreaded version" && echo -en 'travis_fold:start:script.build.multithread\\r'
 		mkdir -p build && cd build
 		cmake -DUA_ENABLE_MULTITHREADING=ON -DUA_BUILD_EXAMPLESERVER=ON -DUA_BUILD_EXAMPLES=ON ..