-
-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New CMAKE option NNG_ENABLE_COMPAT (defaults ON)
This option allows the compatibility code to be elided from the build. This saves build time, and eliminates bloat from a static library when used strictly in native NNG mode.
- Loading branch information
Showing
5 changed files
with
44 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright 2021 Staysail Systems, Inc. <[email protected]> | ||
# Copyright 2024 Staysail Systems, Inc. <[email protected]> | ||
# Copyright 2018 Capitar IT Group BV <[email protected]> | ||
# | ||
# This software is supplied under the terms of the MIT License, a | ||
|
@@ -16,12 +16,15 @@ target_include_directories(nng_testing PRIVATE ${PROJECT_SOURCE_DIR}/src) | |
|
||
add_subdirectory(core) | ||
add_subdirectory(platform) | ||
add_subdirectory(compat) | ||
add_subdirectory(sp) | ||
add_subdirectory(supplemental) | ||
add_subdirectory(tools) | ||
add_subdirectory(testing) | ||
|
||
if (NNG_ENABLE_COMPAT) | ||
add_subdirectory(compat) | ||
endif() | ||
|
||
# When building shared libraries we prefer to suppress default symbol | ||
# visibility, so that only the symbols that should be exposed in the | ||
# resulting library are. This is the default with Windows. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright 2021 Staysail Systems, Inc. <[email protected]> | ||
# Copyright 2024 Staysail Systems, Inc. <[email protected]> | ||
# Copyright 2018 Capitar IT Group BV <[email protected]> | ||
# Copyright (c) 2012 Martin Sustrik All rights reserved. | ||
# Copyright (c) 2013 GoPivotal, Inc. All rights reserved. | ||
|
@@ -155,25 +155,27 @@ add_nng_test(reqstress 60) | |
# is because we don't want to make modifications to partially enable some | ||
# of these tests. Folks minimizing the library probably don't care too | ||
# much about these anyway. | ||
add_nng_compat_test(compat_block 10) | ||
add_nng_compat_test(compat_bug777 10) | ||
add_nng_compat_test(compat_bus 10) | ||
add_nng_compat_test(compat_cmsg 10) | ||
add_nng_compat_test(compat_msg 10) | ||
add_nng_compat_test(compat_iovec 10) | ||
add_nng_compat_test(compat_device 10) | ||
add_nng_compat_test(compat_pair 10) | ||
add_nng_compat_test(compat_pipeline 10) | ||
add_nng_compat_test(compat_poll 10) | ||
add_nng_compat_test(compat_reqrep 10) | ||
add_nng_compat_test(compat_survey 10) | ||
add_nng_compat_test(compat_reqttl 10) | ||
add_nng_compat_test(compat_shutdown 10) | ||
add_nng_compat_test(compat_surveyttl 10) | ||
|
||
# These are special tests for compat mode, not inherited from the | ||
# legacy libnanomsg suite. | ||
add_nng_test(compat_options 5) | ||
if (NNG_ENABLE_COMPAT) | ||
add_nng_compat_test(compat_block 10) | ||
add_nng_compat_test(compat_bug777 10) | ||
add_nng_compat_test(compat_bus 10) | ||
add_nng_compat_test(compat_cmsg 10) | ||
add_nng_compat_test(compat_msg 10) | ||
add_nng_compat_test(compat_iovec 10) | ||
add_nng_compat_test(compat_device 10) | ||
add_nng_compat_test(compat_pair 10) | ||
add_nng_compat_test(compat_pipeline 10) | ||
add_nng_compat_test(compat_poll 10) | ||
add_nng_compat_test(compat_reqrep 10) | ||
add_nng_compat_test(compat_survey 10) | ||
add_nng_compat_test(compat_reqttl 10) | ||
add_nng_compat_test(compat_shutdown 10) | ||
add_nng_compat_test(compat_surveyttl 10) | ||
|
||
# These are special tests for compat mode, not inherited from the | ||
# legacy libnanomsg suite. | ||
add_nng_test(compat_options 5) | ||
endif() | ||
|
||
# c++ tests | ||
add_nng_cpp_test(cplusplus_pair 5) |