forked from xerub/xpwn
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lots of miscellaneous fixes merged from private branch
- Loading branch information
1 parent
a0b9ad4
commit 345ea53
Showing
57 changed files
with
1,454 additions
and
510 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
INCLUDE(${PROJECT_SOURCE_DIR}/FindUSB.cmake) | ||
|
||
IF(NOT USB_FOUND) | ||
message(STATUS "libusb is required for dfu-util!") | ||
ELSE(NOT USB_FOUND) | ||
include_directories(${USB_INCLUDE_DIR}) | ||
link_directories(${USB_LIBRARIES}) | ||
IF(NOT APPLE OR NOT BUILD_STATIC) | ||
IF(NOT USB_FOUND) | ||
message(STATUS "libusb is required for dfu-util!") | ||
ELSE(NOT USB_FOUND) | ||
include_directories(${USB_INCLUDE_DIR}) | ||
link_directories(${USB_LIBRARIES}) | ||
|
||
add_executable(dfu-util dfu.c sam7dfu.c main.c) | ||
add_executable(dfu-util dfu.c sam7dfu.c main.c) | ||
|
||
link_directories(${PROJECT_BINARY_DIR}/common ${PROJECT_BINARY_DIR}/hfs ${PROJECT_BINARY_DIR}/ipsw-patch) | ||
link_directories(${PROJECT_BINARY_DIR}/common ${PROJECT_BINARY_DIR}/hfs ${PROJECT_BINARY_DIR}/ipsw-patch) | ||
|
||
IF(APPLE) | ||
SET_TARGET_PROPERTIES(dfu-util PROPERTIES LINK_FLAGS "-framework CoreFoundation -framework IOKit") | ||
ENDIF(APPLE) | ||
IF(APPLE) | ||
SET_TARGET_PROPERTIES(dfu-util PROPERTIES LINK_FLAGS "-framework CoreFoundation -framework IOKit") | ||
ENDIF(APPLE) | ||
|
||
target_link_libraries(dfu-util xpwn) | ||
target_link_libraries(dfu-util ${USB_LIBRARIES}) | ||
target_link_libraries(dfu-util xpwn) | ||
target_link_libraries(dfu-util ${USB_LIBRARIES}) | ||
|
||
install(TARGETS dfu-util DESTINATION .) | ||
ENDIF(NOT USB_FOUND) | ||
install(TARGETS dfu-util DESTINATION .) | ||
ENDIF(NOT USB_FOUND) | ||
ENDIF(NOT APPLE OR NOT BUILD_STATIC) |
Oops, something went wrong.