Rename ImageWriterDll to DelayLoadedExtensionsDll

This commit is contained in:
Thiago Crepaldi 2018-03-01 09:32:45 -08:00
Родитель cb1a23baf5
Коммит 85c1429ad6
10 изменённых файлов: 27 добавлений и 27 удалений

Просмотреть файл

@ -1623,7 +1623,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ProposalLayerLib", "Example
{E5606ECE-48CA-4464-BB12-09D81D02B9EF} = {E5606ECE-48CA-4464-BB12-09D81D02B9EF}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ImageWriterDll", "Source\ImageWriterDll\ImageWriterDll.vcxproj", "{2ECE5AEB-F471-4A1D-9BAD-963D5C8A8A1D}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DelayLoadedExtensionsDll", "Source\DelayLoadedExtensionsDll\DelayLoadedExtensionsDll.vcxproj", "{2ECE5AEB-F471-4A1D-9BAD-963D5C8A8A1D}"
ProjectSection(ProjectDependencies) = postProject
{86883653-8A61-4038-81A0-2379FAE4200A} = {86883653-8A61-4038-81A0-2379FAE4200A}
EndProjectSection

Просмотреть файл

@ -1040,30 +1040,30 @@ endif
endif
########################################
# ImageWriter plugin
# DelayLoadedExtensions plugin
########################################
ifdef OPENCV_PATH
IMAGEWRITER_LIBS_LIST := opencv_core opencv_imgproc opencv_imgcodecs
IMAGEWRITER_LIBS:= $(addprefix -l,$(IMAGEWRITER_LIBS_LIST))
DELAY_LOADED_EXTENSIONS_LIBS_LIST := opencv_core opencv_imgproc opencv_imgcodecs
DELAY_LOADED_EXTENSIONS_LIBS:= $(addprefix -l,$(DELAY_LOADED_EXTENSIONS_LIBS_LIST))
IMAGEWRITER_SRC =\
$(SOURCEDIR)/ImageWriterDll/ImageWriter.cpp \
DELAY_LOADED_EXTENSIONS_SRC =\
$(SOURCEDIR)/DelayLoadedExtensionsDll/ImageWriter.cpp \
IMAGEWRITER_OBJ := $(patsubst %.cpp, $(OBJDIR)/%.o, $(IMAGEWRITER_SRC))
DELAY_LOADED_EXTENSIONS_OBJ := $(patsubst %.cpp, $(OBJDIR)/%.o, $(DELAY_LOADED_EXTENSIONS_SRC))
IMAGEWRITER:=$(LIBDIR)/Cntk.ImageWriter-$(CNTK_COMPONENT_VERSION).so
ALL_LIBS += $(IMAGEWRITER)
PYTHON_LIBS += $(IMAGEWRITER)
JAVA_LOAD_DEPS += $(IMAGEWRITER_LIBS)
SRC+=$(IMAGEWRITER_SRC)
DELAY_LOADED_EXTENSIONS:=$(LIBDIR)/Cntk.DelayLoadedExtensions-$(CNTK_COMPONENT_VERSION).so
ALL_LIBS += $(DELAY_LOADED_EXTENSIONS)
PYTHON_LIBS += $(DELAY_LOADED_EXTENSIONS)
JAVA_LOAD_DEPS += $(DELAY_LOADED_EXTENSIONS_LIBS)
SRC+=$(DELAY_LOADED_EXTENSIONS_SRC)
INCLUDEPATH += $(OPENCV_PATH)/include
LIBPATH += $(OPENCV_PATH)/lib $(OPENCV_PATH)/release/lib
$(IMAGEWRITER): $(IMAGEWRITER_OBJ)
$(DELAY_LOADED_EXTENSIONS): $(DELAY_LOADED_EXTENSIONS_OBJ)
@echo $(SEPARATOR)
$(CXX) $(LDFLAGS) -shared $(patsubst %,-L%, $(LIBDIR) $(LIBPATH)) $(patsubst %,$(RPATH)%, $(ORIGINDIR) $(LIBPATH)) -o $@ $^ $(IMAGEWRITER_LIBS)
$(CXX) $(LDFLAGS) -shared $(patsubst %,-L%, $(LIBDIR) $(LIBPATH)) $(patsubst %,$(RPATH)%, $(ORIGINDIR) $(LIBPATH)) -o $@ $^ $(DELAY_LOADED_EXTENSIONS_LIBS)
endif
########################################

Просмотреть файл

@ -93,7 +93,7 @@
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<DelayLoadDLLs>Cntk.Math$(OutputSuffix)-$(CntkComponentVersion).dll; nvml.dll; $(CudaRuntimeDll); msmpi.dll;</DelayLoadDLLs>
<DelayLoadDLLs Condition="!$(IsUWP)">%(DelayLoadDLLs); Cntk.PerformanceProfiler-$(CntkComponentVersion).dll;Cntk.ImageWriter-$(CntkComponentVersion).dll</DelayLoadDLLs>
<DelayLoadDLLs Condition="!$(IsUWP)">%(DelayLoadDLLs); Cntk.PerformanceProfiler-$(CntkComponentVersion).dll;Cntk.DelayLoadedExtensions-$(CntkComponentVersion).dll</DelayLoadDLLs>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="$(ReleaseBuild)">
@ -111,7 +111,7 @@
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<DelayLoadDLLs>Cntk.Math$(OutputSuffix)-$(CntkComponentVersion).dll; nvml.dll; $(CudaRuntimeDll); msmpi.dll;</DelayLoadDLLs>
<DelayLoadDLLs Condition="!$(IsUWP)">%(DelayLoadDLLs); Cntk.PerformanceProfiler-$(CntkComponentVersion).dll;Cntk.ImageWriter-$(CntkComponentVersion).dll</DelayLoadDLLs>
<DelayLoadDLLs Condition="!$(IsUWP)">%(DelayLoadDLLs); Cntk.PerformanceProfiler-$(CntkComponentVersion).dll;Cntk.DelayLoadedExtensions-$(CntkComponentVersion).dll</DelayLoadDLLs>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="$(CpuOnlyBuild)">
@ -122,7 +122,7 @@
</ClCompile>
<Link>
<DelayLoadDLLs>Cntk.Math$(OutputSuffix)-$(CntkComponentVersion).dll; msmpi.dll;</DelayLoadDLLs>
<DelayLoadDLLs Condition="!$(IsUWP)">%(DelayLoadDLLs); Cntk.PerformanceProfiler-$(CntkComponentVersion).dll;Cntk.ImageWriter-$(CntkComponentVersion).dll</DelayLoadDLLs>
<DelayLoadDLLs Condition="!$(IsUWP)">%(DelayLoadDLLs); Cntk.PerformanceProfiler-$(CntkComponentVersion).dll;Cntk.DelayLoadedExtensions-$(CntkComponentVersion).dll</DelayLoadDLLs>
<OptimizeReferences Condition="'$(Configuration)|$(Platform)'=='Debug_CpuOnly|x64'">false</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
@ -276,4 +276,4 @@
<Warning Condition="!$(HasProtobuf)" Text="CNTKv2LibraryDll requires Protocol Buffers to build. Please see https://docs.microsoft.com/en-us/cognitive-toolkit/Setup-CNTK-on-Windows#protobuf for installation instructions." />
<Error Condition="!$(HasBoost)" Text="CNTKv2LibraryDll requires the Boost library to build. Please see https://docs.microsoft.com/en-us/cognitive-toolkit/Setup-CNTK-on-Windows#boost for installation instructions." />
</Target>
</Project>
</Project>

Просмотреть файл

@ -1018,7 +1018,7 @@ static const std::unordered_map<std::wstring, std::wstring> s_deprecatedReaderWr
{ L"ImageReader", L"Cntk.Deserializers.Image" },
// Image writer
{ L"ImageWriter", L"Cntk.ImageWriter" },
{ L"ImageWriter", L"Cntk.DelayLoadedExtensions" },
};
#ifdef _WIN32

Просмотреть файл

@ -25,8 +25,8 @@
<PropertyGroup Label="Globals">
<ProjectGuid>{2ECE5AEB-F471-4A1D-9BAD-963D5C8A8A1D}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>ImageWriterDll</RootNamespace>
<ProjectName>ImageWriterDll</ProjectName>
<RootNamespace>DelayLoadedExtensionsDll</RootNamespace>
<ProjectName>DelayLoadedExtensionsDll</ProjectName>
</PropertyGroup>
<Import Project="$(SolutionDir)\CNTK.Cpp.props" />
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
@ -50,11 +50,11 @@
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="$(DebugBuild)">
<LinkIncremental>true</LinkIncremental>
<TargetName>Cntk.ImageWriter-$(CntkComponentVersion)</TargetName>
<TargetName>Cntk.DelayLoadedExtensions-$(CntkComponentVersion)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="$(ReleaseBuild)">
<LinkIncremental>false</LinkIncremental>
<TargetName>Cntk.ImageWriter-$(CntkComponentVersion)</TargetName>
<TargetName>Cntk.DelayLoadedExtensions-$(CntkComponentVersion)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
@ -133,4 +133,4 @@
<Target Name="CheckDependencies">
<Error Condition="!$(HasOpenCv)" Text="ImageReaderDll requires OpenCv to build. Please see https://docs.microsoft.com/en-us/cognitive-toolkit/Setup-CNTK-on-Windows#optional-opencv for installation instructions." />
</Target>
</Project>
</Project>

Просмотреть файл

@ -2,7 +2,7 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
// ImageWriter.cpp : Defines the exported functions for the ImageWriter DLL.
// ImageWriter.cpp : Defines the exported functions for the DelayLoadedExtensions DLL.
//
#define IMAGEWRITER_EXPORTS // creating the exports here
@ -36,4 +36,4 @@ extern "C" IMAGEWRITER_API void EncodeImageAsPNG(void* matrix, ::CNTK::DataType
}
}
} } }
} } }

Просмотреть файл

@ -79,7 +79,7 @@ for %%D in (
Cntk.Math-%CNTK_COMPONENT_VERSION%.dll
Cntk.ExtensibilityExamples-%CNTK_COMPONENT_VERSION%.dll
Cntk.PerformanceProfiler-%CNTK_COMPONENT_VERSION%.dll
Cntk.ImageWriter-%CNTK_COMPONENT_VERSION%.dll
Cntk.DelayLoadedExtensions-%CNTK_COMPONENT_VERSION%.dll
libiomp5md.dll
mklml.dll
) do (