<commit_before>﻿<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <!-- By naming this exactly build/native/{ProjectName}.targets, this will be auto-referenced by projects consuming this nuget package. -->

  <PropertyGroup>
    <!-- Link known binaries -->
    <MmkDebugStackLink Condition="('$(MmkDebugStackLink)'=='') And ('$(PlatformToolset)'    =='v140'     ) And ('$(Platform)'=='Win32'             )">LinkWindowsX86v140</MmkDebugStackLink>
    <MmkDebugStackLink Condition="('$(MmkDebugStackLink)'=='') And ('$(PlatformToolset)'    =='v140'     ) And ('$(Platform)'=='x64'               )">LinkWindowsX64v140</MmkDebugStackLink>
    <MmkDebugStackLink Condition="('$(MmkDebugStackLink)'=='') And ('$(PlatformToolset)'    =='Clang_3_6') And ('$(Platform)'=='ARM'               )">LinkMsAndroidArmClang36</MmkDebugStackLink>
    <MmkDebugStackLink Condition="('$(MmkDebugStackLink)'=='') And ('$(NdkToolchainVersion)'=='gcc-4.9'  ) And ('$(Platform)'=='ARM-Android-NVIDIA')">LinkNvAndroidArmGcc49</MmkDebugStackLink>

    <!-- Build known source configurations -->
    <MmkDebugStackLink Condition="('$(MmkDebugStackLink)'=='') And ('$(ApplicationType)'    =='Android'  )                                          ">SrcUnwind</MmkDebugStackLink><!-- Microsoft Android SDK -->
    <MmkDebugStackLink Condition="('$(MmkDebugStackLink)'=='') And ('$(NdkToolchainVersion)'!=''         )                                          ">SrcUnwind</MmkDebugStackLink><!-- nVidia CodeWorks SDK -->
    <MmkDebugStackLink Condition="('$(MmkDebugStackLink)'=='') And ('$(Keyword)'            =='Win32Proj')                                          ">SrcDbghelp</MmkDebugStackLink>

    <MmkDebugStackLink Condition="('$(MmkDebugStackLink)'=='')                                                                                      ">SrcFallback</MmkDebugStackLink>
  </PropertyGroup>

  <PropertyGroup>
    <MmkDebugStackConfig Condition="('$(MmkDebugStackConfig)'=='') And ('$(Configuration)'=='Debug'  )">Debug</MmkDebugStackConfig>
    <MmkDebugStackConfig Condition="('$(MmkDebugStackConfig)'=='') And ('$(Configuration)'=='Release')">Release</MmkDebugStackConfig>
    <MmkDebugStackConfig Condition="('$(MmkDebugStackConfig)'=='')                                    ">Release</MmkDebugStackConfig><!-- We only provide Debug/Release libs, fallback on src for other platforms -->
  </PropertyGroup>

  <ItemGroup>
    <PropertyPageSchema Include="$(MSBuildThisFileDirectory)\libMmkDebugStack-propertiesui.xml" />
  </ItemGroup>

  <!-- Add source via indirect MmkDebugStackSrc tags to hide from Solution Explorer -->
  <ItemGroup>
    <MmkDebugStackSrc Include="$(MSBuildThisFileDirectory)..\..\src\**\*.cpp" />
  </ItemGroup>
  <ItemGroup>
    <ClCompile Include="@(MmkDebugStackSrc)">
      <ExcludedFromBuild Condition="('$(MmkDebugStackLink)'!='SrcDbghelp') And ('$(MmkDebugStackLink)'!='SrcUnwind') And ('$(MmkDebugStackLink)'!='SrcFallback')">true</ExcludedFromBuild>
      <PreprocessorDefinitions Condition="'$(MmkDebugStackLink)'=='SrcDbghelp'">MMK_DEBUG_STACK_USE_DBGHELP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <PreprocessorDefinitions Condition="'$(MmkDebugStackLink)'=='SrcUnwind' ">MMK_DEBUG_STACK_USE_UNWIND;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <PrecompiledHeader>NotUsing</PrecompiledHeader>
      <InProject>false</InProject>
      <Visible>false</Visible>
    </ClCompile>
  </ItemGroup>

  <!-- Build settings -->
  <ItemDefinitionGroup>
    <ClCompile>
      <AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
      <PreprocessorDefinitions>HAS_MMK_DEBUG_STACK;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    </ClCompile>
  </ItemDefinitionGroup>
  <ItemDefinitionGroup Condition="'$(MmkDebugStackLink)'=='LinkWindowsX86v140'">
    <Link>
      <AdditionalLibraryDirectories>$(MSBuildThisFileDirectory)lib\x86\v140\$(MmkDebugStackConfig);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
      <AdditionalDependencies>dbghelp.lib;version.lib;libMmkDebugStack.lib;%(AdditionalDependencies)</AdditionalDependencies>
    </Link>
    <Lib>
      <AdditionalLibraryDirectories>$(MSBuildThisFileDirectory)lib\x86\v140\$(MmkDebugStackConfig);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories><commit_msg>Disambiguate libMmkDebugStack .objs in case of naming collisions with the hosting project's .cpp files when building from source.<commit_after>﻿<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <!-- By naming this exactly build/native/{ProjectName}.targets, this will be auto-referenced by projects consuming this nuget package. -->

  <PropertyGroup>
    <!-- Link known binaries -->
    <MmkDebugStackLink Condition="('$(MmkDebugStackLink)'=='') And ('$(PlatformToolset)'    =='v140'     ) And ('$(Platform)'=='Win32'             )">LinkWindowsX86v140</MmkDebugStackLink>
    <MmkDebugStackLink Condition="('$(MmkDebugStackLink)'=='') And ('$(PlatformToolset)'    =='v140'     ) And ('$(Platform)'=='x64'               )">LinkWindowsX64v140</MmkDebugStackLink>
    <MmkDebugStackLink Condition="('$(MmkDebugStackLink)'=='') And ('$(PlatformToolset)'    =='Clang_3_6') And ('$(Platform)'=='ARM'               )">LinkMsAndroidArmClang36</MmkDebugStackLink>
    <MmkDebugStackLink Condition="('$(MmkDebugStackLink)'=='') And ('$(NdkToolchainVersion)'=='gcc-4.9'  ) And ('$(Platform)'=='ARM-Android-NVIDIA')">LinkNvAndroidArmGcc49</MmkDebugStackLink>

    <!-- Build known source configurations -->
    <MmkDebugStackLink Condition="('$(MmkDebugStackLink)'=='') And ('$(ApplicationType)'    =='Android'  )                                          ">SrcUnwind</MmkDebugStackLink><!-- Microsoft Android SDK -->
    <MmkDebugStackLink Condition="('$(MmkDebugStackLink)'=='') And ('$(NdkToolchainVersion)'!=''         )                                          ">SrcUnwind</MmkDebugStackLink><!-- nVidia CodeWorks SDK -->
    <MmkDebugStackLink Condition="('$(MmkDebugStackLink)'=='') And ('$(Keyword)'            =='Win32Proj')                                          ">SrcDbghelp</MmkDebugStackLink>

    <MmkDebugStackLink Condition="('$(MmkDebugStackLink)'=='')                                                                                      ">SrcFallback</MmkDebugStackLink>
  </PropertyGroup>

  <PropertyGroup>
    <MmkDebugStackConfig Condition="('$(MmkDebugStackConfig)'=='') And ('$(Configuration)'=='Debug'  )">Debug</MmkDebugStackConfig>
    <MmkDebugStackConfig Condition="('$(MmkDebugStackConfig)'=='') And ('$(Configuration)'=='Release')">Release</MmkDebugStackConfig>
    <MmkDebugStackConfig Condition="('$(MmkDebugStackConfig)'=='')                                    ">Release</MmkDebugStackConfig><!-- We only provide Debug/Release libs, fallback on src for other platforms -->
  </PropertyGroup>

  <ItemGroup>
    <PropertyPageSchema Include="$(MSBuildThisFileDirectory)\libMmkDebugStack-propertiesui.xml" />
  </ItemGroup>

  <!-- Add source via indirect MmkDebugStackSrc tags to hide from Solution Explorer -->
  <ItemGroup>
    <MmkDebugStackSrc Include="$(MSBuildThisFileDirectory)..\..\src\**\*.cpp" />
  </ItemGroup>
  <ItemGroup>
    <ClCompile Include="@(MmkDebugStackSrc)">
      <ExcludedFromBuild Condition="('$(MmkDebugStackLink)'!='SrcDbghelp') And ('$(MmkDebugStackLink)'!='SrcUnwind') And ('$(MmkDebugStackLink)'!='SrcFallback')">true</ExcludedFromBuild>
      <PreprocessorDefinitions Condition="'$(MmkDebugStackLink)'=='SrcDbghelp'">MMK_DEBUG_STACK_USE_DBGHELP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <PreprocessorDefinitions Condition="'$(MmkDebugStackLink)'=='SrcUnwind' ">MMK_DEBUG_STACK_USE_UNWIND;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <ObjectFileName>$(IntDir)libMmkDebugStack_%(filename).o</ObjectFileName>
      <PrecompiledHeader>NotUsing</PrecompiledHeader>
    </ClCompile>
  </ItemGroup>

  <!-- Build settings -->
  <ItemDefinitionGroup>
    <ClCompile>
      <AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
      <PreprocessorDefinitions>HAS_MMK_DEBUG_STACK;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    </ClCompile>
  </ItemDefinitionGroup>
  <ItemDefinitionGroup Condition="'$(MmkDebugStackLink)'=='LinkWindowsX86v140'">
    <Link>
      <AdditionalLibraryDirectories>$(MSBuildThisFileDirectory)lib\x86\v140\$(MmkDebugStackConfig);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
      <AdditionalDependencies>dbghelp.lib;version.lib;libMmkDebugStack.lib;%(AdditionalDependencies)</AdditionalDependencies>
    </Link>
    <Lib>
      <AdditionalLibraryDirectories>$(MSBuildThisFileDirectory)lib\x86\v140\$(MmkDebugStackConfig);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
{'fraction_non_alphanumeric': 0.16234272352744683, 'fraction_numerical': 0.011580002226923505, 'mean_word_length': 4.483516483516484, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 2, '>': 153, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2399073', 'n_tokens_mistral': 2727, 'n_tokens_neox': 2408, 'n_words': 343}