[cmake] Invert WITH_FREERDP_3x_DEPRECATED

API breaking change, with this logic the symbol needs to be manually
defined by an API user. So, to fix this:
* Rename to DROP_FREERDP_3x_DEPRECATED
* Invert logic, so a undefined value enables the symbols
This commit is contained in:
akallabeth
2025-03-06 10:46:25 +01:00
parent 52fec2cd03
commit 3186977e15
23 changed files with 48 additions and 43 deletions

View File

@@ -101,7 +101,7 @@ def write_getter_body(f, values, ret, keys, isPointer, compat_values, typestr, e
cast = '(void*)'
write_getter_case(f, val, cast, None)
if compat_values:
f.write('#if defined(WITH_FREERDP_3x_DEPRECATED)\n')
f.write('#if !defined(WITHOUT_FREERDP_3x_DEPRECATED)\n')
for i in range(len(compat_values)):
val = compat_values[i]
cast = '(' + entry_type + ')'
@@ -219,7 +219,7 @@ def write_setter(f, entry_dict, entry_type, entry_name, postfix, compat_dict):
cast = '(' + k + ')'
write_setter_case(f, val, postfix, isPointer, cast)
if compat_values:
f.write('#if defined(WITH_FREERDP_3x_DEPRECATED)\n')
f.write('#if !defined(WITHOUT_FREERDP_3x_DEPRECATED)\n')
for val in compat_values:
cast = '(int32_t)'
f.write('\t\t// API Compatibility section, remove with FreeRDP 4.x\n')