BUILD: Do not build libboinccrypt unless we are also building either the server or client software.

We should not require projects to build/install openssl for Android just so use libboinc and libboincapi.
This commit is contained in:
Rom Walton 2015-01-19 16:50:27 -05:00
parent f47da314b8
commit 9536e1d161
2 changed files with 10 additions and 3 deletions

View File

@ -1050,6 +1050,8 @@ AM_CONDITIONAL(ENABLE_CLIENT, [test "${enable_client}" = yes])
AM_CONDITIONAL(ENABLE_MANAGER, [ test "x${ac_cv_have_wxwidgets}" = xyes -a "${enable_manager}" = yes ])
AM_CONDITIONAL(ENABLE_LIBRARIES, [test "${enable_libraries}" = yes])
AM_CONDITIONAL(ENABLE_BOINCZIP, [test "${enable_boinczip}" = yes])
AM_CONDITIONAL(ENABLE_BOINCCRYPT, [test "${enable_server}" = yes])
AM_CONDITIONAL(ENABLE_BOINCCRYPT, [test "${enable_client}" = yes])
AM_CONDITIONAL(INSTALL_HEADERS, [test "${enable_install_headers}" = yes])
AM_CONDITIONAL(HAVE_CUDA_LIB, [test "${enable_client}" = yes -a -f ./coprocs/CUDA/posix/${boinc_platform}/libcudart.so])

View File

@ -168,19 +168,21 @@ noinst_HEADERS = \
synch.h \
unix_util.h
lib_LTLIBRARIES = libboinc.la libboinc_crypt.la
lib_LTLIBRARIES = libboinc.la
libboinc_la_SOURCES = $(generic_sources) $(mac_sources) $(win_sources)
libboinc_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
libboinc_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
libboinc_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -static -version-number $(LIBBOINC_VERSION)
libboinc_la_LIBADD =
if ENABLE_BOINCCRYPT
lib_LTLIBRARIES += libboinc_crypt.la
libboinc_crypt_la_SOURCES = crypt.cpp
libboinc_crypt_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) $(SSL_CFLAGS)
libboinc_crypt_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) $(SSL_CXXFLAGS)
libboinc_crypt_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -static -version-number $(LIBBOINC_VERSION)
libboinc_crypt_la_LIBADD =
endif
if ENABLE_FCGI
lib_LTLIBRARIES += libboinc_fcgi.la
@ -206,7 +208,10 @@ endif
if BUILD_STATIC_LIBS
all_local = $(LIBBOINC_STATIC) $(LIBBOINC_CRYPT_STATIC)
all_local = $(LIBBOINC_STATIC)
if ENABLE_BOINCCRYPT
all_local += $(LIBBOINC_CRYPT_STATIC)
endif
if ENABLE_FCGI
all_local += $(LIBBOINC_FCGI_STATIC)
endif