Simple Directmedia Layer
at main 1.4 kB view raw
1Pod::Spec.new do |spec| 2 3 spec.name = "hidapi" 4 spec.version = File.read('../VERSION') 5 spec.summary = "A Simple library for communicating with USB and Bluetooth HID devices on Linux, Mac and Windows." 6 7 spec.description = <<-DESC 8 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. 9 DESC 10 11 spec.homepage = "https://github.com/libusb/hidapi" 12 13 spec.license = { :type=> "GNU GPLv3 or BSD or HIDAPI original", :file => "LICENSE.txt" } 14 15 spec.authors = { "Alan Ott" => "alan@signal11.us", 16 "Ludovic Rousseau" => "rousseau@debian.org", 17 "libusb/hidapi Team" => "https://github.com/libusb/hidapi/blob/master/AUTHORS.txt", 18 } 19 20 spec.platform = :osx 21 spec.osx.deployment_target = "10.7" 22 23 spec.source = { :git => "https://github.com/libusb/hidapi.git", :tag => "hidapi-#{spec.version}" } 24 25 spec.source_files = "mac/hid.c", "hidapi/hidapi.h", "mac/hidapi_darwin.h" 26 27 spec.public_header_files = "hidapi/hidapi.h", "mac/hidapi_darwin.h" 28 29 spec.frameworks = "IOKit", "CoreFoundation" 30 31end