|
| 1 | +<Project> |
| 2 | + <ItemGroup> |
| 3 | + <PackageReference Condition="'$(TargetsWasm)' == 'true'" Include="Microsoft.NETCore.Runtime.ICU.Transport" PrivateAssets="all" Version="$(MicrosoftNETCoreRuntimeICUTransportVersion)" GeneratePathProperty="true" /> |
| 4 | + <PackageReference Condition="'$(TargetsWasm)' == 'true'" Include="System.Runtime.TimeZoneData" PrivateAssets="all" Version="$(SystemRuntimeTimeZoneDataVersion)" GeneratePathProperty="true" /> |
| 5 | + </ItemGroup> |
| 6 | + |
| 7 | + <PropertyGroup> |
| 8 | + <_RuntimeVariant /> |
| 9 | + <_RuntimeVariant Condition="'$(WasmEnableThreads)' == 'true'">-threads</_RuntimeVariant> |
| 10 | + |
| 11 | + <_IcuDir Condition="'$(PkgMicrosoft_NETCore_Runtime_ICU_Transport)' != '' and '$(TargetsWasm)' == 'true'">$(PkgMicrosoft_NETCore_Runtime_ICU_Transport)/runtimes/$(TargetOS)-$(TargetArchitecture)$(_RuntimeVariant)/native</_IcuDir> |
| 12 | + <_TzdDir Condition="'$(PkgSystem_Runtime_TimeZoneData)' != '' and '$(TargetsWasm)' == 'true'">$([MSBuild]::NormalizePath('$(PkgSystem_Runtime_TimeZoneData)', 'contentFiles', 'any', 'any', 'data'))</_TzdDir> |
| 13 | + </PropertyGroup> |
| 14 | + |
| 15 | + <ItemGroup> |
| 16 | + <NativeCMakeArg Condition="'$(_IcuDir)' != ''" Include="-cmakeargs "-DCMAKE_ICU_DIR=$(_IcuDir)"" /> |
| 17 | + <NativeCMakeArg Condition="'$(_TzdDir)' != ''" Include="-cmakeargs "-DCMAKE_TZD_DIR=$(_TzdDir)"" /> |
| 18 | + <NativeCMakeArg Condition="'$(RuntimeFlavor)' == 'Mono'" Include="-cmakeargs "-DCLR_CMAKE_RUNTIME_MONO=1"" /> |
| 19 | + <NativeCMakeArg Condition="'$(RuntimeFlavor)' == 'CoreCLR'" Include="-cmakeargs "-DCLR_CMAKE_RUNTIME_CORECLR=1"" /> |
| 20 | + <NativeCMakeArg Include="-cmakeargs "-DCMAKE_PRODUCT_VERSION=$(ProductVersion)"" /> |
| 21 | + <NativeCMakeArg Include="-cmakeargs "-DCMAKE_CONTINUOUS_INTEGRATION_BUILD=$(ContinuousIntegrationBuild)"" /> |
| 22 | + <NativeCMakeArg Include="-cmakeargs "-DCMAKE_NET_CORE_APP_CURRENT_VERSION=$(NetCoreAppCurrentVersion)"" /> |
| 23 | + <NativeCMakeArg Include="-cmakeargs "-DCMAKE_BUILD_LIBRARIES_CONFIGURATION=$(LibrariesConfiguration)"" /> |
| 24 | + <NativeCMakeArg Include="-cmakeargs "-DCMAKE_BUILD_RUNTIME_CONFIGURATION=$(RuntimeConfiguration)"" /> |
| 25 | + <NativeCMakeArg Condition="'$(TargetsBrowser)' == 'true' and '$(RuntimeFlavor)' == 'CoreCLR'" Include="-cmakeargs "-DBUILD_LIBS_NATIVE_BROWSER=1"" /> |
| 26 | + <NativeCMakeArg Condition="'$(TargetsBrowser)' == 'true'" Include="-cmakeargs "-DBUILD_LIBS_NATIVE_BROWSER=1"" /> |
| 27 | + </ItemGroup> |
| 28 | + |
| 29 | + <Target Name="GenerateEmccExports" Condition="'$(TargetsBrowser)' == 'true'"> |
| 30 | + <ItemGroup> |
| 31 | + <EmccExportedRuntimeMethod Include="FS" /> |
| 32 | + <EmccExportedRuntimeMethod Include="out" /> |
| 33 | + <EmccExportedRuntimeMethod Include="err" /> |
| 34 | + <EmccExportedRuntimeMethod Include="ccall" /> |
| 35 | + <EmccExportedRuntimeMethod Include="cwrap" /> |
| 36 | + <EmccExportedRuntimeMethod Include="setValue" /> |
| 37 | + <EmccExportedRuntimeMethod Include="getValue" /> |
| 38 | + <EmccExportedRuntimeMethod Include="UTF8ToString" /> |
| 39 | + <EmccExportedRuntimeMethod Include="UTF8ArrayToString" /> |
| 40 | + <EmccExportedRuntimeMethod Include="lengthBytesUTF8" /> |
| 41 | + <EmccExportedRuntimeMethod Include="stringToUTF8Array" /> |
| 42 | + <EmccExportedRuntimeMethod Include="FS_createPath" /> |
| 43 | + <EmccExportedRuntimeMethod Include="FS_createDataFile" /> |
| 44 | + <EmccExportedRuntimeMethod Include="removeRunDependency" /> |
| 45 | + <EmccExportedRuntimeMethod Include="addRunDependency" /> |
| 46 | + <EmccExportedRuntimeMethod Include="addFunction" /> |
| 47 | + <EmccExportedRuntimeMethod Include="safeSetTimeout" /> |
| 48 | + <EmccExportedRuntimeMethod Include="runtimeKeepalivePush" /> |
| 49 | + <EmccExportedRuntimeMethod Include="runtimeKeepalivePop" /> |
| 50 | + <EmccExportedRuntimeMethod Include="maybeExit" /> |
| 51 | + <EmccExportedRuntimeMethod Include="abort" /> |
| 52 | + |
| 53 | + <EmccExportedFunction Include="_free" /> |
| 54 | + <EmccExportedFunction Include="_htons" /> |
| 55 | + <EmccExportedFunction Include="_malloc" /> |
| 56 | + <EmccExportedFunction Include="_sbrk" /> |
| 57 | + <EmccExportedFunction Include="_memalign" /> |
| 58 | + <EmccExportedFunction Include="_posix_memalign" /> |
| 59 | + <EmccExportedFunction Include="_memset" /> |
| 60 | + <EmccExportedFunction Include="_ntohs" /> |
| 61 | + <EmccExportedFunction Include="stackAlloc" /> |
| 62 | + <EmccExportedFunction Include="stackRestore" /> |
| 63 | + <EmccExportedFunction Include="stackSave" /> |
| 64 | + <!-- TODO-WASM hide --> |
| 65 | + <EmccExportedFunction Include="_GetDotNetRuntimeContractDescriptor" /> |
| 66 | + </ItemGroup> |
| 67 | + <PropertyGroup> |
| 68 | + <_EmccExportedRuntimeMethods>@(EmccExportedRuntimeMethod -> '%(Identity)',',')</_EmccExportedRuntimeMethods> |
| 69 | + <_EmccExportedFunctions>@(EmccExportedFunction -> '%(Identity)',',')</_EmccExportedFunctions> |
| 70 | + </PropertyGroup> |
| 71 | + |
| 72 | + <ItemGroup> |
| 73 | + <NativeCMakeArg Condition="'$(TargetsBrowser)' == 'true'" Include="-cmakeargs "-DCMAKE_EMCC_EXPORTED_RUNTIME_METHODS=$(_EmccExportedRuntimeMethods)"" /> |
| 74 | + <NativeCMakeArg Condition="'$(TargetsBrowser)' == 'true'" Include="-cmakeargs "-DCMAKE_EMCC_EXPORTED_FUNCTIONS=$(_EmccExportedFunctions)"" /> |
| 75 | + </ItemGroup> |
| 76 | + |
| 77 | + </Target> |
| 78 | + |
| 79 | +</Project> |
0 commit comments