diff options
| author | 2013-09-17 11:30:01 +0200 | |
|---|---|---|
| committer | 2013-09-17 11:30:01 +0200 | |
| commit | f4758e8b15cd30fe3f7f18de42e2ea20bc5696f0 (patch) | |
| tree | 671e85e639b689b0b888a0f51c7dd5e15d408930 /CMakeLists.txt | |
| parent | 10939f3ad5755d1117f20df2b97c0cbbd83bbcbe (diff) | |
| download | usbmuxd-f4758e8b15cd30fe3f7f18de42e2ea20bc5696f0.tar.gz usbmuxd-f4758e8b15cd30fe3f7f18de42e2ea20bc5696f0.tar.bz2 | |
remove libusbmuxd sources and adapt source tree to use autotools
libusbmuxd has been split off and is now managed in a separate repository.
By the time of this commit, the repository is:
git clone http://git.sukimashita.com/libusbmuxd.git
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index 7a46282..0000000 --- a/CMakeLists.txt +++ /dev/null | |||
| @@ -1,83 +0,0 @@ | |||
| 1 | PROJECT(usbmuxd) | ||
| 2 | |||
| 3 | cmake_minimum_required(VERSION 2.6) | ||
| 4 | |||
| 5 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/Modules/") | ||
| 6 | |||
| 7 | include(VersionTag) | ||
| 8 | |||
| 9 | set(USBMUXD_VERSION "${VERSION_TAG}") | ||
| 10 | set(LIBUSBMUXD_VERSION "${VERSION_TAG}") | ||
| 11 | set(LIBUSBMUXD_SOVERSION "2") | ||
| 12 | |||
| 13 | message("-- Configuring usbmuxd v${VERSION_TAG}") | ||
| 14 | |||
| 15 | if(NOT DEFINED LIB_SUFFIX) | ||
| 16 | if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux") | ||
| 17 | set(LIB_SUFFIX "64" CACHE STRING "Define suffix of library directory name (32/64)" ) | ||
| 18 | else() | ||
| 19 | set(LIB_SUFFIX "" CACHE STRING "Define suffix of library directory name (32/64)" ) | ||
| 20 | endif() | ||
| 21 | endif() | ||
| 22 | |||
| 23 | # let CFLAGS env override this | ||
| 24 | if(CMAKE_C_FLAGS STREQUAL "") | ||
| 25 | set(CMAKE_C_FLAGS "-O2") | ||
| 26 | endif() | ||
| 27 | |||
| 28 | option(WANT_PLIST "Build with protocol version 1 support using libplist" ON) | ||
| 29 | |||
| 30 | set(OPT_INCLUDES "") | ||
| 31 | set(OPT_LIBS "") | ||
| 32 | if(WANT_PLIST) | ||
| 33 | find_package(PLIST) | ||
| 34 | if(PLIST_FOUND) | ||
| 35 | set(HAVE_PLIST ON) | ||
| 36 | set(OPT_INCLUDES ${OPT_INCLUDES} ${PLIST_INCLUDE_DIRS}) | ||
| 37 | set(OPT_LIBS ${OPT_LIBS} ${PLIST_LIBRARIES}) | ||
| 38 | else() | ||
| 39 | message("* NOTE: libplist was not found!") | ||
| 40 | message("* libusbmuxd/usbmuxd will be build WITHOUT support for version 1") | ||
| 41 | message("* of the usbmux protocol (plist based).") | ||
| 42 | endif() | ||
| 43 | endif() | ||
| 44 | |||
| 45 | option(WITH_USBMUXD "Build usbmux daemon (usbmuxd)" ON) | ||
| 46 | if(WIN32 AND WITH_USBMUXD) | ||
| 47 | message("** NOTE: usbmuxd cannot be built on WIN32 due to missing libusb-1.0 support!") | ||
| 48 | message(" If you need your own usbmuxd you have to use usbmuxd-legacy which works") | ||
| 49 | message(" with libusb-0.1; otherwise just use the one that ships with iTunes.") | ||
| 50 | message(" Building of usbmuxd has been disabled.") | ||
| 51 | set(WITH_USBMUXD OFF) | ||
| 52 | endif() | ||
| 53 | if(WITH_USBMUXD) | ||
| 54 | message("-- Will build usbmuxd: YES") | ||
| 55 | else() | ||
| 56 | message("-- Will build usbmuxd: NO") | ||
| 57 | message("** NOTE: will NOT build usbmuxd **") | ||
| 58 | if(WIN32 OR APPLE) | ||
| 59 | message("** Make sure iTunes is installed, otherwise this software will not work! **") | ||
| 60 | else() | ||
| 61 | message("** You'll need a working usbmuxd implementation for this software to work! **") | ||
| 62 | endif() | ||
| 63 | endif() | ||
| 64 | |||
| 65 | add_definitions(-Wall) | ||
| 66 | |||
| 67 | add_subdirectory (libusbmuxd) | ||
| 68 | if (WITH_USBMUXD) | ||
| 69 | add_subdirectory (daemon) | ||
| 70 | if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") | ||
| 71 | add_subdirectory (udev) | ||
| 72 | endif() | ||
| 73 | endif() | ||
| 74 | add_subdirectory (tools) | ||
| 75 | |||
| 76 | # pkg-config | ||
| 77 | configure_file("${CMAKE_CURRENT_SOURCE_DIR}/libusbmuxd.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libusbmuxd.pc") | ||
| 78 | # install pkg-config file | ||
| 79 | install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libusbmuxd.pc" DESTINATION lib${LIB_SUFFIX}/pkgconfig/) | ||
| 80 | |||
| 81 | # add uninstall target | ||
| 82 | configure_file("${CMAKE_SOURCE_DIR}/Modules/cmake_uninstall.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" IMMEDIATE @ONLY) | ||
| 83 | add_custom_target(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") | ||
