OpalKelly 5.2.1.pre1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +71 -0
- data/ext/OpalKelly/FrontPanelDLL_wrap.cxx +27465 -0
- data/ext/OpalKelly/FrontPanelDLL_wrap.h +29 -0
- data/ext/OpalKelly/extconf.rb +46 -0
- metadata +48 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* ----------------------------------------------------------------------------
|
|
2
|
+
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
3
|
+
* Version 4.0.2
|
|
4
|
+
*
|
|
5
|
+
* This file is not intended to be easily readable and contains a number of
|
|
6
|
+
* coding conventions designed to improve portability and efficiency. Do not make
|
|
7
|
+
* changes to this file unless you know what you are doing--modify the SWIG
|
|
8
|
+
* interface file instead.
|
|
9
|
+
* ----------------------------------------------------------------------------- */
|
|
10
|
+
|
|
11
|
+
#ifndef SWIG_OpalKelly_WRAP_H_
|
|
12
|
+
#define SWIG_OpalKelly_WRAP_H_
|
|
13
|
+
|
|
14
|
+
namespace Swig {
|
|
15
|
+
class Director;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class SwigDirector_FrontPanelManager : public OpalKelly::FrontPanelManager, public Swig::Director {
|
|
20
|
+
|
|
21
|
+
public:
|
|
22
|
+
SwigDirector_FrontPanelManager(VALUE self, std::string const &realm = std::string());
|
|
23
|
+
virtual ~SwigDirector_FrontPanelManager();
|
|
24
|
+
virtual void OnDeviceAdded(char const *serial);
|
|
25
|
+
virtual void OnDeviceRemoved(char const *serial);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
#endif
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
require 'mkmf'
|
|
2
|
+
require 'rbconfig'
|
|
3
|
+
|
|
4
|
+
sdk_include_dir = ENV['okFP_SDK_INCLUDE']
|
|
5
|
+
sdk_lib_dir = ENV['okFP_SDK_LIBS']
|
|
6
|
+
sdk_dir = ENV['okFP_SDK'] || '..'
|
|
7
|
+
|
|
8
|
+
include_dirs = []
|
|
9
|
+
if sdk_include_dir
|
|
10
|
+
include_dirs << sdk_include_dir
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
lib_dirs = []
|
|
14
|
+
if sdk_lib_dir
|
|
15
|
+
lib_dirs << sdk_lib_dir
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
case RbConfig::CONFIG['arch']
|
|
19
|
+
when 'x64-mingw32'
|
|
20
|
+
include_dirs << "#{sdk_dir}/include"
|
|
21
|
+
lib_dirs << "#{sdk_dir}/lib/x64"
|
|
22
|
+
|
|
23
|
+
when 'i386-mingw32'
|
|
24
|
+
include_dirs << "#{sdk_dir}/include"
|
|
25
|
+
lib_dirs << "#{sdk_dir}/lib/Win32"
|
|
26
|
+
|
|
27
|
+
else
|
|
28
|
+
# Assume Unix-like system, where subdirectories are not used.
|
|
29
|
+
include_dirs << "#{sdk_dir}"
|
|
30
|
+
lib_dirs << "#{sdk_dir}"
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
dir_config('frontpanel', include_dirs, lib_dirs)
|
|
34
|
+
|
|
35
|
+
unless have_header('okFrontPanel.h')
|
|
36
|
+
abort 'Required header "okFrontPanel.h" not found, use --with-frontpanel-include=<dir> to specify its location.'
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
unless have_library('okFrontPanel', 'okFrontPanel_CheckAPIVersion', 'okFrontPanel.h')
|
|
40
|
+
abort 'Required okFrontPanel library not found, use --with-frontpanel-lib=<dir> to specify its location.'
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Avoid multiple warnings about std::auto_ptr<> being deprecated.
|
|
44
|
+
append_cppflags('-Wno-deprecated-declarations')
|
|
45
|
+
|
|
46
|
+
create_makefile('OpalKelly')
|
metadata
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: OpalKelly
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 5.2.1.pre1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Opal Kelly Incorporated
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2020-05-16 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Provides access to FrontPanel devices.
|
|
14
|
+
email: tech+rubygems@opalkelly.com
|
|
15
|
+
executables: []
|
|
16
|
+
extensions:
|
|
17
|
+
- ext/OpalKelly/extconf.rb
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- LICENSE.txt
|
|
21
|
+
- README.md
|
|
22
|
+
- ext/OpalKelly/FrontPanelDLL_wrap.cxx
|
|
23
|
+
- ext/OpalKelly/FrontPanelDLL_wrap.h
|
|
24
|
+
- ext/OpalKelly/extconf.rb
|
|
25
|
+
homepage: https://docs.opalkelly.com/display/FPSDK/Programming+Languages#Ruby
|
|
26
|
+
licenses:
|
|
27
|
+
- MIT
|
|
28
|
+
metadata: {}
|
|
29
|
+
post_install_message:
|
|
30
|
+
rdoc_options: []
|
|
31
|
+
require_paths:
|
|
32
|
+
- lib
|
|
33
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
34
|
+
requirements:
|
|
35
|
+
- - ">="
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
38
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
- - ">"
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: 1.3.1
|
|
43
|
+
requirements: []
|
|
44
|
+
rubygems_version: 3.0.3
|
|
45
|
+
signing_key:
|
|
46
|
+
specification_version: 4
|
|
47
|
+
summary: OpalKelly FrontPanel API
|
|
48
|
+
test_files: []
|