blob: ee7894730a6aa7d393835384752552199b262ff5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
#
# 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.
#
project(qpidc_store)
#set (CMAKE_VERBOSE_MAKEFILE ON) # for debugging
include_directories( ${Boost_INCLUDE_DIR} )
include_directories( ${CMAKE_CURRENT_SOURCE_DIR} )
include_directories( ${CMAKE_HOME_DIRECTORY}/include )
set (store_SOURCES
MessageStorePlugin.cpp
)
add_library (store MODULE ${store_SOURCES})
target_link_libraries (store qpidbroker qpidcommon)
if (CMAKE_COMPILER_IS_GNUCXX)
set (GCC_CATCH_UNDEFINED "-Wl,--no-undefined")
# gcc on SunOS uses native linker whose "-z defs" is too fussy
if (CMAKE_SYSTEM_NAME STREQUAL SunOS)
set (GCC_CATCH_UNDEFINED "")
endif (CMAKE_SYSTEM_NAME STREQUAL SunOS)
set_target_properties (store PROPERTIES
PREFIX ""
COMPILE_DEFINITIONS _IN_QPID_BROKER
LINK_FLAGS "${GCC_CATCH_UNDEFINED}")
endif (CMAKE_COMPILER_IS_GNUCXX)
if (CMAKE_SYSTEM_NAME STREQUAL Windows)
if (MSVC)
add_definitions(
/D "NOMINMAX"
/D "WIN32_LEAN_AND_MEAN"
)
endif (MSVC)
endif (CMAKE_SYSTEM_NAME STREQUAL Windows)
set_target_properties (store PROPERTIES
COMPILE_DEFINITIONS _IN_QPID_BROKER
VERSION ${qpidc_version})
install (TARGETS store # RUNTIME
DESTINATION ${QPIDD_MODULE_DIR}
COMPONENT ${QPID_COMPONENT_BROKER})
# Build the MS SQL Storage Provider plugin
set (mssql_default ON)
if (NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
set(mssql_default OFF)
endif (NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
option(BUILD_MSSQL "Build MS SQL Store provider plugin" ${mssql_default})
if (BUILD_MSSQL)
add_library (mssql_store MODULE
ms-sql/MsSqlProvider.cpp
ms-sql/AmqpTransaction.cpp
ms-sql/BindingRecordset.cpp
ms-sql/BlobAdapter.cpp
ms-sql/BlobEncoder.cpp
ms-sql/BlobRecordset.cpp
ms-sql/DatabaseConnection.cpp
ms-sql/MessageMapRecordset.cpp
ms-sql/MessageRecordset.cpp
ms-sql/Recordset.cpp
ms-sql/SqlTransaction.cpp
ms-sql/State.cpp
ms-sql/TplRecordset.cpp
ms-sql/VariantHelper.cpp)
set_target_properties (mssql_store PROPERTIES COMPILE_DEFINITIONS _IN_QPID_BROKER)
target_link_libraries (mssql_store qpidbroker qpidcommon)
install (TARGETS mssql_store # RUNTIME
DESTINATION ${QPIDD_MODULE_DIR}
COMPONENT ${QPID_COMPONENT_BROKER})
endif (BUILD_MSSQL)
# Build the MS SQL-CLFS Storage Provider plugin
set (msclfs_default ON)
if (NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
set(msclfs_default OFF)
endif (NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
option(BUILD_MSCLFS "Build MS hybrid SQL-CLFS Store provider plugin" ${msclfs_default})
if (BUILD_MSCLFS)
add_library (msclfs_store MODULE
ms-clfs/MsSqlClfsProvider.cpp
ms-clfs/Log.cpp
ms-clfs/MessageLog.cpp
ms-clfs/Messages.cpp
ms-clfs/Transaction.cpp
ms-clfs/TransactionLog.cpp
ms-sql/BindingRecordset.cpp
ms-sql/BlobAdapter.cpp
ms-sql/BlobEncoder.cpp
ms-sql/BlobRecordset.cpp
ms-sql/DatabaseConnection.cpp
ms-sql/Recordset.cpp
ms-sql/State.cpp
ms-sql/VariantHelper.cpp)
include_directories(ms-sql)
set_target_properties (msclfs_store PROPERTIES COMPILE_DEFINITIONS _IN_QPID_BROKER)
target_link_libraries (msclfs_store qpidbroker qpidcommon clfsw32.lib)
install (TARGETS msclfs_store # RUNTIME
DESTINATION ${QPIDD_MODULE_DIR}
COMPONENT ${QPID_COMPONENT_BROKER})
endif (BUILD_MSCLFS)
|