|
28 | 28 | <WasmEnableJsInteropByValue Condition="'$(WasmEnableJsInteropByValue)' == '' and '$(WasmEnableThreads)' == 'true'">true</WasmEnableJsInteropByValue> |
29 | 29 | <WasmEnableJsInteropByValue Condition="'$(WasmEnableJsInteropByValue)' == ''">false</WasmEnableJsInteropByValue> |
30 | 30 | <EnableDiagnostics Condition="'$(EnableDiagnostics)' == ''">false</EnableDiagnostics> |
31 | | - <FilterSystemTimeZones Condition="'$(FilterSystemTimeZones)' == ''">false</FilterSystemTimeZones> |
32 | 31 | <EmccCmd>emcc</EmccCmd> |
33 | 32 | <WasmObjDir>$(ArtifactsObjDir)wasm</WasmObjDir> |
34 | 33 | <_EmccDefaultsRspPath>$(NativeBinDir)src\emcc-default.rsp</_EmccDefaultsRspPath> |
|
46 | 45 |
|
47 | 46 | <ItemGroup> |
48 | 47 | <PackageReference Include="Microsoft.NETCore.Runtime.ICU.Transport" PrivateAssets="all" Version="$(MicrosoftNETCoreRuntimeICUTransportVersion)" GeneratePathProperty="true" /> |
49 | | - <PackageReference Include="System.Runtime.TimeZoneData" PrivateAssets="all" Version="$(SystemRuntimeTimeZoneDataVersion)" GeneratePathProperty="true" /> |
50 | 48 | </ItemGroup> |
51 | 49 |
|
52 | 50 | <UsingTask TaskName="ManagedToNativeGenerator" AssemblyFile="$(WasmAppBuilderTasksAssemblyPath)" TaskFactory="TaskHostFactory" /> |
|
81 | 79 | </ManagedToNativeGenerator> |
82 | 80 | </Target> |
83 | 81 |
|
84 | | - <UsingTask TaskName="EmitBundleSourceFiles" AssemblyFile="$(MonoTargetsTasksAssemblyPath)" TaskFactory="TaskHostFactory" /> |
85 | | - <Target Name="GenerateTimezonesArchive" Returns="@(_WasmArchivedTimezones)" Condition="'$(InvariantTimezone)' != 'true'"> |
86 | | - <PropertyGroup> |
87 | | - <_WasmTimezonesPath>$([MSBuild]::NormalizePath('$(PkgSystem_Runtime_TimeZoneData)', 'contentFiles', 'any', 'any', 'data'))</_WasmTimezonesPath> |
88 | | - <_WasmTimezonesBundleSourceFile>wasm-bundled-timezones.c</_WasmTimezonesBundleSourceFile> |
89 | | - <_WasmTimezonesBundleArchive>$(WasmObjDir)\wasm-bundled-timezones.a</_WasmTimezonesBundleArchive> |
90 | | - <_WasmTimezonesSourcesRsp>$(WasmObjDir)\wasm-bundled-timezones-sources.rsp</_WasmTimezonesSourcesRsp> |
91 | | - <_WasmTimezonesArchiveRsp>$(WasmObjDir)\wasm-bundled-timezones-archive.rsp</_WasmTimezonesArchiveRsp> |
92 | | - </PropertyGroup> |
93 | | - <ItemGroup> |
94 | | - <_WasmTimezonesInternal Include="$(_WasmTimezonesPath)\**\*.*" WasmRole="Timezone"/> |
95 | | - </ItemGroup> |
96 | | - <ItemGroup> |
97 | | - <_WasmTimezonesInternal Update="@(_WasmTimezonesInternal)"> |
98 | | - <RegisteredName>/usr/share/zoneinfo/$([MSBuild]::MakeRelative($(_WasmTimezonesPath), %(_WasmTimezonesInternal.Identity)).Replace('\','/'))</RegisteredName> |
99 | | - </_WasmTimezonesInternal> |
100 | | - </ItemGroup> |
101 | | - <!-- TODO make this incremental compilation --> |
102 | | - <EmitBundleSourceFiles |
103 | | - FilesToBundle="@(_WasmTimezonesInternal)" |
104 | | - BundleRegistrationFunctionName="mono_register_timezones_bundle" |
105 | | - BundleFile="$(_WasmTimezonesBundleSourceFile)" |
106 | | - OutputDirectory="$(WasmObjDir)"> |
107 | | - <Output TaskParameter="BundledResources" ItemName="BundledWasmTimezones" /> |
108 | | - </EmitBundleSourceFiles> |
109 | 82 |
|
110 | | - <ItemGroup> |
111 | | - <_WasmBundleTimezonesSources Include="$([MSBuild]::MakeRelative($(WasmObjDir), %(BundledWasmTimezones.DestinationFile)).Replace('\','/'))" /> |
112 | | - <_WasmBundleTimezonesSources Include="$(_WasmTimezonesBundleSourceFile)" /> |
113 | | - </ItemGroup> |
114 | | - <WriteLinesToFile File="$(_WasmTimezonesSourcesRsp)" |
115 | | - Overwrite="true" |
116 | | - Lines="@(_WasmBundleTimezonesSources, ' ')" |
117 | | - WriteOnlyWhenDifferent="true" /> |
118 | | - <RunWithEmSdkEnv Command="$(EmccCmd) -xc -c @$(_WasmTimezonesSourcesRsp)" |
119 | | - WorkingDirectory="$(WasmObjDir)" |
120 | | - EmSdkPath="$(EMSDK_PATH)" |
121 | | - ConsoleToMsBuild="true" |
122 | | - IgnoreStandardErrorWarningFormat="true"> |
123 | | - </RunWithEmSdkEnv> |
124 | | - <ItemGroup> |
125 | | - <WasmBundleTimezonesObjects Include="%(_WasmBundleTimezonesSources.Filename).o" /> |
126 | | - </ItemGroup> |
127 | | - <WriteLinesToFile File="$(_WasmTimezonesArchiveRsp)" |
128 | | - Overwrite="true" |
129 | | - Lines="@(WasmBundleTimezonesObjects, ' ')" |
130 | | - WriteOnlyWhenDifferent="true" /> |
131 | | - <RunWithEmSdkEnv Command="$(EmSdkLLVMAr) cs -r $(_WasmTimezonesBundleArchive) @$(_WasmTimezonesArchiveRsp)" |
132 | | - EmSdkPath="$(EMSDK_PATH)" |
133 | | - WorkingDirectory="$(WasmObjDir)" |
134 | | - ConsoleToMsBuild="true" |
135 | | - IgnoreStandardErrorWarningFormat="true"> |
136 | | - </RunWithEmSdkEnv> |
137 | | - |
138 | | - <ItemGroup> |
139 | | - <_WasmArchivedTimezones Include="$(WasmObjDir)\wasm-bundled-timezones.a" /> |
140 | | - </ItemGroup> |
141 | | - |
142 | | - <!-- Clean up the bundle-objects dir - remove anything we no longer need --> |
143 | | - <ItemGroup> |
144 | | - <_WasmBundleTimezonesToDelete Include="$(_WasmIntermediateOutputPath)*.o" /> |
145 | | - <_WasmBundleTimezonesToDelete Include="$(_WasmIntermediateOutputPath)*.c" /> |
146 | | - <_WasmBundleTimezonesToDelete Remove="$(WasmObjDir)\$(_WasmTimezonesBundleSourceFile)" /> |
147 | | - <_WasmBundleTimezonesToDelete Remove="%(BundledWasmTimezones.DestinationFile)" /> |
148 | | - <_WasmBundleTimezonesToDelete Remove="$(WasmObjDir)\%(WasmBundleTimezonesObjects)" /> |
149 | | - </ItemGroup> |
150 | | - <Delete Files="@(_WasmBundleTimezonesToDelete)" /> |
151 | | - </Target> |
152 | 83 |
|
153 | 84 | <Target Name="GenerateEmccPropsAndRspFiles"> |
154 | 85 |
|
|
374 | 305 | <!-- This is a documented target that is invoked by developers in their innerloop work. --> |
375 | 306 | <Target Name="BuildWasmRuntimes" |
376 | 307 | AfterTargets="Build" |
377 | | - DependsOnTargets="GenerateEmccPropsAndRspFiles;GenerateManagedToNative;GenerateTimezonesArchive;InstallNpmPackages;BuildWithRollup"> |
| 308 | + DependsOnTargets="GenerateEmccPropsAndRspFiles;GenerateManagedToNative;InstallNpmPackages;BuildWithRollup"> |
378 | 309 |
|
379 | 310 | <ItemGroup> |
380 | 311 | <ICULibNativeFiles Include="$(ICULibDir)/libicuuc.a; |
|
475 | 406 | SkipUnchangedFiles="true" /> |
476 | 407 |
|
477 | 408 | <Copy SourceFiles="@(ICULibFiles); |
478 | | - @(ICULibNativeFiles); |
479 | | - @(_WasmArchivedTimezones);" |
| 409 | + @(ICULibNativeFiles);" |
480 | 410 | DestinationFolder="$(NativeBinDir)" |
481 | 411 | SkipUnchangedFiles="true" /> |
482 | 412 |
|
|
519 | 449 | DestinationFolder="$(MicrosoftNetCoreAppRuntimePackNativeDir)" |
520 | 450 | SkipUnchangedFiles="true" /> |
521 | 451 |
|
522 | | - <Copy SourceFiles="@(IcuDataFiles);@(ICULibNativeFiles);@(_WasmArchivedTimezones)" |
| 452 | + <Copy SourceFiles="@(IcuDataFiles);@(ICULibNativeFiles)" |
523 | 453 | DestinationFolder="$(MicrosoftNetCoreAppRuntimePackNativeDir)" |
524 | 454 | SkipUnchangedFiles="true" /> |
525 | 455 |
|
|
0 commit comments