[cmake,freerdp] add WITH_FREERDP_3x_DEPRECATED

This new CMake option (ON by default) allows building the library with
all symbols deprecated during 3.x release cycle disabled.
This allows compatibility testing external applications for future
FreeRDP 4.x support
This commit is contained in:
akallabeth
2025-03-03 17:26:41 +01:00
parent 8ea2c5dde6
commit d03b4b91d5
19 changed files with 73 additions and 13 deletions

View File

@@ -17,7 +17,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
option(WITH_OPAQUE_SETTINGS "Hide rdpSettings struct definition, only allow getter/setter access" OFF)
if(WITH_FREERDP_3x_DEPRECATED)
option(WITH_OPAQUE_SETTINGS "Hide rdpSettings struct definition, only allow getter/setter access" OFF)
else()
set(WITH_OPAQUE_SETTINGS ON CACHE INTERNAL "WITH_FREERDP_3x_DEPRECATED")
endif()
# prepare paths for C
file(TO_NATIVE_PATH "${FREERDP_DATA_PATH}" NATIVE_FREERDP_DATA_PATH)