Commit dd25b396 authored by Laurent Claustre's avatar Laurent Claustre

Merge branch '56-build-standalone-camera-packages' into 'master'

56 build standalone camera packages

See merge request !5
parents eb94dde3 ae72f945
Pipeline #5466 passed with stages
in 6 minutes and 47 seconds
stages:
- build
- test
- deploy
build :
.build-conda: &build-conda
stage: build
script:
- cd ..
- cp -R /root/* .
- ./install_lima_submodule
- tar zxvf lib_for_lima/pylon-5.0.1.6388-x86_64.tar.gz
- cd pylon-5.0.1.6388-x86_64
- tar -C /opt -xzf pylonSDK*.tar.gz
- cd ../lima/camera/basler
- cp -R ../../../lima-camera-basler/* .
- cd ../..
- ./install.sh camera/basler python tests cbf fits tiff hdf5 config
- cd ../lima-camera-basler
- cp -R ../lima .
artifacts:
paths:
- lima/
- dist/
tags:
- conda
build-linux:
<<: *build-conda
script:
- conda build ./conda/camera --prefix-length=80 --output-folder=dist/ --channel=http://bcu-ci.esrf.fr/stable
tags:
- linux
build-win:
<<: *build-conda
script:
- conda build ./conda/camera --prefix-length=80 --output-folder=dist/ --channel=http://bcu-ci.esrf.fr/stable
tags:
- win
build-noarch:
<<: *build-conda
script:
- conda build ./conda/tango --prefix-length=80 --output-folder=dist/ --channel=http://bcu-ci.esrf.fr/stable
deploy-devel:
stage: deploy
environment:
name: devel/$CI_COMMIT_REF_NAME
url: http://bcu-ci.esrf.fr/devel
dependencies:
- build-linux
- build-win
- build-noarch
script:
- cp -Rf dist/* /conda-devel/
- conda index /conda-devel/
tags:
- conda
- linux
only:
- cmake
test :
stage: test
- branches
except:
- stable
when: manual
deploy-stable:
stage: deploy
environment:
name: production
url: http://bcu-ci.esrf.fr/stable
dependencies:
- build
- build-linux
- build-win
- build-noarch
script:
- cd ..
- cp -R lima-camera-basler/lima .
- cd lima/cmake-build/
- ctest --timeout 10
- cp -Rf dist/* /conda/
- conda index /conda/
tags:
- conda
- linux
only:
- cmake
- tags
- stable
This diff is collapsed.
This diff is collapsed.
*.ncb
*.suo
*.vcproj.*
Release*
Debug

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual C++ Express 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LibLimaBasler", "LibLimaBasler.vcproj", "{3E1490E7-66C0-4E77-9746-0632466FF270}"
ProjectSection(ProjectDependencies) = postProject
{F6556656-D091-43AF-B46F-355F4ABA5DB6} = {F6556656-D091-43AF-B46F-355F4ABA5DB6}
{A4B703A6-C50F-442F-8952-54FB8EA51FF3} = {A4B703A6-C50F-442F-8952-54FB8EA51FF3}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libprocesslib", "..\..\..\..\..\..\third-party\Processlib\build\msvc\9.0\libprocesslib\libprocesslib.vcproj", "{F6556656-D091-43AF-B46F-355F4ABA5DB6}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LibLimaCore", "..\..\..\..\..\..\build\msvc\9.0\LimaCore\LimaCore.vcproj", "{A4B703A6-C50F-442F-8952-54FB8EA51FF3}"
ProjectSection(ProjectDependencies) = postProject
{F6556656-D091-43AF-B46F-355F4ABA5DB6} = {F6556656-D091-43AF-B46F-355F4ABA5DB6}
{A0C36CE7-D908-4573-8B69-249EEEB7D2BE} = {A0C36CE7-D908-4573-8B69-249EEEB7D2BE}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libconfig++", "..\..\..\..\..\..\third-party\libconfig\lib\libconfig++.vcproj", "{A0C36CE7-D908-4573-8B69-249EEEB7D2BE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release_Win7_Sync|Win32 = Release_Win7_Sync|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3E1490E7-66C0-4E77-9746-0632466FF270}.Debug|Win32.ActiveCfg = Debug|Win32
{3E1490E7-66C0-4E77-9746-0632466FF270}.Debug|Win32.Build.0 = Debug|Win32
{3E1490E7-66C0-4E77-9746-0632466FF270}.Release_Win7_Sync|Win32.ActiveCfg = Release_Win7_Sync|Win32
{3E1490E7-66C0-4E77-9746-0632466FF270}.Release_Win7_Sync|Win32.Build.0 = Release_Win7_Sync|Win32
{3E1490E7-66C0-4E77-9746-0632466FF270}.Release|Win32.ActiveCfg = Release|Win32
{3E1490E7-66C0-4E77-9746-0632466FF270}.Release|Win32.Build.0 = Release|Win32
{F6556656-D091-43AF-B46F-355F4ABA5DB6}.Debug|Win32.ActiveCfg = Debug|Win32
{F6556656-D091-43AF-B46F-355F4ABA5DB6}.Debug|Win32.Build.0 = Debug|Win32
{F6556656-D091-43AF-B46F-355F4ABA5DB6}.Release_Win7_Sync|Win32.ActiveCfg = Release_Win7_Sync|Win32
{F6556656-D091-43AF-B46F-355F4ABA5DB6}.Release_Win7_Sync|Win32.Build.0 = Release_Win7_Sync|Win32
{F6556656-D091-43AF-B46F-355F4ABA5DB6}.Release|Win32.ActiveCfg = Release|Win32
{F6556656-D091-43AF-B46F-355F4ABA5DB6}.Release|Win32.Build.0 = Release|Win32
{A4B703A6-C50F-442F-8952-54FB8EA51FF3}.Debug|Win32.ActiveCfg = Debug|Win32
{A4B703A6-C50F-442F-8952-54FB8EA51FF3}.Debug|Win32.Build.0 = Debug|Win32
{A4B703A6-C50F-442F-8952-54FB8EA51FF3}.Release_Win7_Sync|Win32.ActiveCfg = Release_Win7_Sync|Win32
{A4B703A6-C50F-442F-8952-54FB8EA51FF3}.Release_Win7_Sync|Win32.Build.0 = Release_Win7_Sync|Win32
{A4B703A6-C50F-442F-8952-54FB8EA51FF3}.Release|Win32.ActiveCfg = Release_Win7_Sync|Win32
{A4B703A6-C50F-442F-8952-54FB8EA51FF3}.Release|Win32.Build.0 = Release_Win7_Sync|Win32
{A0C36CE7-D908-4573-8B69-249EEEB7D2BE}.Debug|Win32.ActiveCfg = Debug|Win32
{A0C36CE7-D908-4573-8B69-249EEEB7D2BE}.Debug|Win32.Build.0 = Debug|Win32
{A0C36CE7-D908-4573-8B69-249EEEB7D2BE}.Release_Win7_Sync|Win32.ActiveCfg = Release|Win32
{A0C36CE7-D908-4573-8B69-249EEEB7D2BE}.Release_Win7_Sync|Win32.Build.0 = Release|Win32
{A0C36CE7-D908-4573-8B69-249EEEB7D2BE}.Release|Win32.ActiveCfg = Release|Win32
{A0C36CE7-D908-4573-8B69-249EEEB7D2BE}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="LibLimaBasler"
ProjectGUID="{3E1490E7-66C0-4E77-9746-0632466FF270}"
RootNamespace="LibLimaBasler"
Keyword="Win32Proj"
TargetFrameworkVersion="196613"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="&quot;..\..\..\..\..\..\third-party\Processlib\core\include&quot;;&quot;..\..\..\..\..\..\third-party\Processlib\core\include\WindowSpecific&quot;;..\..\..\..\..\..\hardware\include;..\..\..\..\..\..\common\include;..\..\..\..\..\..\camera\basler\include;&quot;$(PYLON_ROOT)\include&quot;;&quot;$(PYLON_GENICAM_ROOT)\library\cpp\include&quot;"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBBASLER_EXPORTS;_WIN32_WINNT=0x0502;USE_GIGE"
MinimalRebuild="true"
BasicRuntimeChecks="0"
RuntimeLibrary="3"
DefaultCharIsUnsigned="false"
TreatWChar_tAsBuiltInType="true"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="LibLimaCore.lib ws2_32.lib PylonGigE_MDd_VC80.lib"
OutputFile="$(OutDir)\liblimabasler.dll"
LinkIncremental="2"
AdditionalLibraryDirectories="&quot;..\..\..\..\..\..\build\msvc\9.0\LimaCore\Debug&quot;;$(PYLON_GENICAM_ROOT)\library\cpp\lib\win32_i86;$(PYLON_ROOT)\lib\Win32"
GenerateDebugInformation="true"
SubSystem="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories="&quot;..\..\..\..\..\..\third-party\Processlib\core\include&quot;;&quot;..\..\..\..\..\..\third-party\Processlib\core\include\WindowSpecific&quot;;..\..\..\..\..\..\hardware\include;..\..\..\..\..\..\common\include;..\..\..\..\..\..\camera\basler\include;&quot;$(PYLON_ROOT)\include&quot;;&quot;$(PYLON_GENICAM_ROOT)\library\cpp\include&quot;"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBBASLER_EXPORTS;_WIN32_WINNT=0x0502;USE_GIGE"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="LibLimaCore.lib ws2_32.lib PylonGigE_MD_VC80.lib"
OutputFile="$(OutDir)\liblimabasler.dll"
LinkIncremental="1"
AdditionalLibraryDirectories="&quot;..\..\..\..\..\..\build\msvc\9.0\LimaCore\Release&quot;;$(PYLON_GENICAM_ROOT)\library\cpp\lib\win32_i86;$(PYLON_ROOT)\lib\Win32"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release_Win7_Sync|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories="&quot;..\..\..\..\..\..\third-party\Processlib\core\include&quot;;&quot;..\..\..\..\..\..\third-party\Processlib\core\include\WindowSpecific&quot;;..\..\..\..\..\..\hardware\include;..\..\..\..\..\..\common\include;..\..\..\..\..\..\camera\basler\include;&quot;$(PYLON_ROOT)\include&quot;;&quot;$(PYLON_GENICAM_ROOT)\library\cpp\include&quot;"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBBASLER_EXPORTS;_WIN32_WINNT=0x0600;USE_GIGE"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="LibLimaCore.lib ws2_32.lib PylonGigE_MD_VC80.lib"
OutputFile="Release\liblimabasler.dll"
LinkIncremental="1"
AdditionalLibraryDirectories="&quot;..\..\..\..\..\..\build\msvc\9.0\LimaCore\Release&quot;;$(PYLON_GENICAM_ROOT)\library\cpp\lib\win32_i86;$(PYLON_ROOT)\lib\Win32"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath="..\..\..\..\src\BaslerBinCtrlObj.cpp"
>
</File>
<File
RelativePath="..\..\..\..\src\BaslerCamera.cpp"
>
</File>
<File
RelativePath="..\..\..\..\src\BaslerDetInfoCtrlObj.cpp"
>
</File>
<File
RelativePath="..\..\..\..\src\BaslerInterface.cpp"
>
</File>
<File
RelativePath="..\..\..\..\src\BaslerRoiCtrlObj.cpp"
>
</File>
<File
RelativePath="..\..\..\..\src\BaslerSyncCtrlObj.cpp"
>
</File>
<File
RelativePath="..\..\..\..\src\BaslerVideoCtrlObj.cpp"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath="..\..\..\..\include\BaslerBinCtrlObj.h"
>
</File>
<File
RelativePath="..\..\..\..\include\BaslerCamera.h"
>
</File>
<File
RelativePath="..\..\..\..\include\BaslerCompatibility.h"
>
</File>
<File
RelativePath="..\..\..\..\include\BaslerDetInfoCtrlObj.h"
>
</File>
<File
RelativePath="..\..\..\..\include\BaslerInterface.h"
>
</File>
<File
RelativePath="..\..\..\..\include\BaslerRoiCtrlObj.h"
>
</File>
<File
RelativePath="..\..\..\..\include\BaslerSyncCtrlObj.h"
>
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
</Filter>
<File
RelativePath=".\ReadMe.txt"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
set(PYLON_INCLUDE_DIRS)
set(PYLON_LIBRARIES)
set(PYLON_DEFINITIONS)
if(WIN32)
find_library(PYLONGUI_LIB PylonGUI${PYLON_SUFFIX} ${PYLON_ROOT}/lib/Win32 ${PYLON_ROOT}/lib/x64)
find_library(PYLONUTILITY_LIB PylonUtility${PYLON_SUFFIX} ${PYLON_ROOT}/lib/Win32 ${PYLON_ROOT}/lib/x64)
find_library(PYLONBOOTSTRAPPER_LIB PylonBootstrapper ${PYLON_ROOT}/lib/Win32 ${PYLON_ROOT}/lib/x64)
find_library(PYLONGCBASE_LIB GCBase${PYLON_SUFFIX}_v2_3 ${PYLON_ROOT}/../genicam/library/cpp/lib/win32_i86 ${PYLON_ROOT}/../genicam/library/cpp/lib/win64_x64)
find_library(PYLONGENAPI_LIB GenApi${PYLON_SUFFIX}_v2_3 ${PYLON_ROOT}/../genicam/library/cpp/lib/win32_i86 ${PYLON_ROOT}/../genicam/library/cpp/lib/win64_x64)
find_library(PYLONMATHPARSER_LIB MathParser${PYLON_SUFFIX}_v2_3 ${PYLON_ROOT}/../genicam/library/cpp/lib/win32_i86 ${PYLON_ROOT}/../genicam/library/cpp/lib/win64_x64)
find_library(PYLONLOG_LIB Log${PYLON_SUFFIX}_v2_3 ${PYLON_ROOT}/../genicam/library/cpp/lib/win32_i86 ${PYLON_ROOT}/../genicam/library/cpp/lib/win64_x64)
find_library(PYLONLOG4CPP_LIB log4cpp${PYLON_SUFFIX}_v2_3 ${PYLON_ROOT}/../genicam/library/cpp/lib/win32_i86 ${PYLON_ROOT}/../genicam/library/cpp/lib/win64_x64)
find_library(PYLONLOG4CPPSTATIC_LIB log4cpp-static${PYLON_SUFFIX}_v2_3 ${PYLON_ROOT}/../genicam/library/cpp/lib/win32_i86 ${PYLON_ROOT}/../genicam/library/cpp/lib/win64_x64)
find_library(PYLONCLALLSERIAL_LIB CLAllSerial${PYLON_SUFFIX}_v2_3 ${PYLON_ROOT}/../genicam/library/cpp/lib/win32_i86 ${PYLON_ROOT}/../genicam/library/cpp/lib/win64_x64)
find_library(PYLONCLPROTOCOL_LIB CLProtocol${PYLON_SUFFIX}_v2_3 ${PYLON_ROOT}/../genicam/library/cpp/lib/win32_i86 ${PYLON_ROOT}/../genicam/library/cpp/lib/win64_x64)
find_library(PYLONCLSERCOM_LIB CLSerCOM ${PYLON_ROOT}/../genicam/library/cpp/lib/win32_i86 ${PYLON_ROOT}/../genicam/library/cpp/lib/win64_x64)
set(PYLON_LIBRARIES REQUIRED_VARS
PYLONGUI_LIB PYLONUTILITY_LIB PYLONBOOTSTRAPPER_LIB PYLONGCBASE_LIB PYLONGENAPI_LIB PYLONMATHPARSER_LIB PYLONLOG_LIB PYLONLOG4CPP_LIB PYLONLOG4CPPSTATIC_LIB
PYLONCLALLSERIAL_LIB PYLONCLPROTOCOL_LIB PYLONCLSERCOM_LIB
endif()
if(WIN32)
list(APPEND PYLON_INCLUDE_DIRS "${PYLON_ROOT}/../genicam/library/cpp/include")
else()
list(APPEND PYLON_INCLUDE_DIRS "${PYLON_ROOT}/genicam/library/CPP/include")
endif()
list(APPEND PYLON_DEFINITIONS USE_GIGE)
if(WIN32)
list(APPEND PYLON_DEFINITIONS LIBBASLER_EXPORTS)
endif()
if (WIN32)
set(PYLON_SUFFIX "_MD_VC100" CACHE STRING "Suffix used in Windows for naming Pylon files")
find_library(BASLER_PYLONBASE_LIB PylonBase${PYLON_SUFFIX} ${PYLON_LIB_DIR})
find_library(BASLER_PYLONGIGESUPP_LIB PylonGigE${PYLON_SUFFIX}_TL ${PYLON_LIB_DIR})
else()
find_library(BASLER_PYLONBASE_LIB pylonbase ${PYLON_ROOT}/lib ${PYLON_ROOT}/lib64)
find_library(BASLER_PYLONGIGESUPP_LIB pylongigesupp ${PYLON_ROOT}/lib ${PYLON_ROOT}/lib64)
endif()
if (("${BASLER_PYLONBASE_LIB}" STREQUAL "BASLER_PYLONBASE_LIB-NOTFOUND") OR ("${BASLER_PYLONGIGESUPP_LIB}" STREQUAL "BASLER_PYLONGIGESUPP_LIB-NOTFOUND"))
message(FATAL_ERROR "${NAME} : pylonbase or pylongige not found")
endif()
if (WIN32)
list(APPEND PYLON_LIBRARIES ws2_32)
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Pylon3 DEFAULT_MSG
PYLON_LIBRARIES
PYLON_INCLUDE_DIRS
)
set(PYLON_LIBRARIES)
set(PYLON_DEFINITIONS)
# Pylon base
if (WIN32)
set(PYLON_SUFFIX "_MD_VC141" CACHE STRING "Suffix used in Windows for naming Pylon files")
find_library(PYLONBASE_LIB PylonBase_v5_1)
find_path(PYLON_INCLUDE_DIRS "pylon/PylonBase.h")
else()
find_library(PYLONBASE_LIB pylonbase ${PYLON_ROOT}/lib)
find_path(PYLON_INCLUDE_DIRS "pylon/PylonBase.h")
endif()
list(APPEND PYLON_LIBRARIES ${PYLONBASE_LIB})
if (("${BASLER_PYLONBASE_LIB}" STREQUAL "BASLER_PYLONBASE_LIB-NOTFOUND"))
message(FATAL_ERROR "${NAME} : pylonbase not found")
endif()
# Pylon additional Windows libraries
if(WIN32)
find_library(PYLON_GUI_LIB PylonGUI_v5_1)
find_library(PYLON_UTILITY_LIB PylonUtility_v5_1)
find_library(PYLON_GCBASE_LIB GCBase${PYLON_SUFFIX}_v3_1_Basler_pylon_v5_1)
find_library(PYLON_GENAPI_LIB GenApi${PYLON_SUFFIX}_v3_1_Basler_pylon_v5_1)
list(APPEND PYLON_LIBRARIES ${PYLON_GUI_LIB} ${PYLON_UTILITY_LIB} ${PYLON_GCBASE_LIB} ${PYLON_GENAPI_LIB})
endif()
list(APPEND PYLON_DEFINITIONS USE_GIGE)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Pylon5 DEFAULT_MSG
PYLON_LIBRARIES
PYLON_INCLUDE_DIRS
)
if (WIN32)
list(APPEND PYLON_LIBRARIES ws2_32)
list(APPEND PYLON_DEFINITIONS _WINSOCK_DEPRECATED_NO_WARNINGS)
endif()
if (PYLON_FIND_DEBUG)
message(STATUS "PYLON_DIR: ${PYLON_DIR}")
message(STATUS "PYLON_DEFINITIONS: ${PYLON_DEFINITIONS}")
message(STATUS "PYLON_INCLUDE_DIRS: ${PYLON_INCLUDE_DIRS}")
message(STATUS "PYLON_LIBRARIES: ${PYLON_LIBRARIES}")
endif()
# Config file for @PROJECT_NAME_LOWER@
#
# It defines the following variables:
#
# @PROJECT_NAME_UPPER@_INCLUDE_DIRS - include directory
# @PROJECT_NAME_UPPER@_LIBRARIES - all dynamic libraries
# @PROJECT_NAME_UPPER@_STATIC_LIBRARIES - all static libraries
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
find_dependency(Lima)
include("${CMAKE_CURRENT_LIST_DIR}/@TARGETS_EXPORT_NAME@.cmake")
check_required_components("@PROJECT_NAME@")
check_required_components(@PROJECT_NAME_LOWER@)
cmake -Bbuild -H. -G "%CMAKE_GENERATOR%" -DCAMERA_ENABLE_PYTHON=1 -DCAMERA_ENABLE_TESTS=1 -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -DPYTHON_SITE_PACKAGES_DIR=%SP_DIR% -DCMAKE_FIND_ROOT_PATH=%LIBRARY_PREFIX%
IF %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%
cmake --build build --config Release --target install
IF %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%
#!/bin/bash
cmake -Bbuild -H. -DCAMERA_ENABLE_PYTHON=1 -DCAMERA_ENABLE_TESTS=1 -DCMAKE_INSTALL_PREFIX=$PREFIX -DPYTHON_SITE_PACKAGES_DIR=$SP_DIR -DCMAKE_FIND_ROOT_PATH=$PREFIX
cmake --build build --target install
blas_impl:
- mkl # [x86_64]
c_compiler:
- vs2017 # [win]
cxx_compiler:
- vs2017 # [win]
python:
- 3.6
# This differs from target_platform in that it determines what subdir the compiler
# will target, not what subdir the compiler package will be itself.
# For example, we need a win-64 vs2008_win-32 package, so that we compile win-32
# code on win-64 miniconda.
cross_compiler_target_platform:
- win-64 # [win]
target_platform:
- win-64 # [win]
vc:
- 14
zip_keys:
- # [win]
- vc # [win]
- c_compiler # [win]
- cxx_compiler # [win]
{% set version = GIT_DESCRIBE_TAG[1:] %}
package:
name: lima-camera-basler
version: {{ version }}
source:
path: ../..
build:
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
requirements:
build:
- git
- cmake
- {{ compiler('cxx') }}
- lima-core
host:
- python {{ python }}
- numpy
- sip 4.18* #For the SIP generator
- pylon5-sdk
run:
- python {{ python }}
- sip 4.18* #For the SIP module
- lima-core
- pylon5-sdk
test:
requires:
- cmake
imports:
- Lima.Basler
commands:
- cmake --version
- ctest --version
- cpack --version
about:
home: https://github.com/esrf-bliss/Lima
license: GPL
license_file: COPYING
summary: a library for the unified control of 2D detectors
xcopy tango\*.* %SP_DIR%\Lima\Server\camera\
mkdir -p $SP_DIR/Lima/Server/camera && cp tango/*.* $SP_DIR/Lima/Server/camera
{% set version = GIT_DESCRIBE_TAG[1:] %}
package:
name: lima-camera-basler-tango
version: {{ version }}
source:
path: ../..
build:
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
noarch: python
requirements:
run:
- lima-tango-server
- lima-camera-basler
about:
home: https://github.com/esrf-bliss/Lima
license: GPL
license_file: COPYING
summary: a library for the unified control of 2D detectors
......@@ -22,7 +22,8 @@
#ifndef BASLERBINCTRLOBJ_H
#define BASLERBINCTRLOBJ_H