Let's enable shared_lib mode.
Change-Id: I5d41bfd852f94b83dcd28bf29ea5ad2322f118bb
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
sed -i "s|ExternalProject_Add(\\(.*\\)$$|ExternalProject_add(\\1\\n\\tDOWNLOAD_COMMAND echo\\n\\tUPDATE_DISCONNECTED 1\\n|" tensorflow/contrib/cmake/external/*.cmake
- cd ${topdir}/build && cmake ../tensorflow/contrib/cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib -DINCLUDE_INSTALL_DIR=/usr/include -Dtensorflow_ENABLE_SSL_SUPPORT=OFF -Dsystemlib_ZLIB=ON
+ cd ${topdir}/build && cmake ../tensorflow/contrib/cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib -DINCLUDE_INSTALL_DIR=/usr/include -Dtensorflow_ENABLE_SSL_SUPPORT=OFF -Dsystemlib_ZLIB=ON -Dtensorflow_BUILD_SHARED_LIB=ON
printf 'PWD=`pwd`\n' > temp.sh
printf 'for F in *.cmake ; do\n' >> temp.sh
# Seems some arguments of %%cmake is causing errors.
# -Dtensorflow_ENABLE_SSL_SUPPORT=OFF Cut the dependency to Go (not available in Tizen)
# Use -DCMAKE_INSTALL_LIBDIR=lib because of discrepency in png install path.
-cmake ../tensorflow/contrib/cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib -DCMAKE_INSTALL_LIBDIR=lib -DINCLUDE_INSTALL_DIR=/usr/include -Dtensorflow_ENABLE_SSL_SUPPORT=OFF -Dsystemlib_PROTOBUF=ON -Dsystemlib_ZLIB=ON -Dsystemlib_GRPC=ON
+cmake ../tensorflow/contrib/cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib -DCMAKE_INSTALL_LIBDIR=lib -DINCLUDE_INSTALL_DIR=/usr/include -Dtensorflow_ENABLE_SSL_SUPPORT=OFF -Dsystemlib_PROTOBUF=ON -Dsystemlib_ZLIB=ON -Dsystemlib_GRPC=ON -Dtensorflow_BUILD_SHARED_LIB=ON
# QEMU unsupported syscall error is being writtin into .cmake files
pushd CMakeFiles/pywrap_tensorflow_internal.dir