diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2013-06-19 17:11:52 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2013-06-19 17:11:52 +0000 |
| commit | 7e5ceaf484253d00e17cb8579e802f12c1d06236 (patch) | |
| tree | 37e47003fb0d223f65f21fc3b2a698c255aec34e /qpid/cpp/src/ssl.cmake | |
| parent | 706675d432369def04b47ab935a17adec390e202 (diff) | |
| download | qpid-python-7e5ceaf484253d00e17cb8579e802f12c1d06236.tar.gz | |
QPID-4938: No longer build acl or ssl support as plugins
(also remove final references to dead watchdog plugin)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1494697 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/ssl.cmake')
| -rw-r--r-- | qpid/cpp/src/ssl.cmake | 123 |
1 files changed, 0 insertions, 123 deletions
diff --git a/qpid/cpp/src/ssl.cmake b/qpid/cpp/src/ssl.cmake deleted file mode 100644 index 609cd151b4..0000000000 --- a/qpid/cpp/src/ssl.cmake +++ /dev/null @@ -1,123 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# -# SSL/TLS CMake fragment, to be included in CMakeLists.txt -# - -# Optional SSL/TLS support. Requires Netscape Portable Runtime on Linux. - -include(FindPkgConfig) - -# According to some cmake docs this is not a reliable way to detect -# pkg-configed libraries, but it's no worse than what we did under -# autotools -pkg_check_modules(NSS nss) - -set (ssl_default ${ssl_force}) -if (CMAKE_SYSTEM_NAME STREQUAL Windows) - set (ssl_default ON) -else (CMAKE_SYSTEM_NAME STREQUAL Windows) - if (NSS_FOUND) - set (ssl_default ON) - endif (NSS_FOUND) -endif (CMAKE_SYSTEM_NAME STREQUAL Windows) - -option(BUILD_SSL "Build with support for SSL" ${ssl_default}) -if (BUILD_SSL) - if (CMAKE_SYSTEM_NAME STREQUAL Windows) - set (sslclient_windows_SOURCES qpid/client/windows/SslConnector.cpp) - set (sslbroker_windows_SOURCES qpid/broker/windows/SslProtocolFactory.cpp) - set (sslcommon_windows_SOURCES - qpid/sys/windows/SslAsynchIO.cpp - ) - set (windows_ssl_libs Secur32.lib) - set (windows_ssl_server_libs Crypt32.lib) - else (CMAKE_SYSTEM_NAME STREQUAL Windows) - - if (NOT NSS_FOUND) - message(FATAL_ERROR "nss/nspr not found, required for ssl support") - endif (NOT NSS_FOUND) - - foreach(f ${NSS_CFLAGS}) - set (NSS_COMPILE_FLAGS "${NSS_COMPILE_FLAGS} ${f}") - endforeach(f) - - foreach(f ${NSS_LDFLAGS}) - set (NSS_LINK_FLAGS "${NSS_LINK_FLAGS} ${f}") - endforeach(f) - - set (sslcommon_SOURCES - qpid/sys/ssl/check.h - qpid/sys/ssl/check.cpp - qpid/sys/ssl/util.h - qpid/sys/ssl/util.cpp - qpid/sys/ssl/SslSocket.h - qpid/sys/ssl/SslSocket.cpp - ) - - add_library (sslcommon SHARED ${sslcommon_SOURCES}) - foreach(f ${NSS_LIBRARIES}) - target_link_libraries (sslcommon ${f}) - endforeach(f) - target_link_libraries (sslcommon qpidcommon) - set_target_properties (sslcommon PROPERTIES - VERSION ${sslcommon_version} - SOVERSION ${sslcommon_version_major} - COMPILE_FLAGS ${NSS_COMPILE_FLAGS} - LINK_FLAGS -L${NSS_LIBDIR}) - - install (TARGETS sslcommon - DESTINATION ${QPID_INSTALL_LIBDIR} - COMPONENT ${QPID_COMPONENT_COMMON}) - install_pdb (sslcommon ${QPID_COMPONENT_COMMON}) - - set (ssl_SOURCES - qpid/sys/SslPlugin.cpp - ) - add_library (ssl MODULE ${ssl_SOURCES}) - target_link_libraries (ssl qpidbroker sslcommon ${Boost_PROGRAM_OPTIONS_LIBRARY}) - set_target_properties (ssl PROPERTIES - PREFIX "" - COMPILE_FLAGS "${NSS_COMPILE_FLAGS}" - COMPILE_DEFINITIONS _IN_QPID_BROKER) - if (CMAKE_COMPILER_IS_GNUCXX) - set_target_properties(ssl PROPERTIES - LINK_FLAGS "${GCC_CATCH_UNDEFINED}") - endif (CMAKE_COMPILER_IS_GNUCXX) - - install (TARGETS ssl - DESTINATION ${QPIDD_MODULE_DIR} - COMPONENT ${QPID_COMPONENT_BROKER}) - - add_library (sslconnector MODULE qpid/client/SslConnector.cpp qpid/messaging/amqp/SslTransport.cpp) - target_link_libraries (sslconnector qpidclient sslcommon) - set_target_properties (sslconnector PROPERTIES - PREFIX "" - COMPILE_FLAGS ${NSS_COMPILE_FLAGS}) - if (CMAKE_COMPILER_IS_GNUCXX) - set_target_properties(sslconnector PROPERTIES - LINK_FLAGS "${GCC_CATCH_UNDEFINED}") - endif (CMAKE_COMPILER_IS_GNUCXX) - - install (TARGETS sslconnector - DESTINATION ${QPIDC_MODULE_DIR} - COMPONENT ${QPID_COMPONENT_CLIENT}) - endif (CMAKE_SYSTEM_NAME STREQUAL Windows) - -endif (BUILD_SSL) |
