Commit ae72f945 authored by Samuel Debionne's avatar Samuel Debionne

Update the build sytem to support devel conda package

Update FindPylon5 for 5.1 under Windows
parent 8f7d03bf
Pipeline #5394 passed with stages
in 13 minutes and 1 second
......@@ -2,39 +2,34 @@ stages:
- build
- deploy
build-linux:
.build-conda: &build-conda
stage: build
script:
- conda build ./conda/camera --prefix-length=80 --output-folder=dist/ --channel=http://bcu-ci.esrf.fr/stable
artifacts:
paths:
- 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:
stage: build
<<: *build-conda
script:
- conda build ./conda/camera --prefix-length=80 --output-folder=dist/ --channel=http://bcu-ci.esrf.fr/stable
artifacts:
paths:
- dist/
tags:
- conda
- win
build-noarch:
stage: build
<<: *build-conda
script:
- conda build ./conda/tango --prefix-length=80 --output-folder=dist/ --channel=http://bcu-ci.esrf.fr/stable
artifacts:
paths:
- dist/
tags:
- conda
deploy_devel:
deploy-devel:
stage: deploy
environment:
name: devel/$CI_COMMIT_REF_NAME
......@@ -55,7 +50,7 @@ deploy_devel:
- stable
when: manual
deploy_stable:
deploy-stable:
stage: deploy
environment:
name: production
......
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. -DCMAKE_INSTALL_PREFIX=$PREFIX -DPYTHON_SITE_PACKAGES_DIR=$SP_DIR -DCMAKE_FIND_ROOT_PATH=$PREFIX
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
......@@ -15,11 +15,12 @@ requirements:
- git
- cmake
- {{ compiler('cxx') }}
- sip 4.18* #For the SIP generator
- lima-core
- pylon5-sdk
host:
- python {{ python }}
- numpy
- sip 4.18* #For the SIP generator
- pylon5-sdk
run:
- python {{ python }}
- sip 4.18* #For the SIP module
......@@ -27,7 +28,9 @@ requirements:
- pylon5-sdk
test:
import:
requires:
- cmake
imports:
- Lima.Basler
commands:
- cmake --version
......
cp tango/*.* $SP_DIR/Lima/Server/camera
mkdir -p $SP_DIR/Lima/Server/camera && cp tango/*.* $SP_DIR/Lima/Server/camera
......@@ -22,7 +22,8 @@
#ifndef BASLERBINCTRLOBJ_H
#define BASLERBINCTRLOBJ_H
#include "BaslerCompatibility.h"
#include <basler_export.h>
#include "lima/HwBinCtrlObj.h"
#include "lima/HwInterface.h"
......
......@@ -22,6 +22,9 @@
#ifndef BASLERCAMERA_H
#define BASLERCAMERA_H
#include <stdlib.h>
#include <limits>
#if defined (__GNUC__) && (__GNUC__ == 3) && defined (__ELF__)
# define GENAPI_DECL __attribute__((visibility("default")))
# define GENAPI_DECL_ABSTRACT __attribute__((visibility("default")))
......@@ -29,14 +32,14 @@
#include <pylon/PylonIncludes.h>
#include <pylon/gige/BaslerGigEDeviceInfo.h>
#include <stdlib.h>
#include <limits>
#include <basler_export.h>
#include "lima/HwMaxImageSizeCallback.h"
#include "lima/HwBufferMgr.h"
#include "BaslerCompatibility.h"
using namespace Pylon;
using namespace std;
#if defined( USE_1394 )
// Settings to use Basler 1394 cameras
......@@ -56,8 +59,6 @@ using namespace Basler_GigEStreamParams;
#endif
namespace lima
{
namespace Basler
......@@ -67,7 +68,7 @@ namespace Basler
* \brief object controlling the basler camera via Pylon driver
*******************************************************************/
class VideoCtrlObj;
class LIBBASLER_API Camera
class BASLER_EXPORT Camera
{
DEB_CLASS_NAMESPC(DebModCamera, "Camera", "Basler");
friend class Interface;
......@@ -215,9 +216,9 @@ class LIBBASLER_API Camera
int m_socketBufferSize;
//- basler stuff
string m_camera_id;
string m_detector_model;
string m_detector_type;
std::string m_camera_id;
std::string m_detector_model;
std::string m_detector_type;
Size m_detector_size;
//- Pylon stuff
......
......@@ -22,7 +22,8 @@
#ifndef BASLERDETINFOCTRLOBJ_H
#define BASLERDETINFOCTRLOBJ_H
#include "BaslerCompatibility.h"
#include <basler_export.h>
#include "lima/HwDetInfoCtrlObj.h"
#include "lima/Debug.h"
......
......@@ -22,7 +22,8 @@
#ifndef BASLERINTERFACE_H
#define BASLERINTERFACE_H
#include "BaslerCompatibility.h"
#include <basler_export.h>
#include "lima/HwInterface.h"
namespace lima
......@@ -36,7 +37,7 @@ namespace lima
class BinCtrlObj;
class VideoCtrlObj;
class Camera;
class LIBBASLER_API Interface : public HwInterface
class BASLER_EXPORT Interface : public HwInterface
{
DEB_CLASS_NAMESPC(DebModCamera, "BaslerInterface", "Basler");
......
......@@ -22,7 +22,8 @@
#ifndef BASLERROICTRLOBJ_H
#define BASLERROICTRLOBJ_H
#include "BaslerCompatibility.h"
#include <basler_export.h>
#include "lima/HwRoiCtrlObj.h"
#include "lima/HwInterface.h"
......
......@@ -22,7 +22,8 @@
#ifndef BASLERSYNCCTRLOBJ_H
#define BASLERSYNCCTRLOBJ_H
#include "BaslerCompatibility.h"
#include <basler_export.h>
#include "lima/HwSyn