Add imXpad plugin

parent 3473116e
......@@ -91,3 +91,6 @@
[submodule "camera/xh"]
path = camera/xh
url = git://github.com/esrf-bliss/Lima-camera-xh
[submodule "camera/imxpad"]
path = camera/imxpad
url = git://github.com/esrf-bliss/Lima-camera-imxpad
Subproject commit 07952d0f4145ac969e01162547b893d9651cf258
Subproject commit f8ce0e620cd8573395afb2a7a81a5536a44412b7
......@@ -492,6 +492,29 @@ build_targets += $(call lib-full,$(pointgrey-name),$(pointgrey-ver))
endif
############################
# LIMA - IMXPAD
############################
ifneq ($(COMPILE_IMXPAD),0)
IMXPAD_LDFLAGS := $(LDFLAGS)
IMXPAD_LDLIBS := $(LDLIBS)
imxpad-name := imxpad
imxpad-objs := ../camera/imxpad/src/imXpad.o
imxpad-ver := ../camera/imxpad/VERSION
imxpad-flags := $(IMXPAD_LDFLAGS)
imxpad-deps := $(IMXPAD_LDLIBS)
$(call lib-full,$(imxpad-name),$(imxpad-ver)): $(imxpad-objs)
$(call compile-lib,$(imxpad-name),$(imxpad-ver),\
$(imxpad-flags),$(imxpad-deps),$@,$+)
$(call create-links,$(imxpad-name),$(imxpad-ver))
build_targets += $(call lib-full,$(imxpad-name),$(imxpad-ver))
endif
src: $(build_targets)
test:
......
......@@ -140,4 +140,12 @@ ifneq ($(COMPILE_POINTGREY),0)
sub-dirs += pointgrey
endif
ifndef COMPILE_IMXPAD
COMPILE_IMXPAD = 0
endif
ifneq ($(COMPILE_IMXPAD),0)
sub-dirs += imxpad
endif
include ../global.inc
Subproject commit c0a688f7df3cb9f96dd7693b9b0c2eaa4a99e2a2
......@@ -41,6 +41,7 @@ COMPILE_PHOTONICSCIENCE=0
COMPILE_PCO=0
COMPILE_MARCCD=0
COMPILE_POINTGREY=0
COMPILE_IMXPAD=0
COMPILE_CBF_SAVING=0
COMPILE_NXS_SAVING=0
COMPILE_FITS_SAVING=0
......@@ -52,6 +53,6 @@ export COMPILE_CORE COMPILE_SPS_IMAGE COMPILE_SIMULATOR \
COMPILE_BASLER COMPILE_PROSILICA COMPILE_ROPERSCIENTIFIC COMPILE_ADSC \
COMPILE_MYTHEN COMPILE_UEYE COMPILE_XH COMPILE_XPAD COMPILE_PERKINELMER \
COMPILE_ANDOR COMPILE_PHOTONICSCIENCE COMPILE_PCO COMPILE_MARCCD \
COMPILE_POINTGREY COMPILE_CBF_SAVING COMPILE_NXS_SAVING \
COMPILE_POINTGREY COMPILE_IMXPAD COMPILE_CBF_SAVING COMPILE_NXS_SAVING \
COMPILE_FITS_SAVING COMPILE_EDFGZ_SAVING COMPILE_CONFIG\
LINK_STRICT_VERSION
......@@ -169,6 +169,12 @@ POINTGREY_FULL_VERSION = $(shell cat camera/pointgrey/VERSION)
INSTALL_POINTGREY_VDIR = $(INSTALL_POINTGREY_DIR)/v$(POINTGREY_FULL_VERSION)
endif
ifneq ($(COMPILE_IMXPAD), 0)
INSTALL_IMXPAD_DIR = $(INSTALL_PLAT_DIR)/imXpad
IMXPAD_FULL_VERSION = $(shell cat camera/imxpad/VERSION)
INSTALL_IMXPAD_VDIR = $(INSTALL_IMXPAD_DIR)/v$(IMXPAD_FULL_VERSION)
endif
ifneq ($(COMPILE_SPS_IMAGE),0)
INSTALL_CONFIG_DEFINES += -DWITH_SPS_IMAGE
endif
......@@ -419,3 +425,12 @@ ifneq ($(COMPILE_POINTGREY), 0)
cp camera/pointgrey/include/*.h $(INSTALL_INCLUDE_DIR)
endif
ifneq ($(COMPILE_IMXPAD), 0)
mkdir -p $(INSTALL_IMXPAD_VDIR)
cp camera/imxpad/python/__init__.py $(INSTALL_IMXPAD_DIR)
$(call install_core_dep,$(INSTALL_IMXPAD_VDIR))
rm -rf $(INSTALL_LIB_DIR)/liblimaimxpad.so*
cp -d build/liblimaimxpad.so* $(INSTALL_LIB_DIR)
cp sip/imxpad/limaimxpad.so $(INSTALL_IMXPAD_VDIR)
cp camera/imxpad/include/*.h $(INSTALL_INCLUDE_DIR)
endif
......@@ -31,3 +31,4 @@ lima*.lib
*.pyd.manifest
*.pyd
.svn
imxpad
......@@ -91,6 +91,10 @@ ifneq ($(COMPILE_POINTGREY), 0)
sip-modules += pointgrey
endif
ifneq ($(COMPILE_IMXPAD), 0)
sip-modules += imxpad
endif
all: src
src:
......
......@@ -47,6 +47,7 @@ modules = [('core', ['common', 'hardware', 'control']),
('photonicscience', [os.path.join('camera','photonicscience')]),
('pilatus', [os.path.join('camera','pilatus')]),
('pointgrey', [os.path.join('camera','pointgrey')]),
('imxpad', [os.path.join('camera','imxpad')]),
]
espiaModules = ['espia', 'frelon', 'maxipix']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment