diff options
Diffstat (limited to 'src/ToolBox/SOS/diasdk')
-rw-r--r-- | src/ToolBox/SOS/diasdk/.gitmirror | 1 | ||||
-rw-r--r-- | src/ToolBox/SOS/diasdk/CMakeLists.txt | 16 | ||||
-rw-r--r-- | src/ToolBox/SOS/diasdk/diasdk.nativeproj | 43 | ||||
-rw-r--r-- | src/ToolBox/SOS/diasdk/native.rc | 7 |
4 files changed, 67 insertions, 0 deletions
diff --git a/src/ToolBox/SOS/diasdk/.gitmirror b/src/ToolBox/SOS/diasdk/.gitmirror new file mode 100644 index 0000000000..f507630f94 --- /dev/null +++ b/src/ToolBox/SOS/diasdk/.gitmirror @@ -0,0 +1 @@ +Only contents of this folder, excluding subfolders, will be mirrored by the Git-TFS Mirror.
\ No newline at end of file diff --git a/src/ToolBox/SOS/diasdk/CMakeLists.txt b/src/ToolBox/SOS/diasdk/CMakeLists.txt new file mode 100644 index 0000000000..07bbcdc9d9 --- /dev/null +++ b/src/ToolBox/SOS/diasdk/CMakeLists.txt @@ -0,0 +1,16 @@ +# replace backslashes in path with forward slash +STRING(REGEX REPLACE "\\\\" "/" VSINSTALLDIR $ENV{VSINSTALLDIR} ) + +# Generate managed type lib from dia2.idl +add_custom_target(dialib ALL + # generate tlb file from idl + COMMAND midl.exe /I"${VSINSTALLDIR}DIA SDK/include" /tlb ${CMAKE_CURRENT_BINARY_DIR}/dia2.tlb /Zp8 "${VSINSTALLDIR}DIA SDK/idl/dia2.idl" + # run tlbimp to generate managed type library + COMMAND TlbImp.exe /silent /namespace:Dia /unsafe /strictref:nopia ${CMAKE_CURRENT_BINARY_DIR}/dia2.tlb /out:${CMAKE_CURRENT_BINARY_DIR}/dialib.dll + COMMENT Generating managed type library from dia2.idl +) + +# In order to use dialib.dll as library target it needs to be imported into cmake +# Target is used in ToolBox/SOS/dactablegen/cmakelists.txt +add_library_clr(dialib_dll SHARED IMPORTED GLOBAL) +set_property(TARGET dialib_dll PROPERTY IMPORTED_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/dialib.dll) diff --git a/src/ToolBox/SOS/diasdk/diasdk.nativeproj b/src/ToolBox/SOS/diasdk/diasdk.nativeproj new file mode 100644 index 0000000000..230e2d9f93 --- /dev/null +++ b/src/ToolBox/SOS/diasdk/diasdk.nativeproj @@ -0,0 +1,43 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="dogfood"> + <!--*****************************************************--> + <!--This MSBuild project file was automatically generated--> + <!--from the original SOURCES/DIRS file by the KBC tool.--> + <!--*****************************************************--> + <!--Import the settings--> + <Import Project="$(_NTDRIVE)$(_NTROOT)\ndp\clr\clr.props" /> + <!--Leaf project Properties--> + <PropertyGroup> + <BuildCoreBinaries>true</BuildCoreBinaries> + <OutputName>DIALib</OutputName> + <TargetType>DLLFROMIDL</TargetType> + <AssemblyAttributeComVisible>true</AssemblyAttributeComVisible> + <UserIncludes>$(UserIncludes); + $(VCToolsIncPath)</UserIncludes> + <MidlTlbDir>$(IntermediateOutputDirectory)</MidlTlbDir> + <TlbImportFlags>/namespace:Dia /unsafe</TlbImportFlags> + </PropertyGroup> + + <ItemGroup> + <Idl Include="$(VCToolsIncPath)\dia2.idl" /> + <PublishPartLinked Include="$(IntermediateOutputDirectory)\dialib.dll"> + <Visibility>Intra</Visibility> + <FileType>Binary</FileType> + </PublishPartLinked> + </ItemGroup> + + <ItemGroup> + <RCResourceFile Include="native.rc" /> + </ItemGroup> + + <!--Leaf Project Items--> + <!--Import the targets--> + <Import Project="$(_NTDRIVE)$(_NTROOT)\ndp\clr\clr.targets" /> + + <PropertyGroup> + <BuildLinkedDependsOn> + $(BuildLinkedDependsOn) + PlaceSymbols + </BuildLinkedDependsOn> + </PropertyGroup> + +</Project> diff --git a/src/ToolBox/SOS/diasdk/native.rc b/src/ToolBox/SOS/diasdk/native.rc new file mode 100644 index 0000000000..4c1007fd9a --- /dev/null +++ b/src/ToolBox/SOS/diasdk/native.rc @@ -0,0 +1,7 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +#define FX_VER_FILEDESCRIPTION_STR "Microsoft\0" + +#include <fxver.h> +#include <fxver.rc> |