Restructure of mono.sln and build properties to better fix static/dynamic library...
[mono.git] / msvc / libmonoruntime.vcxproj
index 78517bc7c3aece3e8f2b96fc3d519c791872fe43..b9b512dddb3c8e78358483bf31e09a4e015de98b 100644 (file)
       <Platform>x64</Platform>\r
     </ProjectConfiguration>\r
   </ItemGroup>\r
-  <ItemGroup>\r
-    <ClCompile Include="..\mono\metadata\appdomain.c" />\r
-    <ClCompile Include="..\mono\metadata\assembly.c" />\r
-    <ClCompile Include="..\mono\metadata\attach.c" />\r
-    <ClCompile Include="..\mono\metadata\boehm-gc.c" />\r
-    <ClCompile Include="..\mono\metadata\class.c" />\r
-    <ClCompile Include="..\mono\metadata\cominterop.c" />\r
-    <ClCompile Include="..\mono\metadata\console-win32.c" />\r
-    <ClCompile Include="..\mono\metadata\w32mutex-win32.c" />\r
-    <ClCompile Include="..\mono\metadata\w32semaphore-win32.c" />\r
-    <ClCompile Include="..\mono\metadata\w32event-win32.c" />\r
-    <ClCompile Include="..\mono\metadata\coree.c" />\r
-    <ClCompile Include="..\mono\metadata\custom-attrs.c" />\r
-    <ClCompile Include="..\mono\metadata\debug-helpers.c" />\r
-    <ClCompile Include="..\mono\metadata\debug-mono-ppdb.c" />\r
-    <ClCompile Include="..\mono\metadata\debug-mono-symfile.c" />\r
-    <ClCompile Include="..\mono\metadata\decimal-ms.c" />\r
-    <ClCompile Include="..\mono\metadata\dynamic-image.c" />\r
-    <ClCompile Include="..\mono\metadata\dynamic-stream.c" />\r
-    <ClCompile Include="..\mono\metadata\domain.c" />\r
-    <ClCompile Include="..\mono\metadata\environment.c" />\r
-    <ClCompile Include="..\mono\metadata\exception.c" />\r
-    <ClCompile Include="..\mono\metadata\file-io.c" />\r
-    <ClCompile Include="..\mono\metadata\file-mmap-windows.c" />\r
-    <ClCompile Include="..\mono\metadata\filewatcher.c" />\r
-    <ClCompile Include="..\mono\metadata\gc-stats.c" />\r
-    <ClCompile Include="..\mono\metadata\gc.c" />\r
-    <ClCompile Include="..\mono\metadata\handle.c" />\r
-    <ClCompile Include="..\mono\metadata\icall.c" />\r
-    <ClCompile Include="..\mono\metadata\image.c" />\r
-    <ClCompile Include="..\mono\metadata\jit-info.c" />\r
-    <ClCompile Include="..\mono\metadata\loader.c" />\r
-    <ClCompile Include="..\mono\metadata\locales.c" />\r
-    <ClCompile Include="..\mono\metadata\lock-tracer.c" />\r
-    <ClCompile Include="..\mono\metadata\marshal.c" />\r
-    <ClCompile Include="..\mono\metadata\mempool.c" />\r
-    <ClCompile Include="..\mono\metadata\metadata-verify.c" />\r
-    <ClCompile Include="..\mono\metadata\metadata.c" />\r
-    <ClCompile Include="..\mono\metadata\metadata-cross-helpers.c" />\r
-    <ClCompile Include="..\mono\metadata\method-builder.c" />\r
-    <ClCompile Include="..\mono\metadata\monitor.c" />\r
-    <ClCompile Include="..\mono\metadata\mono-basic-block.c" />\r
-    <ClCompile Include="..\mono\metadata\mono-config.c" />\r
-    <ClCompile Include="..\mono\metadata\mono-config-dirs.c" />\r
-    <ClCompile Include="..\mono\metadata\mono-debug.c" />\r
-    <ClCompile Include="..\mono\metadata\mono-endian.c" />\r
-    <ClCompile Include="..\mono\metadata\mono-hash.c" />\r
-    <ClCompile Include="..\mono\metadata\mono-mlist.c" />\r
-    <ClCompile Include="..\mono\metadata\mono-perfcounters.c" />\r
-    <ClCompile Include="..\mono\metadata\nacl-stub.c" />\r
-    <ClCompile Include="..\mono\metadata\null-gc.c" />\r
-    <ClCompile Include="..\mono\metadata\number-ms.c" />\r
-    <ClCompile Include="..\mono\metadata\object.c" />\r
-    <ClCompile Include="..\mono\metadata\opcodes.c" />\r
-    <ClCompile Include="..\mono\metadata\process.c" />\r
-    <ClCompile Include="..\mono\metadata\profiler.c" />\r
-    <ClCompile Include="..\mono\metadata\rand.c" />\r
-    <ClCompile Include="..\mono\metadata\reflection.c" />\r
-    <ClCompile Include="..\mono\metadata\remoting.c" />\r
-    <ClCompile Include="..\mono\metadata\runtime.c" />\r
-    <ClCompile Include="..\mono\metadata\security-core-clr.c" />\r
-    <ClCompile Include="..\mono\metadata\security-manager.c" />\r
-    <ClCompile Include="..\mono\metadata\mono-security.c" />\r
-    <ClCompile Include="..\mono\metadata\seq-points-data.c" />\r
-    <ClCompile Include="..\mono\metadata\sgen-mono.c" />\r
-    <ClCompile Include="..\mono\metadata\sgen-os-coop.c" />\r
-    <ClCompile Include="..\mono\metadata\threadpool-ms-io.c" />\r
-    <ClCompile Include="..\mono\metadata\threadpool-ms.c" />\r
-    <ClCompile Include="..\mono\metadata\sgen-bridge.c" />\r
-    <ClCompile Include="..\mono\metadata\sgen-new-bridge.c" />\r
-    <ClCompile Include="..\mono\metadata\sgen-old-bridge.c" />\r
-    <ClCompile Include="..\mono\metadata\sgen-os-mach.c">\r
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>\r
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>\r
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>\r
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>\r
-    </ClCompile>\r
-    <ClCompile Include="..\mono\metadata\sgen-os-posix.c">\r
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>\r
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>\r
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>\r
-      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>\r
-    </ClCompile>\r
-    <ClCompile Include="..\mono\metadata\sgen-os-win32.c" />\r
-    <ClCompile Include="..\mono\metadata\sgen-tarjan-bridge.c" />\r
-    <ClCompile Include="..\mono\metadata\sgen-toggleref.c" />\r
-    <ClCompile Include="..\mono\metadata\sgen-stw.c" />\r
-    <ClCompile Include="..\mono\metadata\socket-io.c" />\r
-    <ClCompile Include="..\mono\metadata\sre.c" />\r
-    <ClCompile Include="..\mono\metadata\sre-encode.c" />\r
-    <ClCompile Include="..\mono\metadata\sre-save.c" />\r
-    <ClCompile Include="..\mono\metadata\string-icalls.c" />\r
-    <ClCompile Include="..\mono\metadata\sysmath.c" />\r
-    <ClCompile Include="..\mono\metadata\threads.c" />\r
-    <ClCompile Include="..\mono\metadata\verify.c" />\r
-  </ItemGroup>\r
-  <ItemGroup>\r
-    <ClInclude Include="..\mono\metadata\appdomain.h" />\r
-    <ClInclude Include="..\mono\metadata\assembly.h" />\r
-    <ClInclude Include="..\mono\metadata\attach.h" />\r
-    <ClInclude Include="..\mono\metadata\cil-coff.h" />\r
-    <ClInclude Include="..\mono\metadata\class-internals.h" />\r
-    <ClInclude Include="..\mono\metadata\class.h" />\r
-    <ClInclude Include="..\mono\metadata\cominterop.h" />\r
-    <ClInclude Include="..\mono\metadata\console-io.h" />\r
-    <ClInclude Include="..\mono\metadata\coree.h" />\r
-    <ClInclude Include="..\mono\metadata\culture-info-tables.h" />\r
-    <ClInclude Include="..\mono\metadata\culture-info.h" />\r
-    <ClInclude Include="..\mono\metadata\custom-attrs-internals.h" />\r
-    <ClInclude Include="..\mono\metadata\debug-helpers.h" />\r
-    <ClInclude Include="..\mono\metadata\debug-mono-ppdb.h" />\r
-    <ClInclude Include="..\mono\metadata\debug-mono-symfile.h" />\r
-    <ClInclude Include="..\mono\metadata\domain-internals.h" />\r
-    <ClInclude Include="..\mono\metadata\dynamic-image-internals.h" />\r
-    <ClInclude Include="..\mono\metadata\dynamic-stream-internals.h" />\r
-    <ClInclude Include="..\mono\metadata\environment.h" />\r
-    <ClInclude Include="..\mono\metadata\exception.h" />\r
-    <ClInclude Include="..\mono\metadata\file-io.h" />\r
-    <ClInclude Include="..\mono\metadata\filewatcher.h" />\r
-    <ClInclude Include="..\mono\metadata\gc-internals.h" />\r
-    <ClInclude Include="..\mono\metadata\handle.h" />\r
-    <ClInclude Include="..\mono\metadata\number-ms.h" />\r
-    <ClInclude Include="..\mono\metadata\remoting.h" />\r
-    <ClInclude Include="..\mono\metadata\seq-points-data.h" />\r
-    <ClInclude Include="..\mono\metadata\sgen-bridge-internals.h" />\r
-    <ClInclude Include="..\mono\metadata\sgen-client-mono.h" />\r
-    <ClInclude Include="..\mono\metadata\threadpool-ms-io.h" />\r
-    <ClInclude Include="..\mono\metadata\threadpool-ms.h" />\r
-    <ClInclude Include="..\mono\sgen\gc-internal-agnostic.h" />\r
-    <ClInclude Include="..\mono\metadata\icall-def.h" />\r
-    <ClInclude Include="..\mono\metadata\image.h" />\r
-    <ClInclude Include="..\mono\metadata\loader.h" />\r
-    <ClInclude Include="..\mono\metadata\locales.h" />\r
-    <ClInclude Include="..\mono\metadata\lock-tracer.h" />\r
-    <ClInclude Include="..\mono\metadata\marshal.h" />\r
-    <ClInclude Include="..\mono\metadata\mempool-internals.h" />\r
-    <ClInclude Include="..\mono\metadata\mempool.h" />\r
-    <ClInclude Include="..\mono\metadata\metadata-internals.h" />\r
-    <ClInclude Include="..\mono\metadata\metadata.h" />\r
-    <ClInclude Include="..\mono\metadata\method-builder.h" />\r
-    <ClInclude Include="..\mono\metadata\monitor.h" />\r
-    <ClInclude Include="..\mono\metadata\mono-basic-block.h" />\r
-    <ClInclude Include="..\mono\metadata\mono-config.h" />\r
-    <ClInclude Include="..\mono\metadata\mono-config-dirs.h" />\r
-    <ClInclude Include="..\mono\metadata\mono-debug-debugger.h" />\r
-    <ClInclude Include="..\mono\metadata\mono-debug.h" />\r
-    <ClInclude Include="..\mono\metadata\mono-endian.h" />\r
-    <ClInclude Include="..\mono\metadata\mono-hash.h" />\r
-    <ClInclude Include="..\mono\metadata\mono-mlist.h" />\r
-    <ClInclude Include="..\mono\metadata\mono-perfcounters-def.h" />\r
-    <ClInclude Include="..\mono\metadata\mono-perfcounters.h" />\r
-    <ClInclude Include="..\mono\metadata\mono-ptr-array.h" />\r
-    <ClInclude Include="..\mono\metadata\normalization-tables.h" />\r
-    <ClInclude Include="..\mono\metadata\number-formatter.h" />\r
-    <ClInclude Include="..\mono\metadata\object-internals.h" />\r
-    <ClInclude Include="..\mono\metadata\object.h" />\r
-    <ClInclude Include="..\mono\metadata\opcodes.h" />\r
-    <ClInclude Include="..\mono\metadata\process.h" />\r
-    <ClInclude Include="..\mono\metadata\profiler-private.h" />\r
-    <ClInclude Include="..\mono\metadata\profiler.h" />\r
-    <ClInclude Include="..\mono\metadata\rand.h" />\r
-    <ClInclude Include="..\mono\metadata\reflection.h" />\r
-    <ClInclude Include="..\mono\metadata\reflection-cache.h" />\r
-    <ClInclude Include="..\mono\metadata\reflection-internals.h" />\r
-    <ClInclude Include="..\mono\metadata\runtime.h" />\r
-    <ClInclude Include="..\mono\metadata\security-core-clr.h" />\r
-    <ClInclude Include="..\mono\metadata\security-manager.h" />\r
-    <ClInclude Include="..\mono\metadata\security.h" />\r
-    <ClInclude Include="..\mono\metadata\sgen-bridge.h" />\r
-    <ClInclude Include="..\mono\metadata\sgen-toggleref.h" />\r
-    <ClInclude Include="..\mono\metadata\socket-io.h" />\r
-    <ClInclude Include="..\mono\metadata\sre-internals.h" />\r
-    <ClInclude Include="..\mono\metadata\string-icalls.h" />\r
-    <ClInclude Include="..\mono\metadata\sysmath.h" />\r
-    <ClInclude Include="..\mono\metadata\tabledefs.h" />\r
-    <ClInclude Include="..\mono\metadata\threads-types.h" />\r
-    <ClInclude Include="..\mono\metadata\verify-internals.h" />\r
-    <ClInclude Include="..\mono\metadata\verify.h" />\r
-    <ClInclude Include="..\mono\metadata\wrapper-types.h" />\r
-  </ItemGroup>\r
   <ItemGroup>\r
     <ProjectReference Include="eglib.vcxproj">\r
       <Project>{158073ed-99ae-4196-9edc-ddb2344f8466}</Project>\r
       </PrecompiledHeader>\r
       <WarningLevel>Level3</WarningLevel>\r
       <Optimization>Disabled</Optimization>\r
-      <PreprocessorDefinitions>WIN32;WIN32_LEAN_AND_MEAN;$(GC_DEFINES);_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r
+      <PreprocessorDefinitions>WIN32;WIN32_LEAN_AND_MEAN;_LIB;$(GC_DEFINES);_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r
       <AdditionalIncludeDirectories>$(MONO_DIR);$(MONO_INCLUDE_DIR);$(LIBGC_CPPFLAGS_INCLUDE);$(GLIB_CFLAGS_INCLUDE);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>\r
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>\r
       <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>\r
+      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>\r
     </ClCompile>\r
     <Link>\r
       <SubSystem>Windows</SubSystem>\r
       </PrecompiledHeader>\r
       <WarningLevel>Level3</WarningLevel>\r
       <Optimization>Disabled</Optimization>\r
-      <PreprocessorDefinitions>WIN32;WIN32_LEAN_AND_MEAN;$(GC_DEFINES);_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r
+      <PreprocessorDefinitions>WIN32;WIN32_LEAN_AND_MEAN;_LIB;$(GC_DEFINES);WIN64;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r
       <AdditionalIncludeDirectories>$(MONO_DIR);$(MONO_INCLUDE_DIR);$(LIBGC_CPPFLAGS_INCLUDE);$(GLIB_CFLAGS_INCLUDE);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>\r
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>\r
       <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>\r
+      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>\r
     </ClCompile>\r
     <Link>\r
       <SubSystem>Windows</SubSystem>\r
       <WarningLevel>Level3</WarningLevel>\r
       <PrecompiledHeader>\r
       </PrecompiledHeader>\r
-      <Optimization>MaxSpeed</Optimization>\r
-      <FunctionLevelLinking>true</FunctionLevelLinking>\r
       <IntrinsicFunctions>true</IntrinsicFunctions>\r
-      <PreprocessorDefinitions>WIN32;WIN32_LEAN_AND_MEAN;$(GC_DEFINES);NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r
+      <PreprocessorDefinitions>WIN32;WIN32_LEAN_AND_MEAN;_LIB;$(GC_DEFINES);NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r
       <AdditionalIncludeDirectories>$(MONO_DIR);$(MONO_INCLUDE_DIR);$(LIBGC_CPPFLAGS_INCLUDE);$(GLIB_CFLAGS_INCLUDE);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>\r
       <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>\r
+      <StringPooling>true</StringPooling>\r
     </ClCompile>\r
     <Link>\r
       <SubSystem>Windows</SubSystem>\r
       <WarningLevel>Level3</WarningLevel>\r
       <PrecompiledHeader>\r
       </PrecompiledHeader>\r
-      <Optimization>MaxSpeed</Optimization>\r
-      <FunctionLevelLinking>true</FunctionLevelLinking>\r
       <IntrinsicFunctions>true</IntrinsicFunctions>\r
-      <PreprocessorDefinitions>WIN32;WIN32_LEAN_AND_MEAN;$(GC_DEFINES);NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r
+      <PreprocessorDefinitions>WIN32;WIN32_LEAN_AND_MEAN;_LIB;$(GC_DEFINES);WIN64;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r
       <AdditionalIncludeDirectories>$(MONO_DIR);$(MONO_INCLUDE_DIR);$(LIBGC_CPPFLAGS_INCLUDE);$(GLIB_CFLAGS_INCLUDE);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>\r
       <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>\r
+      <StringPooling>true</StringPooling>\r
     </ClCompile>\r
     <Link>\r
       <SubSystem>Windows</SubSystem>\r
     </Link>\r
     <Lib />\r
   </ItemDefinitionGroup>\r
+  <Import Project="libmonoruntime.targets" />\r
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />\r
   <ImportGroup Label="ExtensionTargets">\r
   </ImportGroup>\r