hidapi.podspec 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. Pod::Spec.new do |spec|
  2. spec.name = "hidapi"
  3. spec.version = File.read('../VERSION')
  4. spec.summary = "A Simple library for communicating with USB and Bluetooth HID devices on Linux, Mac and Windows."
  5. spec.description = <<-DESC
  6. HIDAPI is a multi-platform library which allows an application to interface with USB and Bluetooth HID-Class devices on Windows, Linux, FreeBSD, and macOS. HIDAPI can be either built as a shared library (.so, .dll or .dylib) or can be embedded directly into a target application by adding a single source file (per platform) and a single header.
  7. DESC
  8. spec.homepage = "https://github.com/libusb/hidapi"
  9. spec.license = { :type=> "GNU GPLv3 or BSD or HIDAPI original", :file => "LICENSE.txt" }
  10. spec.authors = { "Alan Ott" => "alan@signal11.us",
  11. "Ludovic Rousseau" => "rousseau@debian.org",
  12. "libusb/hidapi Team" => "https://github.com/libusb/hidapi/blob/master/AUTHORS.txt",
  13. }
  14. spec.platform = :osx
  15. spec.osx.deployment_target = "10.7"
  16. spec.source = { :git => "https://github.com/libusb/hidapi.git", :tag => "hidapi-#{spec.version}" }
  17. spec.source_files = "mac/hid.c", "hidapi/hidapi.h", "mac/hidapi_darwin.h"
  18. spec.public_header_files = "hidapi/hidapi.h", "mac/hidapi_darwin.h"
  19. spec.frameworks = "IOKit", "CoreFoundation", "AppKit"
  20. end