Explorar el Código

Add build of shared lib

Stefan Profanter hace 7 años
padre
commit
d1d1d08e8b
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  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 ..