diff options
author | Dennis <yowidin@gmail.com> | 2022-09-05 17:38:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-05 17:38:02 +0300 |
commit | bd809ba90b25d9a0a7634353025efcd0e4c66880 (patch) | |
tree | d6923eb310c546a689e7f153debbfe93c68eb072 /cmake | |
parent | 15b9e82f93971a1cd2f63f3b21eafcf3601ec70c (diff) |
TouchID support refactoring (#8311)
Fixes #7695 - Properly set compile flags based on availability of watch unlock in the API.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/compiler-checks/macos/control_biometry_support.mm | 5 | ||||
-rw-r--r-- | cmake/compiler-checks/macos/control_touch_id_support.mm | 5 | ||||
-rw-r--r-- | cmake/compiler-checks/macos/control_watch_support.mm | 5 |
3 files changed, 15 insertions, 0 deletions
diff --git a/cmake/compiler-checks/macos/control_biometry_support.mm b/cmake/compiler-checks/macos/control_biometry_support.mm new file mode 100644 index 000000000..1bfbab184 --- /dev/null +++ b/cmake/compiler-checks/macos/control_biometry_support.mm @@ -0,0 +1,5 @@ +#include <Security/Security.h> + +int main() { + return static_cast<int>(kSecAccessControlBiometryCurrentSet); +}
\ No newline at end of file diff --git a/cmake/compiler-checks/macos/control_touch_id_support.mm b/cmake/compiler-checks/macos/control_touch_id_support.mm new file mode 100644 index 000000000..e78767498 --- /dev/null +++ b/cmake/compiler-checks/macos/control_touch_id_support.mm @@ -0,0 +1,5 @@ +#include <Security/Security.h> + +int main() { + return static_cast<int>(kSecAccessControlTouchIDCurrentSet); +}
\ No newline at end of file diff --git a/cmake/compiler-checks/macos/control_watch_support.mm b/cmake/compiler-checks/macos/control_watch_support.mm new file mode 100644 index 000000000..fce69edc0 --- /dev/null +++ b/cmake/compiler-checks/macos/control_watch_support.mm @@ -0,0 +1,5 @@ +#include <Security/Security.h> + +int main() { + return static_cast<int>(kSecAccessControlWatch); +}
\ No newline at end of file |