From 3811f0da8dc62a1fc97a66f93fa2ef03366f473a Mon Sep 17 00:00:00 2001 From: Vitaly Samoylik Date: Fri, 13 Sep 2019 15:55:01 +0300 Subject: [PATCH] Added podspec to support releases via cocoapods (#66) --- dist/hidapi.podspec | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 dist/hidapi.podspec diff --git a/dist/hidapi.podspec b/dist/hidapi.podspec new file mode 100644 index 0000000..6343f9a --- /dev/null +++ b/dist/hidapi.podspec @@ -0,0 +1,31 @@ +Pod::Spec.new do |spec| + + spec.name = "hidapi" + spec.version = "0.9.0" + spec.summary = "A Simple library for communicating with USB and Bluetooth HID devices on Linux, Mac and Windows." + + spec.description = <<-DESC + 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. + DESC + + spec.homepage = "https://github.com/libusb/hidapi" + + spec.license = { :type=> "GNU GPLv3 or BSD or HIDAPI original", :file => "LICENSE.txt" } + + spec.authors = { "Alan Ott" => "alan@signal11.us", + "Ludovic Rousseau" => "rousseau@debian.org", + "libusb/hidapi Team" => "https://github.com/libusb/hidapi/blob/master/AUTHORS.txt", + } + + spec.platform = :osx + spec.osx.deployment_target = "10.7" + + spec.source = { :git => "https://github.com/libusb/hidapi.git", :tag => "#{spec.version}" } + + spec.source_files = "mac/hid.c", "hidapi/hidapi.h" + + spec.public_header_files = "hidapi/hidapi.h" + + spec.frameworks = "IOKit", "CoreFoundation" + +end