Skip to content

Commit

Permalink
libbareos: moved sources back into core/src/lib
Browse files Browse the repository at this point in the history
  • Loading branch information
franku committed Sep 11, 2018
1 parent 7d7f4c2 commit c27b27f
Show file tree
Hide file tree
Showing 86 changed files with 57 additions and 80 deletions.
58 changes: 57 additions & 1 deletion core/src/lib/CMakeLists.txt
Expand Up @@ -33,8 +33,64 @@ set(INCLUDE_FILES ../include/baconfig.h ../include/bareos.h

INSTALL(FILES ${INCLUDE_FILES} DESTINATION ${includedir})

add_subdirectory(bareos)
include_directories(
${OPENSSL_INCLUDE_DIRS}
${PTHREAD_INCLUDE_DIRS}
${FASTLZ_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIRS}
${ACL_INCLUDE_DIRS}
${LZO2_INCLUDE_DIRS}
${CAP_INCLUDE_DIRS}
${WRAP_INCLUDE_DIRS})

set (BAREOS_SRCS address_conf.cc alist.cc attr.cc attribs.cc base64.cc
berrno.cc bget_msg.cc binflate.cc bnet_server_tcp.cc bnet.cc bpipe.cc
breg.cc bregex.cc bsnprintf.cc bsock.cc bsock_tcp.cc
bsys.cc btime.cc btimers.cc cbuf.cc compression.cc
connection_pool.cc cram-md5.cc crypto.cc crypto_cache.cc crypto_gnutls.cc
crypto_none.cc crypto_nss.cc crypto_openssl.cc crypto_wrap.cc daemon.cc
devlock.cc dlist.cc edit.cc fnmatch.cc guid_to_name.cc hmac.cc htable.cc
jcr.cc json.cc lockmgr.cc md5.cc mem_pool.cc message.cc mntent_cache.cc
output_formatter.cc ordered_cbuf.cc passphrase.cc path_list.cc plugins.cc
bpoll.cc priv.cc
queue.cc rblist.cc runscript.cc rwlock.cc scan.cc scsi_crypto.cc scsi_lli.cc
sellist.cc serial.cc sha1.cc signal.cc smartall.cc tls.cc
tls_gnutls.cc tls_conf_base.cc tls_conf_psk.cc tls_conf_cert.cc tls_openssl.cc
tls_openssl_crl.cc tls_openssl_private.cc tree.cc util.cc var.cc watchdog.cc
workq.cc)

IF(HAVE_WIN32)
LIST(APPEND BAREOS_SRCS
../win32/compat/compat.cc
../win32/compat/glob.cc
../win32/compat/print.cc
../win32/compat/winapi.cc)
ELSE()
LIST(APPEND BAREOS_SRCS
scsi_tapealert.cc)
ENDIF()

set (BAREOSCFG_SRCS ini.cc lex.cc parse_bsr.cc res.cc parse_conf.cc
res.cc qualified_resource_name_type_converter.cc)
LIST(APPEND BAREOS_SRCS ${BAREOSCFG_SRCS})

add_library(bareos SHARED ${BAREOS_SRCS})

target_link_libraries(bareos
${OPENSSL_LIBRARIES} ${PTHREAD_LIBRARIES} ${FASTLZ_LIBRARIES} ${ZLIB_LIBRARIES}
${ACL_LIBRARIES} ${LZO2_LIBRARIES} ${CAP_LIBRARIES} ${WRAP_LIBRARIES}
${CAM_LIBRARIES} ${WINDOWS_LIBRARIES} ${JANSSON_LIBRARIES})

INSTALL(TARGETS bareos DESTINATION ${libdir})

set_target_properties(bareos PROPERTIES VERSION "${VERSION}"
SOVERSION "${SOVERSION}")

IF(HAVE_WIN32)
set_target_properties(bareos PROPERTIES DEFINE_SYMBOL "BUILDING_DLL")
ENDIF()

IF(NOT HAVE_WIN32 AND GTEST_FOUND)
add_subdirectory(unittests)
ENDIF()

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
79 changes: 0 additions & 79 deletions core/src/lib/bareos/CMakeLists.txt

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c27b27f

Please sign in to comment.