File tree Expand file tree Collapse file tree 16 files changed +22
-35
lines changed
include/bsoncxx/v_noabi/bsoncxx
lib/bsoncxx/v_noabi/bsoncxx/config
lib/mongocxx/v_noabi/mongocxx/config Expand file tree Collapse file tree 16 files changed +22
-35
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function(bsoncxx_add_library TARGET OUTPUT_NAME LINK_TYPE)
20
20
set_target_properties (${TARGET} PROPERTIES
21
21
CXX_VISIBILITY_PRESET hidden
22
22
VISIBILITY_INLINES_HIDDEN ON
23
- SOVERSION ${BSONCXX_ABI_VERSION}
23
+ SOVERSION _noabi
24
24
)
25
25
endif ()
26
26
@@ -69,7 +69,7 @@ function(bsoncxx_install BSONCXX_TARGET_LIST BSONCXX_PKG_DEP BSONCXX_BOOST_PKG_D
69
69
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
70
70
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT runtime
71
71
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT dev
72
- INCLUDES DESTINATION ${BSONCXX_HEADER_INSTALL_DIR}
72
+ INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /bsoncxx/v_noabi
73
73
)
74
74
75
75
write_basic_package_version_file (
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function(mongocxx_add_library TARGET OUTPUT_NAME LINK_TYPE)
20
20
set_target_properties (${TARGET} PROPERTIES
21
21
CXX_VISIBILITY_PRESET hidden
22
22
VISIBILITY_INLINES_HIDDEN ON
23
- SOVERSION ${MONGOCXX_ABI_VERSION}
23
+ SOVERSION _noabi
24
24
)
25
25
endif ()
26
26
@@ -57,7 +57,7 @@ function(mongocxx_install MONGOCXX_TARGET_LIST MONGOCXX_PKG_DEP)
57
57
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
58
58
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT runtime
59
59
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT dev
60
- INCLUDES DESTINATION ${MONGOCXX_HEADER_INSTALL_DIR}
60
+ INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /mongocxx/v_noabi
61
61
)
62
62
63
63
write_basic_package_version_file (
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
include_directories (
16
- ${CMAKE_INSTALL_PREFIX} /${BSONCXX_HEADER_INSTALL_DIR}
16
+ ${CMAKE_INSTALL_PREFIX} /${CMAKE_INSTALL_INCLUDEDIR}/bsoncxx/v_noabi
17
17
)
18
18
19
19
set (BSONCXX_EXAMPLES
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
include_directories (
16
- ${CMAKE_INSTALL_PREFIX} /${BSONCXX_HEADER_INSTALL_DIR}
17
- ${CMAKE_INSTALL_PREFIX} /${MONGOCXX_HEADER_INSTALL_DIR}
16
+ ${CMAKE_INSTALL_PREFIX} /${CMAKE_INSTALL_INCLUDEDIR}/bsoncxx/v_noabi
17
+ ${CMAKE_INSTALL_PREFIX} /${CMAKE_INSTALL_INCLUDEDIR}/mongocxx/v_noabi
18
18
)
19
19
20
20
set (MONGOCXX_EXAMPLES
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ else ()
57
57
\"\$ {MONGOCXX_INSTALL_MANIFEST_CONTENT}\" )
58
58
execute_process (
59
59
COMMAND
60
- find \"\$ ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX} /${BSONCXX_HEADER_INSTALL_DIR} \" \"\$ ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX} /${MONGOCXX_HEADER_INSTALL_DIR} \" -type d -empty -delete
60
+ find \"\$ ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX} /${CMAKE_INSTALL_INCLUDEDIR} /bsoncxx/v_noabi \" \"\$ ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX} /${CMAKE_INSTALL_INCLUDEDIR} /mongocxx/v_noabi \" -type d -empty -delete
61
61
)
62
62
execute_process (
63
63
COMMAND
Original file line number Diff line number Diff line change 15
15
project (BSONCXX )
16
16
17
17
ParseVersion (${BUILD_VERSION} BSONCXX )
18
- # TODO: read from file
19
- set (BSONCXX_ABI_VERSION _noabi )
20
18
21
19
option (BSONCXX_POLY_USE_MNMLSTC "Use MNMLSTC/core for stdx polyfills" OFF )
22
20
option (BSONCXX_POLY_USE_STD_EXPERIMENTAL "Use std::experimental for stdx polyfills" OFF )
@@ -70,8 +68,6 @@ endif()
70
68
set (BSONCXX_VERSION_NO_EXTRA ${BSONCXX_VERSION_MAJOR} .${BSONCXX_VERSION_MINOR}.${BSONCXX_VERSION_PATCH} )
71
69
set (BSONCXX_VERSION ${BSONCXX_VERSION_NO_EXTRA}${BSONCXX_VERSION_EXTRA} )
72
70
message ("bsoncxx version: ${BSONCXX_VERSION} " )
73
- set (BSONCXX_INLINE_NAMESPACE "v${BSONCXX_ABI_VERSION} " )
74
- set (BSONCXX_HEADER_INSTALL_DIR "${CMAKE_INSTALL_INCLUDEDIR} /bsoncxx/${BSONCXX_INLINE_NAMESPACE} " CACHE INTERNAL "" )
75
71
76
72
set (BSONCXX_POLY_MNMLSTC_DEPRECATED_INCLUDE_DIRS "" )
77
73
set (BSONCXX_POLY_MNMLSTC_PKGCONFIG_INCLUDE_DIRS "" )
@@ -231,12 +227,12 @@ install(DIRECTORY include/
231
227
232
228
install (FILES
233
229
${PROJECT_BINARY_DIR} /lib/bsoncxx/v_noabi/bsoncxx/config/export.hpp
234
- DESTINATION ${BSONCXX_HEADER_INSTALL_DIR} /bsoncxx/config
230
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /bsoncxx/v_noabi /bsoncxx/config
235
231
COMPONENT dev
236
232
)
237
233
238
234
set (PACKAGE_INCLUDE_INSTALL_DIRS
239
- ${BSONCXX_HEADER_INSTALL_DIR}
235
+ ${CMAKE_INSTALL_INCLUDEDIR} /bsoncxx/v_noabi
240
236
${BSONCXX_POLY_MNMLSTC_DEPRECATED_INCLUDE_DIRS}
241
237
)
242
238
set (PACKAGE_LIBRARY_INSTALL_DIRS ${CMAKE_INSTALL_LIBDIR} )
Original file line number Diff line number Diff line change @@ -21,5 +21,5 @@ Description: The MongoDB C++11 BSON Library
21
21
URL: http://github.com/mongodb/mongo-cxx-driver
22
22
Version: @BSONCXX_VERSION@
23
23
Requires: libbson-static-@LIBBSON_REQUIRED_ABI_VERSION@ >= @LIBBSON_REQUIRED_VERSION@
24
- Cflags: @BSONCXX_POLY_MNMLSTC_PKGCONFIG_STATIC_INCLUDE_DIRS@-I${includedir}/bsoncxx/@BSONCXX_INLINE_NAMESPACE@ -DBSONCXX_STATIC
24
+ Cflags: @BSONCXX_POLY_MNMLSTC_PKGCONFIG_STATIC_INCLUDE_DIRS@-I${includedir}/bsoncxx/v_noabi -DBSONCXX_STATIC
25
25
Libs: -L${libdir} -lbsoncxx-static
Original file line number Diff line number Diff line change @@ -20,5 +20,5 @@ Name: libbsoncxx
20
20
Description: The MongoDB C++11 BSON Library
21
21
URL: http://github.com/mongodb/mongo-cxx-driver
22
22
Version: @BSONCXX_VERSION@
23
- Cflags: @BSONCXX_POLY_MNMLSTC_PKGCONFIG_INCLUDE_DIRS@-I${includedir}/bsoncxx/@BSONCXX_INLINE_NAMESPACE@
23
+ Cflags: @BSONCXX_POLY_MNMLSTC_PKGCONFIG_INCLUDE_DIRS@-I${includedir}/bsoncxx/v_noabi
24
24
Libs: -L${libdir} -lbsoncxx
Original file line number Diff line number Diff line change 29
29
namespace bsoncxx {
30
30
BSONCXX_INLINE_NAMESPACE_BEGIN
31
31
32
- // Placing this variable between the `BSONCXX_INLINE_NAMESPACE_BEGIN` and the Doxygen documentation
33
- // for `to_json` suppressed the macro name from being shown as part of the return type in the
34
- // generated documentation pages.
35
- extern const bool k_silence_doxygen;
36
-
37
32
// /
38
33
// / An enumeration of the types of Extended JSON that the to_json function accepts
39
34
enum class ExtendedJsonMode : std::uint8_t {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ configure_file(
30
30
install (FILES
31
31
${CMAKE_CURRENT_BINARY_DIR} /config.hpp
32
32
${CMAKE_CURRENT_BINARY_DIR} /version.hpp
33
- DESTINATION ${BSONCXX_HEADER_INSTALL_DIR} /bsoncxx/config
33
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /bsoncxx/v_noabi /bsoncxx/config
34
34
COMPONENT dev
35
35
)
36
36
Original file line number Diff line number Diff line change 18
18
#cmakedefine BSONCXX_POLY_USE_BOOST
19
19
#cmakedefine BSONCXX_POLY_USE_STD
20
20
21
- #define BSONCXX_INLINE_NAMESPACE_BEGIN inline namespace @BSONCXX_INLINE_NAMESPACE@ {
21
+ #define BSONCXX_INLINE_NAMESPACE_BEGIN inline namespace v_noabi {
22
22
23
- #define BSONCXX_INLINE_NAMESPACE_END } // namespace @BSONCXX_INLINE_NAMESPACE@
23
+ #define BSONCXX_INLINE_NAMESPACE_END } // namespace v_noabi
Original file line number Diff line number Diff line change 15
15
project (MONGOCXX )
16
16
17
17
ParseVersion (${BUILD_VERSION} MONGOCXX )
18
- # TODO: read from file
19
- set (MONGOCXX_ABI_VERSION _noabi )
20
18
21
19
option (MONGOCXX_ENABLE_SSL "Enable SSL - if the underlying C driver offers it" ON )
22
20
option (MONGOCXX_ENABLE_SLOW_TESTS "Run slow tests when invoking the the test target" OFF )
@@ -26,8 +24,6 @@ set(MONGOCXX_OUTPUT_BASENAME "mongocxx" CACHE STRING "Output mongocxx library ba
26
24
set (MONGOCXX_VERSION_NO_EXTRA ${MONGOCXX_VERSION_MAJOR} .${MONGOCXX_VERSION_MINOR}.${MONGOCXX_VERSION_PATCH} )
27
25
set (MONGOCXX_VERSION ${MONGOCXX_VERSION_NO_EXTRA}${MONGOCXX_VERSION_EXTRA} )
28
26
message ("mongocxx version: ${MONGOCXX_VERSION} " )
29
- set (MONGOCXX_INLINE_NAMESPACE "v${MONGOCXX_ABI_VERSION} " )
30
- set (MONGOCXX_HEADER_INSTALL_DIR "${CMAKE_INSTALL_INCLUDEDIR} /mongocxx/${MONGOCXX_INLINE_NAMESPACE} " CACHE INTERNAL "" )
31
27
32
28
set (mongocxx_pkg_dep "" )
33
29
@@ -215,11 +211,11 @@ install(DIRECTORY include/
215
211
216
212
install (FILES
217
213
${PROJECT_BINARY_DIR} /lib/mongocxx/v_noabi/mongocxx/config/export.hpp
218
- DESTINATION ${MONGOCXX_HEADER_INSTALL_DIR} /mongocxx/config
214
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /mongocxx/v_noabi /mongocxx/config
219
215
COMPONENT dev
220
216
)
221
217
222
- set (PACKAGE_INCLUDE_INSTALL_DIRS ${MONGOCXX_HEADER_INSTALL_DIR} )
218
+ set (PACKAGE_INCLUDE_INSTALL_DIRS ${CMAKE_INSTALL_INCLUDEDIR} /mongocxx/v_noabi )
223
219
set (PACKAGE_LIBRARY_INSTALL_DIRS ${CMAKE_INSTALL_LIBDIR} )
224
220
set (PACKAGE_LIBRARIES mongocxx )
225
221
Original file line number Diff line number Diff line change @@ -21,5 +21,5 @@ Description: The MongoDB C++11 Driver Library
21
21
URL: http://github.com/mongodb/mongo-cxx-driver
22
22
Version: @MONGOCXX_VERSION@
23
23
Requires: libbsoncxx-static >= @MONGOCXX_VERSION@, libmongoc-static-@LIBMONGOC_REQUIRED_ABI_VERSION@ >= @LIBMONGOC_REQUIRED_VERSION@
24
- Cflags: -I${includedir}/mongocxx/@MONGOCXX_INLINE_NAMESPACE@ -DMONGOCXX_STATIC
24
+ Cflags: -I${includedir}/mongocxx/v_noabi -DMONGOCXX_STATIC
25
25
Libs: -L${libdir} -lmongocxx-static
Original file line number Diff line number Diff line change @@ -21,5 +21,5 @@ Description: The MongoDB C++11 Driver Library
21
21
URL: http://github.com/mongodb/mongo-cxx-driver
22
22
Version: @MONGOCXX_VERSION@
23
23
Requires: libbsoncxx >= @MONGOCXX_VERSION@
24
- Cflags: -I${includedir}/mongocxx/@MONGOCXX_INLINE_NAMESPACE@
24
+ Cflags: -I${includedir}/mongocxx/v_noabi
25
25
Libs: -L${libdir} -lmongocxx
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ configure_file(
42
42
install (FILES
43
43
${CMAKE_CURRENT_BINARY_DIR} /config.hpp
44
44
${CMAKE_CURRENT_BINARY_DIR} /version.hpp
45
- DESTINATION ${MONGOCXX_HEADER_INSTALL_DIR} /mongocxx/config
45
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /mongocxx/v_noabi /mongocxx/config
46
46
COMPONENT dev
47
47
)
48
48
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- #define MONGOCXX_INLINE_NAMESPACE_BEGIN inline namespace @MONGOCXX_INLINE_NAMESPACE@ {
15
+ #define MONGOCXX_INLINE_NAMESPACE_BEGIN inline namespace v_noabi {
16
16
17
- #define MONGOCXX_INLINE_NAMESPACE_END } // namespace @MONGOCXX_INLINE_NAMESPACE@
17
+ #define MONGOCXX_INLINE_NAMESPACE_END } // namespace v_noabi
You can’t perform that action at this time.
0 commit comments