mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 02:04:39 +08:00
appkit vs uikit detection
This commit is contained in:
parent
2b3f3240c6
commit
d71eed325c
1 changed files with 14 additions and 6 deletions
|
@ -381,13 +381,21 @@ if (APPLE)
|
|||
message(STATUS "Apple device detected.")
|
||||
set(ADDITIONAL_SRC ${PM3_ROOT}/client/src/util_darwin.h ${PM3_ROOT}/client/src/util_darwin.m ${ADDITIONAL_SRC})
|
||||
|
||||
if (EXISTS /private/var/mobile)
|
||||
message(STATUS "iOS detected.")
|
||||
find_library(UIKIT_LIBRARY UIKit)
|
||||
if (NOT UIKIT_LIBRARY)
|
||||
message(STATUS "UIKit.framework NOT found!")
|
||||
else()
|
||||
message(STATUS "UIKit.framework found! ${UIKIT_LIBRARY}")
|
||||
set(ADDITIONAL_LNK "-framework Foundation" "-framework UIKit")
|
||||
else (EXISTS /private/var/mobile)
|
||||
message(STATUS "macOS detected.")
|
||||
set(ADDITIONAL_LNK "-framework Foundation" "-framework AppKit")
|
||||
endif (EXISTS /private/var/mobile)
|
||||
endif()
|
||||
|
||||
find_library(APPKIT_LIBRARY AppKit)
|
||||
if (NOT APPKIT_LIBRARY)
|
||||
message(STATUS "AppKit.framework NOT found!")
|
||||
else()
|
||||
message(STATUS "AppKit.framework found! ${APPKIT_LIBRARY}")
|
||||
set(ADDITIONAL_LNK "-framework Foundation" "-framework AppKit")
|
||||
endif()
|
||||
|
||||
endif (APPLE)
|
||||
|
||||
|
|
Loading…
Reference in a new issue