-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathmkall.targets
745 lines (693 loc) · 51.5 KB
/
mkall.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="Current">
<!-- Make all of FieldWorks. -->
<Target Name="mkall" DependsOnTargets="initLinux;initWindows;LinuxRegistry;allCpp;allCsharp;ensureTLBsUpToDate">
<Message Text="Finished mkall Target."/>
<CreateItem Condition="'$(action)'=='test'" Include="$(dir-outputBase)/*-nunit-output.xml">
<Output TaskParameter="Include" ItemName="NUnitReportFiles"/>
</CreateItem>
<GenerateNUnitReports Condition="'$(action)'=='test'" ReportFiles="@(NUnitReportFiles)"/>
</Target>
<Target Name="allCpp" DependsOnTargets="DebugProcs;GenericLib;testGenericLib;FwKernel;Views;testViews">
<CreateItem Include="$(dir-outputBase)/*.compmap">
<Output TaskParameter="Include" ItemName="CompMapFiles"/>
</CreateItem>
<CatenateFiles SourceFiles="@(CompMapFiles)" TargetFile="$(dir-outputBase)/components.map" Condition="'$(OS)'=='Unix'"/>
</Target>
<Target Name="allCppNoTest" DependsOnTargets="DebugProcs;GenericLib;FwKernel;Views">
<CreateItem Include="$(dir-outputBase)/*.compmap">
<Output TaskParameter="Include" ItemName="CompMapFiles"/>
</CreateItem>
<CatenateFiles SourceFiles="@(CompMapFiles)" TargetFile="$(dir-outputBase)/components.map" Condition="'$(OS)'=='Unix'"/>
</Target>
<ItemGroup>
<Fragments Include="$(dir-fwdistfiles)/*.fragment.manifest"/>
</ItemGroup>
<Target Name="regFreeCpp" DependsOnTargets="FwKernel;Views"
AfterTargets="FwKernel;Views" Condition="'$(OS)'=='Windows_NT'">
<RegFree Executable="$(dir-outputBase)/FwKernel.dll" Output="$(dir-outputBase)/FieldWorks.Tests.manifest"
Dlls="$(dir-outputBase)\FwKernel.dll;$(dir-outputBase)\Views.dll"
Fragments="@(Fragments)" Platform="$(Platform)" MSBuildArchitecture="$(Platform)"/>
</Target>
<Target Name="DebugProcs" DependsOnTargets="initLinux;initWindows">
<Make Condition="'$(OS)'=='Windows_NT'"
Makefile="$(fwrt)\Src\DebugProcs\DebugProcs.mak"
Configuration="$(config-capital)"
BuildRoot="$(fwrt)"
BuildArch="'$(Platform)'"
WorkingDirectory="$(fwrt)\Src\DebugProcs"/>
<Make Condition="'$(OS)'=='Unix'" ToolPath="/usr/bin"
Makefile="$(fwrt)/Src/DebugProcs/Makefile"
Configuration="$(config-capital)" Target="$(make-target)"
BuildRoot="$(fwrt)"
WorkingDirectory="$(fwrt)/Src/DebugProcs"/>
<Message Text="Finished building DebugProcs."/>
</Target>
<Target Name="GenericLib" DependsOnTargets="DebugProcs">
<Make Condition="'$(OS)'=='Windows_NT'"
Makefile="$(fwrt)\Src\Generic\GenericLib.mak"
Configuration="$(config-capital)"
BuildRoot="$(fwrt)"
BuildArch="'$(Platform)'"
WorkingDirectory="$(fwrt)\Src\Generic"/>
<Make Condition="'$(OS)'=='Unix'" ToolPath="/usr/bin"
Makefile="$(fwrt)/Src/Generic/Makefile"
Configuration="$(config-capital)" Target="$(make-target)"
BuildRoot="$(fwrt)"
WorkingDirectory="$(fwrt)/Src/Generic"/>
<Message Text="Finished building GenericLib."/>
</Target>
<Target Name="testGenericLib" DependsOnTargets="GenericLib;FwKernel;Views">
<Make Condition="'$(OS)'=='Windows_NT'"
Makefile="$(fwrt)\Src\Generic\Test\testGenericLib.mak"
Configuration="$(config-capital)"
BuildRoot="$(fwrt)"
BuildArch="'$(Platform)'"
WorkingDirectory="$(fwrt)\Bin"/>
<Make Condition="'$(OS)'=='Unix'" ToolPath="/usr/bin"
Makefile="$(fwrt)/Src/Generic/Test/Makefile"
Configuration="$(config-capital)" Target="$(make-target)"
BuildRoot="$(fwrt)"
WorkingDirectory="$(fwrt)/Src/Generic/Test" ContinueOnError="true"/>
<RegFree Executable="$(dir-outputBase)\testGenericLib.exe"
DependentAssemblies="$(dir-outputBase)\FwKernel.X.manifest;$(dir-outputBase)\Views.X.manifest"
Condition="'$(OS)'=='Windows_NT'" Platform="$(Platform)" MSBuildArchitecture="$(Platform)"/>
<Exec Command="set PATH=$(PATH) mt.exe -outputresource:$(dir-outputBase)\testGenericLib.exe -manifest $(dir-outputBase)\testGenericLib.exe.manifest"
Condition="'$(OS)'=='Windows_NT'"/>
<Unitpp Condition="'$(action)'=='test'"
FixturePath="$(dir-outputBase)/testGenericLib"
FudgeFactor="$(timeoutFudgeFactor)"
Timeout="60000">
<Output TaskParameter="FailedSuites" ItemName="FailedSuites"/>
</Unitpp>
<Message Text="Finished building testGenericLib." Condition="'$(action)'!='test'"/>
<Message Text="Finished building testGenericLib and running tests." Condition="'$(action)'=='test'"/>
</Target>
<Target Name="FwKernel" DependsOnTargets="GenericLib;GenerateCellarConstants;AppCore;createCompMaps;CopyDlls">
<Message Text="FwKernel make-target='$(make-target)'"/>
<Make Condition="'$(OS)'=='Windows_NT'"
Makefile="$(fwrt)\Src\Kernel\FwKernel.mak"
Configuration="$(config-capital)"
BuildRoot="$(fwrt)"
BuildArch="'$(Platform)'"
WorkingDirectory="$(fwrt)\Src\Kernel"/>
<Make Condition="'$(OS)'=='Unix'" ToolPath="/usr/bin"
Makefile="$(fwrt)/Src/Kernel/Makefile"
Configuration="$(config-capital)" Target="$(make-target)"
BuildRoot="$(fwrt)"
WorkingDirectory="$(fwrt)/Src/Kernel"/>
<RegFree Executable="$(dir-outputBase)\FwKernel.dll" Output="$(dir-outputBase)\FwKernel.X.manifest" Condition="'$(OS)'=='Windows_NT'" Platform="$(Platform)" MSBuildArchitecture="$(Platform)"/>
<Message Text="Finished building FwKernel."/>
</Target>
<Target Name="AppCore" DependsOnTargets="DebugProcs;GenericLib">
<Message Text="AppCore make-target='$(make-target)'"/>
<Make Condition="'$(OS)'=='Unix'" ToolPath="/usr/bin"
Makefile="$(fwrt)/Src/AppCore/Makefile"
Configuration="$(config-capital)" Target="$(make-target)"
BuildRoot="$(fwrt)"
WorkingDirectory="$(fwrt)/Src/AppCore"/>
<Message Text="Finished building AppCore."/>
</Target>
<Target Name="Views" DependsOnTargets="GenericLib;FwKernel;GenerateCellarConstants">
<Make Condition="'$(OS)'=='Windows_NT'"
Makefile="$(fwrt)\Src\views\Views.mak"
Configuration="$(config-capital)"
BuildRoot="$(fwrt)"
BuildArch="'$(Platform)'"
WorkingDirectory="$(fwrt)\Src\views"/>
<Make Condition="'$(OS)'=='Unix'" ToolPath="/usr/bin"
Makefile="$(fwrt)/Src/views/Makefile"
Configuration="$(config-capital)" Target="$(make-target)"
BuildRoot="$(fwrt)"
WorkingDirectory="$(fwrt)/Src/views"/>
<RegFree Executable="$(dir-outputBase)\Views.dll" Output="$(dir-outputBase)\Views.X.manifest" Condition="'$(OS)'=='Windows_NT'" Platform="$(Platform)" MSBuildArchitecture="$(Platform)"/>
<Message Text="Finished building Views."/>
</Target>
<Target Name="testViews" DependsOnTargets="GenericLib;Views;SimpleRootSite;FwKernel">
<Make Condition="'$(OS)'=='Windows_NT'"
Makefile="$(fwrt)\Src\views\Test\testViews.mak"
Configuration="$(config-capital)"
BuildRoot="$(fwrt)"
BuildArch="'$(Platform)'"
WorkingDirectory="$(fwrt)\Bin"/>
<Make Condition="'$(OS)'=='Unix'" ToolPath="/usr/bin"
Makefile="$(fwrt)/Src/views/Test/Makefile"
Configuration="$(config-capital)" Target="$(make-target)"
BuildRoot="$(fwrt)"
WorkingDirectory="$(fwrt)/Src/views/Test" ContinueOnError="true"/>
<RegFree Executable="$(dir-outputBase)\testViews.exe"
DependentAssemblies="$(dir-outputBase)\FwKernel.X.manifest;$(dir-outputBase)\Views.X.manifest"
Condition="'$(OS)'=='Windows_NT'" Platform="$(Platform)" MSBuildArchitecture="$(Platform)"/>
<Exec Command="mt.exe -outputresource:$(dir-outputBase)\testViews.exe -manifest $(dir-outputBase)\testViews.exe.manifest"
Condition="'$(OS)'=='Windows_NT'"/>
<CreateItem Include="$(dir-outputBase)/*.compmap">
<Output TaskParameter="Include" ItemName="ViewsCompMapFiles"/>
</CreateItem>
<CatenateFiles SourceFiles="@(ViewsCompMapFiles)" TargetFile="$(dir-outputBase)/components.map" Condition="'$(OS)'=='Unix'"/>
<Unitpp Condition="'$(action)'=='test'"
FixturePath="$(dir-outputBase)/testViews"
FudgeFactor="$(timeoutFudgeFactor)"
Timeout="250000">
<Output TaskParameter="FailedSuites" ItemName="FailedSuites"/>
</Unitpp>
<Message Text="Finished building testViews." Condition="'$(action)'!='test'"/>
<Message Text="Finished building testViews and running tests." Condition="'$(action)'=='test'"/>
</Target>
<UsingTask TaskName="LcmGenerate" AssemblyFile="$(LcmArtifactsDir)/SIL.LCModel.Build.Tasks.dll"/>
<ItemGroup>
<CellarConstantsInputs Include="$(LcmArtifactsDir)/MasterLCModel.xml"/>
<CellarConstantsInputs Include="$(fwrt)/Src/Kernel/CellarConstants.vm.h"/>
<CellarConstantsOutputs Include="$(fwrt)/Output/Common/CellarConstants.h"/>
</ItemGroup>
<Target Name="GenerateCellarConstants" DependsOnTargets="CopyCellarBaseConstants;CopyDlls"
Inputs="@(CellarConstantsInputs)" Outputs="@(CellarConstantsOutputs)">
<MakeDir Directories="$(dir-fwoutputCommon)" Condition="'$(action)'!='clean'"/>
<LcmGenerate XmlFile="$(LcmArtifactsDir)/MasterLCModel.xml"
OutputDir="$(dir-fwoutputCommon)"
OutputFile="CellarConstants.h"
TemplateFile="$(fwrt)/Src/Kernel/CellarConstants.vm.h"
WorkingDirectory="$(LcmArtifactsDir)/"
Condition="'$(action)'!='clean'"/>
</Target>
<Target Name="CopyCellarBaseConstants" Inputs="$(fwrt)/Src/Kernel/CellarBaseConstants.h" Outputs="$(fwrt)/Output/Common/CellarBaseConstants.h">
<MakeDir Directories="$(dir-fwoutputCommon)" Condition="'$(action)'!='clean'"/>
<Copy SourceFiles="$(fwrt)/Src/Kernel/CellarBaseConstants.h"
DestinationFolder="$(fwrt)/Output/Common"
SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true"
Condition="'$(action)'!='clean'"/>
</Target>
<PropertyGroup>
<Original-OBJ_DIR>$(OBJ_DIR)</Original-OBJ_DIR>
<Original-BUILD4UX>$(BUILD4UX)</Original-BUILD4UX>
<Original-ANAL_TYPE>$(ANAL_TYPE)</Original-ANAL_TYPE>
</PropertyGroup>
<Target Name="mktlbs" DependsOnTargets="GenerateCellarConstants;FwKernel;Views">
<SetEnvVar Variable="BUILD_OUTPUT" Value="$(dir-fwoutput)" />
<SetEnvVar Variable="OBJ_DIR" Value="$(dir-fwobj)" />
<SetEnvVar Variable="BUILD4UX" Value="$(build4ux)"/>
<SetEnvVar Variable="ANAL_TYPE" Value="performance" Condition="'$(performance)'=='true'"/>
<Make Condition="'$(OS)'=='Windows_NT'"
Makefile="$(fwrt)\Src\Kernel\FwKernel.mak"
Configuration="$(config-capital)"
Target="dirs $(dir-fwoutputCommon)\FwKernelTlb.tlb"
BuildRoot="$(fwrt)"
BuildArch="'$(PLATFORM)'"
WorkingDirectory="$(fwrt)"/>
<Make Condition="'$(OS)'=='Windows_NT'"
Makefile="$(fwrt)\Src\views\Views.mak"
Configuration="$(config-capital)"
Target="dirs $(dir-fwoutputCommon)\ViewsTlb.tlb"
BuildRoot="$(fwrt)"
WorkingDirectory="$(fwrt)"/>
<SetEnvVar Variable="BUILD_OUTPUT" Value="$(Original-BUILD_OUTPUT)" />
<SetEnvVar Variable="OBJ_DIR" Value="$(Original-OBJ_DIR)" />
<SetEnvVar Variable="BUILD4UX" Value="$(Original-BUILD4UX)" />
<SetEnvVar Variable="ANAL_TYPE" Value="$(Original-ANAL_TYPE)" />
</Target>
<Target Name="remakefw-internal" DependsOnTargets="CleanAll;Initialize;CopyDlls;setRegistryValues;ensureTLBsUpToDate;GeneratePartsAndLayoutFiles;mkall"/>
<Target Name="remakefw" DependsOnTargets="remakefw-internal">
<!-- If tests were run on a developer machine, fail to alert the developer of any failures -->
<Error Condition="'@(FailedSuites)'!=''" Text="The following projects had failing tests: @(FailedSuites)" />
</Target>
<Target Name="remakefw-jenkins" DependsOnTargets="remakefw-internal">
<!-- Jenkins looks at the test output files to see if tests failed, so we don't have to fail on failed tests -->
<Warning Condition="'@(FailedSuites)'!=''" Text="The following projects had failing tests: @(FailedSuites)" />
</Target>
<ItemGroup>
<!-- Don't delete FieldWorks.targets - that has to be done separately, otherwise we
delete the file we just create previously when we run remakefw -->
<!--<GeneratedFiles Include="$(fwrt)/Build/FieldWorks.targets"/>-->
<GeneratedFiles Include="$(fwrt)/Build/packages.config"/>
<GeneratedFiles Include="$(fwrt)/Src/**/Collection.cpp"/>
<GeneratedFiles Include="$(fwrt)/Src/**/asserts.log"/>
<GeneratedFiles Include="$(fwrt)/Src/Common/ViewsInterfaces/Views.cs"/>
<GeneratedFiles Include="$(fwrt)/Lib/debug/unit++.lib"/>
<GeneratedFiles Include="$(fwrt)/Lib/release/unit++.lib"/>
<GeneratedFiles Include="$(fwrt)/DistFiles/Parts/GeneratedParts.xml"/>
<GeneratedFiles Include="$(fwrt)/DistFiles/Parts/Generated.fwlayout"/>
</ItemGroup>
<Target Name="CleanDownloads">
<ForceDelete Files="$(DownloadsDir)" />
</Target>
<Target Name="Clean" DependsOnTargets="CleanAll">
<ForceDelete Files="$(fwrt)/Build/FieldWorks.targets"/>
</Target>
<Target Name="CleanAll" DependsOnTargets="cleanWindows;cleanLinux">
<!-- remove the Obj and Output directories -->
<ForceDelete Files="$(dir-fwobj);$(dir-fwoutput)" />
<ForceDelete Files="$(fwrt)/Output" Condition="'$(OS)'=='Unix'" />
<!-- remove other directories and files created during the build process -->
<ForceDelete Files="@(GeneratedFiles)" />
<!-- remove LCM files -->
<ItemGroup>
<LcmFilesToDelete Include="$(fwrt)/Src/Kernel/*.idh" />
<LcmFilesToDelete Include="$(fwrt)/Src/Kernel/FwKernelTlb.idl" />
<LcmFilesToDelete Include="$(fwrt)/DistFiles/Styles.dtd" />
<LcmFilesToDelete Include="$(fwrt)/DistFiles/Templates/GOLDEtic.xml" />
<LcmFilesToDelete Include="$(fwrt)/DistFiles/Templates/NewLangProj.fwdata" />
<LcmFilesToDelete Include="$(fwrt)/DistFiles/Templates/POS.xml" />
<LcmFilesToDelete Include="$(fwrt)/DistFiles/Templates/SemDom.xml" />
<LcmFilesToDelete Include="$(dir-fwoutputCommon)/FwKernelTlb.json" />
</ItemGroup>
<ForceDelete Files="@(LcmFilesToDelete)" />
<ForceDelete Files="$(fwrt)/DistFiles/Icu$(IcuVersion)" />
<SetEnvVar Variable="LD_PRELOAD" Value="" Condition="'$(OS)'=='Unix'"/>
<Message Text="Finished deleting the output directories!" />
</Target>
<PropertyGroup>
<MasterVersionInfo>$(fwrt)/Src/MasterVersionInfo.txt</MasterVersionInfo>
<TeamCityUrl>https://build.palaso.org/</TeamCityUrl>
<!-- Versions of NuGet packages. These need to match the versions in nuget-common/packages.config -->
<ChorusNugetVersion>5.2.0-beta0003</ChorusNugetVersion>
<PalasoNugetVersion>13.0.0-beta0076</PalasoNugetVersion>
<ParatextNugetVersion>9.4.0.1-beta</ParatextNugetVersion>
<LcmNugetVersion>11.0.0-beta0092</LcmNugetVersion>
<IcuNugetVersion>70.1.123</IcuNugetVersion>
<HermitCrabNugetVersion>2.5.13</HermitCrabNugetVersion>
<!--Todo: use PalasoBuildType, when it refers to somewhere that has the IPCFramework.-->
<!-- bt278 is the develop branch build of IPCFramework for Windows development. Update when appropriate. -->
<IPCFrameworkBuildType Condition="'$(OS)'=='Windows_NT'">bt278</IPCFrameworkBuildType>
<!-- bt279 is the develop branch build of IPCFramework for Linux development. Update when appropriate. -->
<IPCFrameworkBuildType Condition="'$(OS)'=='Unix'">bt279</IPCFrameworkBuildType>
<IPCFrameworkBuildTag>.lastSuccessful</IPCFrameworkBuildTag>
<!-- bt393 is the master branch build of ExCss for Windows development. Update when appropriate. -->
<ExCssBuildType Condition="'$(OS)'=='Windows_NT'">bt393</ExCssBuildType>
<ExCss Condition="'$(OS)'=='Windows_NT'">ExCss</ExCss>
<!-- bt395 is the master branch build of ExCss for Linux development. Update when appropriate. -->
<ExCssBuildType Condition="'$(OS)'=='Unix'">bt395</ExCssBuildType>
<ExCss Condition="'$(OS)'=='Unix'">ExCSS</ExCss>
<ExCssBuildTag>.lastSuccessful</ExCssBuildTag>
<GeckoFxHtmlToPdfBuildType Condition="'$(OS)'=='Windows_NT' AND '$(Platform)'!='x64'">GeckofxHtmlToPdf_GeckofxHtmlToPdfGeckofx60Win32continuous</GeckoFxHtmlToPdfBuildType>
<GeckoFxHtmlToPdfBuildType Condition="'$(OS)'=='Windows_NT' AND '$(Platform)'=='x64'">GeckofxHtmlToPdf_Win64_continuous</GeckoFxHtmlToPdfBuildType>
<GeckoFxHtmlToPdfBuildType Condition="'$(OS)'=='Unix'">GeckofxHtmlToPdf_GeckofxHtmlToPdfXenial64Geckofx60continuous</GeckoFxHtmlToPdfBuildType>
<GeckoFxHtmlToPdfBuildTag>.lastSuccessful</GeckoFxHtmlToPdfBuildTag>
<!-- Windows/.Net and Linux/Mono use different extensions for debug information files. -->
<DebugInfo Condition="'$(OS)'=='Unix'">dll.mdb</DebugInfo>
<DebugInfo Condition="'$(OS)'=='Windows_NT'">pdb</DebugInfo>
<DownloadsDir>$(fwrt)/Downloads</DownloadsDir>
<PackagesDir>$(fwrt)/packages</PackagesDir>
</PropertyGroup>
<ItemGroup>
<PalasoFiles Include="SIL.Core.dll"/>
<PalasoFiles Include="SIL.Core.Desktop.dll"/>
<PalasoFiles Include="SIL.Lift.dll"/>
<PalasoFiles Include="SIL.Media.dll"/>
<PalasoFiles Include="SIL.Media.dll.config" Condition="'$(OS)'=='Unix'"/>
<PalasoFiles Include="SIL.Scripture.dll"/>
<PalasoFiles Include="SIL.Scripture.dll.config" Condition="'$(OS)'=='Unix'"/>
<PalasoFiles Include="SIL.Windows.Forms.dll"/>
<PalasoFiles Include="SIL.Windows.Forms.GeckoBrowserAdapter.dll"/>
<PalasoFiles Include="SIL.Archiving.dll"/>
<PalasoFiles Include="SIL.Archiving.dll.config" Condition="'$(OS)'=='Unix'"/>
<PalasoFiles Include="Keyman10Interop.dll" Condition="'$(OS)'=='Windows_NT'"/>
<PalasoFiles Include="Keyman7Interop.dll" Condition="'$(OS)'=='Windows_NT'"/>
<PalasoFiles Include="KeymanLink.dll" Condition="'$(OS)'=='Windows_NT'"/>
<PalasoFiles Include="Mono.Unix.dll" Condition="'$(OS)'!='Windows_NT'" />
<PalasoFiles Include="Mono.Unix.dll.config" Condition="'$(OS)'!='Windows_NT'" />
<PalasoFiles Include="SIL.WritingSystems.dll"/>
<PalasoFiles Include="SIL.WritingSystems.Tests.dll"/>
<PalasoFiles Include="SIL.Windows.Forms.WritingSystems.dll"/>
<PalasoFiles Include="System.Memory.dll"/>
<PalasoFiles Include="System.Resources.Extensions.dll"/>
<PalasoFiles Include="SIL.Windows.Forms.Keyboarding.dll"/>
<PalasoFiles Include="SIL.Windows.Forms.Keyboarding.dll.config" Condition="'$(OS)'=='Unix'"/>
<PalasoFiles Include="SIL.Lexicon.dll"/>
<PalasoFiles Include="SIL.TestUtilities.dll"/>
<PalasoFiles Include="L10NSharp.dll"/>
<PalasoFiles Include="Interop.WIA.dll"/>
<PalasoFiles Include="lib/win-x86/irrKlang.NET4.dll" Condition="'$(OS)'=='Windows_NT' AND '$(Platform)'!='x64'"/>
<PalasoFiles Include="lib/win-x64/irrKlang.NET4.dll" Condition="'$(OS)'=='Windows_NT' AND '$(Platform)'=='x64'"/>
<PalasoFiles Include="Enchant.Net.dll"/>
<PalasoFiles Include="Enchant.Net.dll.config" Condition="'$(OS)'=='Unix'"/>
<PalasoFiles Include="NDesk.DBus.dll"/>
<PalasoFiles Include="NDesk.DBus.dll.config"/>
<PalasoFiles Include="TagLibSharp.dll"/>
<PalasoFiles Include="Tenuto.dll"/>
<PalasoFiles Include="relaxngDatatype.dll"/>
<PalasoFiles Include="Spart.dll"/>
<PalasoFiles Include="SIL.Core.pdb"/>
<PalasoFiles Include="SIL.Core.Desktop.pdb"/>
<PalasoFiles Include="SIL.Lift.pdb"/>
<PalasoFiles Include="SIL.Media.pdb"/>
<PalasoFiles Include="SIL.Windows.Forms.pdb"/>
<PalasoFiles Include="SIL.Windows.Forms.GeckoBrowserAdapter.pdb"/>
<PalasoFiles Include="SIL.Windows.Forms.WritingSystems.pdb"/>
<PalasoFiles Include="SIL.Archiving.pdb"/>
<PalasoFiles Include="SIL.WritingSystems.pdb"/>
<PalasoFiles Include="SIL.WritingSystems.Tests.pdb"/>
<PalasoFiles Include="SIL.Windows.Forms.Keyboarding.pdb"/>
<PalasoFiles Include="SIL.Lexicon.pdb"/>
<ChorusFiles Include="Autofac.dll"/>
<ChorusFiles Include="Chorus.exe"/>
<ChorusFiles Include="ChorusHub.exe" Condition="'$(OS)'=='Unix'"/>
<ChorusFiles Include="LibChorus.dll"/>
<ChorusFiles Include="Vulcan.Uczniowie.HelpProvider.dll"/>
<IcuFiles Include="gennorm2.exe"/>
<IcuFiles Include="icudt$(IcuVersion).dll"/>
<IcuFiles Include="icuin$(IcuVersion).dll"/>
<IcuFiles Include="icutu$(IcuVersion).dll"/>
<IcuFiles Include="icuuc$(IcuVersion).dll"/>
<IcuFiles Include="icudt.lib"/>
<IcuFiles Include="icuin.lib"/>
<IcuFiles Include="icuuc.lib"/>
<LcmOutputBaseFiles Include="ICSharpCode.SharpZipLib.dll" />
<LcmOutputBaseFiles Include="Hunspellx86.dll" Condition="'$(OS)'=='Windows_NT' AND '$(Platform)'!='x64'"/>
<LcmOutputBaseFiles Include="Hunspellx64.dll" Condition="'$(OS)'=='Windows_NT' AND '$(Platform)'=='x64'"/>
<LcmOutputBaseFiles Include="NHunspell.dll" Condition="'$(OS)'=='Windows_NT'" />
<LcmOutputBaseFiles Include="CommonServiceLocator.dll" />
<LcmOutputBaseFiles Include="protobuf-net.dll" />
<LcmOutputBaseFiles Include="Sandwych.Quickgraph.Core.dll" />
<LcmOutputBaseFiles Include="StructureMap.dll" />
<LcmOutputBaseFiles Include="SIL.Machine.dll" />
<LcmOutputBaseFiles Include="SIL.Machine.Morphology.HermitCrab.dll" />
<LcmOutputBaseFiles Include="SIL.LCModel.FixData.dll" />
<LcmOutputBaseFiles Include="SIL.LCModel.Utils.dll" />
<LcmOutputBaseFiles Include="SIL.LCModel.Utils.Tests.dll" />
<LcmOutputBaseFiles Include="SIL.LCModel.Utils.Tests.dll.config" />
<LcmOutputBaseFiles Include="SIL.LCModel.Core.dll" />
<LcmOutputBaseFiles Include="SIL.LCModel.Core.dll.config"/>
<LcmOutputBaseFiles Include="SIL.LCModel.Core.Tests.dll" />
<LcmOutputBaseFiles Include="SIL.LCModel.Core.Tests.dll.config" />
<LcmOutputBaseFiles Include="SIL.LCModel.Build.Tasks.dll" />
<LcmOutputBaseFiles Include="SIL.LCModel.dll" />
<LcmOutputBaseFiles Include="SIL.LCModel.Tools.dll" />
<LcmOutputBaseFiles Include="SIL.LCModel.Tests.dll" />
<LcmOutputBaseFiles Include="SIL.LCModel.Tests.dll.config" />
<LcmOutputBaseFiles Include="SIL.LCModel.FixData.pdb" />
<LcmOutputBaseFiles Include="SIL.LCModel.Utils.pdb" />
<LcmOutputBaseFiles Include="SIL.LCModel.Utils.Tests.pdb" />
<LcmOutputBaseFiles Include="SIL.LCModel.Core.pdb" />
<LcmOutputBaseFiles Include="SIL.LCModel.Core.Tests.pdb" />
<LcmOutputBaseFiles Include="SIL.LCModel.Build.Tasks.pdb" />
<LcmOutputBaseFiles Include="SIL.LCModel.pdb" />
<LcmOutputBaseFiles Include="SIL.LCModel.Tests.pdb" />
<LcmOutputCommonFiles Include="KernelInterfaces/FwKernelTlb.json" />
<LcmFwKernelFiles Include="KernelInterfaces/common.idh" />
<LcmFwKernelFiles Include="KernelInterfaces/FwKernel.idh" />
<LcmFwKernelFiles Include="KernelInterfaces/Language.idh" />
<LcmFwKernelFiles Include="KernelInterfaces/TextServ.idh" />
<LcmFwKernelFiles Include="KernelInterfaces/FwKernelTlb.idl" />
<LcmDistFiles Include="Styles.dtd" />
<!-- GOLDEtic.xml is copied so that developers can use grammatical categories without building localizations.
Building localizations will overwrite this file with the latest translations. -->
<LcmTemplatesFiles Include="Templates/GOLDEtic.xml" />
<LcmTemplatesFiles Include="Templates/NewLangProj.fwdata" />
<LcmTemplatesFiles Include="Templates/POS.xml" />
<LcmTemplatesFiles Include="Templates/SemDom.xml" />
<LcmIcuDataFiles Include="IcuData/data/nfc.txt" />
<LcmIcuDataFiles Include="IcuData/data/nfcHebrew.txt" />
<LcmIcuDataFiles Include="IcuData/data/nfcOverrides.txt" />
<LcmIcuDataFiles Include="IcuData/data/nfkc.txt" />
<LcmIcuDataFiles Include="IcuData/data/nfkcOverrides.txt" />
<LcmIcuDataFiles Include="IcuData/data/UnicodeDataOverrides.txt" />
<LcmIcuNrmFiles Include="IcuData/icudt$(IcuVersion)l/nfc_fw.nrm" />
<LcmIcuNrmFiles Include="IcuData/icudt$(IcuVersion)l/nfkc_fw.nrm" />
<LcmMissingFiles Include="SIL.LCModel.dll.config" />
</ItemGroup>
<Target Name="downloadDlls" DependsOnTargets="RestoreNuGetPackages;CollectAssemblyAndPdbPaths" Condition="'$(disableDownloads)'!='true'">
<MakeDir Directories="$(DownloadsDir)"/>
<MakeDir Directories="$(DownloadsDir)/lib"/>
<MakeDir Directories="$(DownloadsDir)/lib/x64"/>
<MakeDir Directories="$(DownloadsDir)/lib/x86"/>
<!-- TODO (Hasso) 2011.11: copy on Condition="'$(UseLocalLibraries)'!='Y'" -->
<Message Text="Copying artifacts from Palaso, Chorus, LCM, and related packages to Downloads."/>
<Copy SourceFiles="@(SILNugetFiles)" DestinationFolder="$(DownloadsDir)/%(RecursiveDir)" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true"/>
<Message Text="(Palaso, Chorus, and LCM artifacts will be copied to Output from $(PalasoArtifactsDir), $(ChorusArtifactsDir), and $(LcmArtifactsDir), respectively, as specified in LibraryDevelopment.targets)" Condition="'$(UseLocalLibraries)'=='Y'"/>
<Message Text="Downloading an artifact for IPCFramework."/>
<DownloadFilesFromTeamCity Address="$(TeamCityUrl)" BuildType="$(IPCFrameworkBuildType)" Tag="$(IPCFrameworkBuildTag)" Artifacts="IPCFramework.dll" DownloadsDir="$(DownloadsDir)"/>
<!-- Due to platform-specific casing, ExCSS or ExCss is included in a variable -->
<Message Text="Downloading artifacts for $(ExCss)."/>
<DownloadFilesFromTeamCity Address="$(TeamCityUrl)" BuildType="$(ExCssBuildType)" Tag="$(ExCssBuildTag)" Artifacts="$(ExCss).dll;$(ExCss).$(DebugInfo)" DownloadsDir="$(DownloadsDir)"/>
<Message Text="Downloading artifacts for geckofxHtmlToPdf." />
<DownloadFilesFromTeamCity Address="$(TeamCityUrl)" BuildType="$(GeckoFxHtmlToPdfBuildType)" Tag="$(GeckoFxHtmlToPdfBuildTag)" Artifacts="GeckofxHtmlToPdf.exe;GeckofxHtmlToPdf.exe.config;Args.dll" DownloadsDir="$(DownloadsDir)"/>
</Target>
<Target Name="CollectAssemblyAndPdbPaths" DependsOnTargets="DefineNugetPackages" Outputs="%(SILNugetPackages.Identity)">
<MakeDir Directories="$(DownloadsDir)/symbols"/>
<DownloadFile Address="https://www.nuget.org/api/v2/symbolpackage/%(SILNugetPackages.Identity)/%(SILNugetPackages.Version)"
DownloadsDir="$(DownloadsDir)/symbols" LocalFilename="%(SILNugetPackages.Identity).snupkg" Condition="'%(SILNugetPackages.NoSymbols)' != 'true'" />
<Unzip ZipFilename="$(DownloadsDir)/symbols/%(SILNugetPackages.Identity).snupkg" ToDir="$(DownloadsDir)/symbols/%(SILNugetPackages.Identity).%(SILNugetPackages.Version)" Condition="'%(SILNugetPackages.NoSymbols)' != 'true'" />
<ItemGroup>
<SILNugetFiles Include="$(PackagesDir)/%(SILNugetPackages.Identity).%(SILNugetPackages.Version)/%(SILNugetPackages.Path)" />
<SILNugetFiles Include="$(DownloadsDir)/symbols/%(SILNugetPackages.Identity).%(SILNugetPackages.Version)/%(SILNugetPackages.Path)" Condition="'%(SILNugetPackages.NoSymbols)' != 'true'" />
</ItemGroup>
</Target>
<Target Name="DefineNugetPackages">
<ItemGroup>
<!-- We had been downloading these Nuget packages from TeamCity. Because our copyDlls target can copy either downloaded or locally-built artifacts, copy them all to Downloads so the directory structure matches (locally-built artifacts have no separate packages). -->
<SILNugetPackages Include="Icu4c.Win.Fw.Bin" Condition="'$(OS)'=='Windows_NT'"><Version>$(IcuNugetVersion)</Version><Path>build/**/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="Icu4c.Win.Fw.Lib" Condition="'$(OS)'=='Windows_NT'"><Version>$(IcuNugetVersion)</Version><Path>runtimes/**/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="Icu4c.Win.Fw.Lib"><Version>$(IcuNugetVersion)</Version><Path>build/native/**/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<!-- LCM and related packages -->
<!-- If the build is run with /p:UsingLocalLibraryBuild use that for NoSymbols when the package comes from liblcm, libpalaso, or chorus -->
<!-- a true value will skip downloading and extracting the .pdb files from the nuget server. -->
<!-- If this is used with buildLocalLibraries.sh you should end up with locally built .pdb files -->
<SILNugetPackages Include="SIL.LCModel"><Version>$(LcmNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.LCModel"><Version>$(LcmNugetVersion)</Version><Path>contentFiles/**/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.LCModel.Build.Tasks"><Version>$(LcmNugetVersion)</Version><Path>tools/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.LCModel.Core"><Version>$(LcmNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.LCModel.Core"><Version>$(LcmNugetVersion)</Version><Path>contentFiles/**/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.LCModel.Core.Tests"><Version>$(LcmNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.LCModel.FixData"><Version>$(LcmNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.LCModel.Utils"><Version>$(LcmNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.LCModel.Utils.Tests"><Version>$(LcmNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.LCModel.Tests"><Version>$(LcmNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.LCModel.Tools"><Version>$(LcmNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="CommonServiceLocator"><Version>1.4.0</Version><Path>lib/net45/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="Mono.Unix" Condition="'$(OS)'!='Windows_NT'"><Version>7.1.0-final.1.21458.1</Version><Path>lib/net45/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="NHunspell.Patched"><Version>1.2.5554</Version><Path>lib/net/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="NHunspell.Patched"><Version>1.2.5554</Version><Path>runtimes/win7-$(Platform)/native/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="protobuf-net"><Version>2.4.6</Version><Path>lib/net40/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SharpZipLib"><Version>1.4.0</Version><Path>lib/netstandard2.0/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="structuremap.patched"><Version>4.7.3</Version><Path>lib/net45/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="System.CodeDom"><Version>4.4.0</Version><Path>lib/netstandard2.0/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<!-- Palaso and related packages -->
<SILNugetPackages Include="SIL.Archiving"><Version>$(PalasoNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Archiving"><Version>$(PalasoNugetVersion)</Version><Path>contentFiles/any/any/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Core"><Version>$(PalasoNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Core.Desktop"><Version>$(PalasoNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Media"><Version>$(PalasoNugetVersion)</Version><Path>build/**/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Media"><Version>$(PalasoNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Media"><Version>$(PalasoNugetVersion)</Version><Path>contentFiles/any/any/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Lift"><Version>$(PalasoNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Lexicon"><Version>$(PalasoNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.TestUtilities"><Version>$(PalasoNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Scripture"><Version>$(PalasoNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Windows.Forms"><Version>$(PalasoNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Windows.Forms" Condition="'$(Platform)'!='x64'"><Version>$(PalasoNugetVersion)</Version><Path>build/Interop.WIA.dll</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Windows.Forms" Condition="'$(Platform)'=='x64'"><Version>$(PalasoNugetVersion)</Version><Path>build/x64/Interop.WIA.dll</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Windows.Forms.Keyboarding"><Version>$(PalasoNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Windows.Forms.Keyboarding"><Version>$(PalasoNugetVersion)</Version><Path>build/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Windows.Forms.Keyboarding"><Version>$(PalasoNugetVersion)</Version><Path>contentFiles/any/any/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Windows.Forms.GeckoBrowserAdapter"><Version>$(PalasoNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Windows.Forms.WritingSystems"><Version>$(PalasoNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.WritingSystems"><Version>$(PalasoNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.WritingSystems.Tests"><Version>$(PalasoNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="System.Memory"><Version>4.5.4</Version><Path>lib/net461/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="System.Resources.Extensions"><Version>4.6.0</Version><Path>lib/netstandard2.0/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="L10NSharp"><Version>6.0.0</Version><Path>lib/net461/*.*</Path></SILNugetPackages>
<SILNugetPackages Include="Enchant.Net"><Version>1.4.3-beta0010</Version><Path>lib/net461/*.*</Path></SILNugetPackages>
<SILNugetPackages Include="Enchant.Net"><Version>1.4.3-beta0010</Version><Path>contentFiles/any/any/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="NDesk.DBus"><Version>0.15.0</Version><Path>lib/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="Spart"><Version>1.0.0</Version><Path>lib/net461/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="TagLibSharp"><Version>2.2.0</Version><Path>lib/net45/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="Tenuto"><Version>1.0.0.39</Version><Path>lib/net461/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="relaxngDatatype"><Version>1.0.0.39</Version><Path>lib/net461/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<!-- Chorus and related packages -->
<SILNugetPackages Include="SIL.Chorus.LibChorus"><Version>$(ChorusNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Chorus.App"><Version>$(ChorusNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Chorus.ChorusHub" Condition="'$(OS)'=='Unix'"><Version>$(ChorusNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>$(UsingLocalLibraryBuild)</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="Autofac"><Version>4.9.4</Version><Path>lib/net45/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="Vulcan.Uczniowie.HelpProvider"><Version>1.0.16</Version><Path>lib/net461/*.*</Path></SILNugetPackages>
<!-- HermitCrab and related packages -->
<SILNugetPackages Include="SIL.Machine.Morphology.HermitCrab"><Version>$(HermitCrabNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="SIL.Machine"><Version>$(HermitCrabNugetVersion)</Version><Path>lib/net461/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
<SILNugetPackages Include="Sandwych.Quickgraph.Core"><Version>1.0.0</Version><Path>lib/net45/*.*</Path><NoSymbols>true</NoSymbols></SILNugetPackages>
</ItemGroup>
</Target>
<!-- Setup source variables (to enable local development in libpalaso, chorus, and liblcm) -->
<PropertyGroup>
<PalasoArtifactsDir Condition="'$(PalasoArtifactsDir)'==''">$(DownloadsDir)</PalasoArtifactsDir>
<ChorusArtifactsDir Condition="'$(ChorusArtifactsDir)'==''">$(DownloadsDir)</ChorusArtifactsDir>
<LcmArtifactsDir Condition="'$(LcmArtifactsDir)'==''">$(DownloadsDir)</LcmArtifactsDir>
</PropertyGroup>
<!-- item group for downloads, to allow easy copying -->
<!-- wildcards don't work unless the files have already been downloaded once -->
<ItemGroup>
<!-- we need to explicitly specify the important files, otherwise they'll be ignored
if they don't exist by the time this ItemGroup is read -->
<DownloadedFiles Include="$(DownloadsDir)/Args.dll"/>
<DownloadedFiles Include="$(DownloadsDir)/IPCFramework.dll"/>
<!-- xBuild and MsBuild generate different case artifacts off the same solution file. (sigh) -->
<DownloadedFiles Include="$(DownloadsDir)/$(ExCss).dll"/>
<DownloadedFiles Include="$(DownloadsDir)/$(ExCss).$(DebugInfo)"/>
</ItemGroup>
<Target Name="CopyDlls" DependsOnTargets="downloadDlls;copyLibL10ns">
<!-- .Net assemblies -->
<Copy SourceFiles="$(fwrt)/DistFiles/LinqBridge.dll" DestinationFolder="$(dir-outputBase)"
SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true"/>
<Copy SourceFiles="$(fwrt)/DistFiles/log4net.dll" DestinationFolder="$(dir-outputBase)"
SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true"/>
<Copy SourceFiles="$(fwrt)/Lib/Common/Interop.ResourceDriver.dll" DestinationFolder="$(dir-outputBase)"
SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true"/>
<!-- Linux shared libraries -->
<Copy SourceFiles="$(fwrt)/DistFiles/libxample32.so" DestinationFolder="$(dir-outputBase)"
SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" Condition="'$(OS)'=='Unix'"/>
<Copy SourceFiles="$(fwrt)/DistFiles/libxample64.so" DestinationFolder="$(dir-outputBase)"
SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" Condition="'$(OS)'=='Unix'"/>
<!-- Windows dynamically loaded libraries -->
<Copy SourceFiles="$(fwrt)/DistFiles/xample32.dll" DestinationFiles="$(dir-outputBase)/xample.dll"
SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" Condition="'$(OS)'=='Windows_NT' AND '$(arch)'!='x64'"/>
<Copy SourceFiles="$(fwrt)/DistFiles/xample64.dll" DestinationFiles="$(dir-outputBase)/xample.dll"
SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" Condition="'$(OS)'=='Windows_NT' AND '$(arch)'=='x64'"/>
<!-- ICU libs -->
<Copy SourceFiles="$(DownloadsDir)/lib/win7-$(arch)/icudt.lib" DestinationFolder="$(fwrt)/Lib"
SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" Condition="'$(OS)'=='Windows_NT'"/>
<Copy SourceFiles="$(DownloadsDir)/lib/win7-$(arch)/icuin.lib" DestinationFolder="$(fwrt)/Lib"
SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" Condition="'$(OS)'=='Windows_NT'"/>
<Copy SourceFiles="$(DownloadsDir)/lib/win7-$(arch)/icuuc.lib" DestinationFolder="$(fwrt)/Lib"
SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" Condition="'$(OS)'=='Windows_NT'"/>
<ItemGroup>
<IcuHeaders Include="$(DownloadsDir)/include/unicode/*.h" />
</ItemGroup>
<!-- ICU sources -->
<Copy Sourcefiles="@(IcuHeaders)" DestinationFolder="$(fwrt)/Include/unicode"
SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true"/>
<!-- Copy ICU dll's and exe's to lib/x64 and lib/x86. The ICU .lib files don't need included. -->
<ItemGroup>
<IcuFileSet32 Include="$(DownloadsDir)/win7-x86/**/icu*.dll" />
<IcuFileSet32 Include="$(DownloadsDir)/win-x86/gennorm2.exe" />
</ItemGroup>
<ItemGroup>
<IcuFileSet64 Include="$(DownloadsDir)/win7-x64/**/icu*.dll" />
<IcuFileSet64 Include="$(DownloadsDir)/win-x64/gennorm2.exe" />
</ItemGroup>
<!-- Include 32-bit ICU, even if arch is x64, so we can provide 32-bit ICU for 32-bit Paratext to use when the tools interact. -->
<Copy SourceFiles="@(IcuFileSet32)" DestinationFolder="$(dir-outputBase)/lib/x86" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" Condition="'$(OS)'=='Windows_NT'" />
<Copy SourceFiles="@(IcuFileSet64)" DestinationFolder="$(dir-outputBase)/lib/x64" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" Condition="'$(OS)'=='Windows_NT' AND '$(arch)'=='x64'" />
<!-- LCM dlls -->
<Copy SourceFiles="@(LcmOutputBaseFiles -> '$(LcmArtifactsDir)/%(Identity)')" DestinationFolder="$(dir-outputBase)" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" />
<Copy SourceFiles="@(LcmOutputCommonFiles -> '$(LcmArtifactsDir)/%(Identity)')" DestinationFolder="$(dir-fwoutputCommon)" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" />
<Copy SourceFiles="@(LcmFwKernelFiles -> '$(LcmArtifactsDir)/%(Identity)')" DestinationFolder="$(fwrt)/Src/Kernel" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" />
<Copy SourceFiles="@(LcmDistFiles -> '$(LcmArtifactsDir)/%(Identity)')" DestinationFolder="$(fwrt)/DistFiles" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" />
<Copy SourceFiles="@(LcmTemplatesFiles -> '$(LcmArtifactsDir)/%(Identity)')" DestinationFolder="$(fwrt)/DistFiles/Templates" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" />
<Copy SourceFiles="@(LcmIcuDataFiles -> '$(LcmArtifactsDir)/%(Identity)')" DestinationFolder="$(fwrt)/DistFiles/Icu$(IcuVersion)/data" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" />
<Copy SourceFiles="@(LcmIcuNrmFiles -> '$(LcmArtifactsDir)/%(Identity)')" DestinationFolder="$(fwrt)/DistFiles/Icu$(IcuVersion)/icudt$(IcuVersion)l" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" />
<Error Condition="Exists(@(LcmMissingFiles -> '$(LcmArtifactsDir)/%(Identity)'))" Text="The file '%(LcmMissingFiles.Identity)' has been reintroduced in the Nuget package and should be copied in the steps above."/>
<!-- Copy the downloaded artifacts -->
<Copy SourceFiles="@(PalasoFiles -> '$(PalasoArtifactsDir)/%(Identity)')" DestinationFolder="$(dir-outputBase)" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" />
<!-- Copy runtime support library for Mono.Unix -->
<Copy SourceFiles="$(DownloadsDir)/libMono.Unix.so" DestinationFolder="$(dir-outputBase)/runtimes/linux-x64" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" Condition="'$(OS)'!='Windows_NT'"/>
<Copy SourceFiles="@(ChorusFiles -> '$(ChorusArtifactsDir)/%(Identity)')" DestinationFolder="$(dir-outputBase)" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" />
<Copy SourceFiles="@(DownloadedFiles)" DestinationFolder="$(dir-outputBase)" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true"/>
<!-- Rename GeckofxHtmlToPdf.exe to FieldWorksPdfMaker so it its origin is clear in case a user needs to release it from antivirus quarantine -->
<Copy SourceFiles="$(DownloadsDir)/GeckofxHtmlToPdf.exe" DestinationFiles="$(dir-outputBase)/FieldWorksPdfMaker.exe" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true"/>
<Copy SourceFiles="$(DownloadsDir)/GeckofxHtmlToPdf.exe.config" DestinationFiles="$(dir-outputBase)/FieldWorksPdfMaker.exe.config" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true"/>
<!-- Encoding Converters Files -->
<Copy SourceFiles="@(ECWindowsFiles -> '$(PackagesDir)/Encoding-Converters-Core.$(ECNugetVersion)/runtimes/win-$(arch)/native/%(Identity)')"
DestinationFolder="$(dir-outputBase)" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" Condition="'$(OS)'=='Windows_NT'"/>
<Copy SourceFiles="@(ECPlugins -> '$(PackagesDir)/Encoding-Converters-Core.$(ECNugetVersion)/redist/EC/Plugins/%(Identity)')"
DestinationFolder="$(dir-outputBase)/EC/Plugins" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" Condition="'$(OS)'=='Windows_NT'"/>
<!-- NuGet packages. Property- and ItemGroups are inside the target so $(arch) and *'s are read properly -->
<PropertyGroup>
<!-- This package must be updated in encoding-converters-core also -->
<Architecture Condition="'$(Platform)'=='x64'">64</Architecture>
<Architecture Condition="'$(Platform)'!='x64'">32</Architecture>
<GeckoDir Condition="'$(OS)'=='Windows_NT'">$(PackagesDir)/Geckofx60.$(Architecture).60.0.50</GeckoDir>
<GeckoDir Condition="'$(OS)'!='Windows_NT'">$(PackagesDir)/Geckofx60.$(Architecture).Linux.60.0.51</GeckoDir>
<OsDir Condition="'$(OS)'=='Windows_NT'">win</OsDir>
<OsDir Condition="'$(OS)'!='Windows_NT'">linux</OsDir>
</PropertyGroup>
<ItemGroup>
<NuGottenForBuildTasks Include="$(PackagesDir)/SIL.BuildTasks.2.6.0-beta0008/tools/SIL.BuildTasks.dll"/>
<NuGottenFiles Include="$(GeckoDir)/lib/net45/*.*" Condition="'$(OS)'=='Windows_NT'"/>
<NuGottenFiles Include="$(GeckoDir)/lib/net40/*.*" Condition="'$(OS)'!='Windows_NT'"/>
<NuGottenFiles Include="$(GeckoDir)/build/*.dll.config" Condition="'$(OS)'!='Windows_NT'"/>
<NuGottenFiles Include="$(GeckoDir)/content/**/*.*"/>
<NuGottenFiles Include="$(PackagesDir)/Analytics.3.6.0/lib/net461/Analytics.dll"/>
<NuGottenFiles Include="$(PackagesDir)/DocumentFormat.OpenXml.2.20.0/lib/net46/DocumentFormat.OpenXml.dll"/>
<NuGottenFiles Include="$(PackagesDir)/DotNetZip.1.16.0/lib/net40/*.*"/>
<NuGottenFiles Include="$(PackagesDir)/icu.net.2.9.0-beta.13/lib/net451/icu.net.dll"/>
<NuGottenFiles Include="$(PackagesDir)/Markdig.Signed.0.30.0/lib/net452/Markdig.Signed.dll"/>
<NuGottenFiles Include="$(PackagesDir)/Microsoft.Extensions.DependencyModel.2.0.4/lib/net451/Microsoft.Extensions.DependencyModel.dll"/>
<NuGottenFiles Include="$(PackagesDir)/Microsoft.Win32.Registry.4.7.0/lib/net461/Microsoft.Win32.Registry.dll" Condition="'$(OS)'=='Windows_NT'"/>
<NuGottenFiles Include="$(PackagesDir)/Moq.4.17.2/lib/net45/Moq.dll"/>
<NuGottenFiles Include="$(PackagesDir)/NAudio.1.10.0/lib/net35/NAudio.dll"/>
<NuGottenFiles Include="$(PackagesDir)/Castle.Core.4.4.1/lib/net45/Castle.Core.dll"/>
<NuGottenFiles Include="$(PackagesDir)/CommandLineArgumentsParser.3.0.22/lib/net45/CommandLineArgumentsParser.dll"/>
<NuGottenFiles Include="$(PackagesDir)/CsvHelper.28.0.1/lib/net45/CsvHelper.dll"/>
<NuGottenFiles Include="$(PackagesDir)/NAudio.Lame.1.1.5/lib/netstandard2.0/NAudio.Lame.dll"/>
<NuGottenFiles Include="$(PackagesDir)/NAudio.Lame.1.1.5/build/libmp3lame.32.dll" Condition="'$(OS)'=='Windows_NT' AND '$(arch)'!='x64'"/>
<NuGottenFiles Include="$(PackagesDir)/NAudio.Lame.1.1.5/build/libmp3lame.64.dll" Condition="'$(OS)'=='Windows_NT' AND '$(arch)'=='x64'"/>
<NuGottenFiles Include="$(PackagesDir)/Newtonsoft.Json.13.0.2/lib/net45/Newtonsoft.Json.dll"/>
<NuGottenFiles Include="$(PackagesDir)/ParatextData.$(ParatextNugetVersion)/lib/netstandard2.0/Paratext.LexicalContracts.dll" />
<NuGottenFiles Include="$(PackagesDir)/ParatextData.$(ParatextNugetVersion)/lib/netstandard2.0/Paratext.LexicalContractsV2.dll" />
<NuGottenFiles Include="$(PackagesDir)/ParatextData.$(ParatextNugetVersion)/lib/netstandard2.0/ParatextData.dll"/>
<NuGottenFiles Include="$(PackagesDir)/ParatextData.$(ParatextNugetVersion)/lib/netstandard2.0/PtxUtils.dll"/>
<NuGottenFiles Include="$(PackagesDir)/SIL.DesktopAnalytics.4.0.0/lib/net461/DesktopAnalytics.dll"/>
<NuGottenFiles Include="$(PackagesDir)/SIL.ParatextShared.7.4.0.1/runtimes/$(OsDir)/lib/net40/FormattedEditor.dll"/>
<NuGottenFiles Include="$(PackagesDir)/SIL.ParatextShared.7.4.0.1/runtimes/$(OsDir)/lib/net40/HelpSystem.dll"/>
<NuGottenFiles Include="$(PackagesDir)/SIL.ParatextShared.7.4.0.1/runtimes/$(OsDir)/lib/net40/HtmlEditor.dll"/>
<NuGottenFiles Include="$(PackagesDir)/SIL.ParatextShared.7.4.0.1/runtimes/$(OsDir)/lib/net40/NetLoc.dll"/>
<NuGottenFiles Include="$(PackagesDir)/SIL.ParatextShared.7.4.0.1/runtimes/$(OsDir)/lib/net40/ParatextShared.dll"/>
<NuGottenFiles Include="$(PackagesDir)/SIL.ParatextShared.7.4.0.1/runtimes/$(OsDir)/lib/net40/Utilities.dll"/>
<NuGottenFiles Include="$(PackagesDir)/mixpanel-csharp.6.0.0/lib/net461/Mixpanel.dll"/>
<NuGottenFiles Include="$(PackagesDir)/System.Numerics.Vectors.4.5.0/lib/net46/System.Numerics.Vectors.dll"/>
<NuGottenFiles Include="$(PackagesDir)/System.Net.Http.4.3.4/lib/net46/System.Net.Http.dll"/>
<NuGottenFiles Include="$(PackagesDir)/System.Numerics.Vectors.4.5.0/lib/net46/System.Numerics.Vectors.dll"/>
<NuGottenFiles Include="$(PackagesDir)/System.Resources.Extensions.4.6.0/lib/netstandard2.0/System.Resources.Extensions.dll"/>
<NuGottenFiles Include="$(PackagesDir)/System.Runtime.CompilerServices.Unsafe.6.0.0/lib/net461/System.Runtime.CompilerServices.Unsafe.dll"/>
<NuGottenFiles Include="$(PackagesDir)/System.Threading.Tasks.Extensions.4.5.4/lib/net461/System.Threading.Tasks.Extensions.dll"/>
<NuGottenFiles Include="$(PackagesDir)/System.ValueTuple.4.5.0/lib/net461/System.ValueTuple.dll"/>
</ItemGroup>
<Copy SourceFiles="@(NuGottenForBuildTasks)" DestinationFolder="$(MSBuildThisFileDirectory)"
SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true"/>
<Copy SourceFiles="@(NuGottenFiles)" DestinationFolder="$(dir-outputBase)/%(RecursiveDir)"
SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true"/>
</Target>
<Target Name="setRegistryValues" DependsOnTargets="initLinux;initWindows;setKeysInHKCU"/>
<Target Name="setKeysInHKCU" Condition="'$(packaging)' != 'yes'">
<Message Text="Setting registry values for $(fwrt)."/>
<!-- Using the OS-appropriate directory separator character is required for some unit tests to pass -->
<WriteRegistry Hive="CurrentUser"
Key="$(BUILDAGENT_HKCU)SOFTWARE/SIL/FieldWorks/$(FWMAJOR)/RootCodeDir"
Value="$(dir-fwdistfiles)"/>
<WriteRegistry Hive="CurrentUser"
Key="$(BUILDAGENT_HKCU)SOFTWARE/SIL/FieldWorks/$(FWMAJOR)/RootDataDir"
Value="$(dir-fwdistfiles)"/>
<WriteRegistry Hive="CurrentUser"
Key="$(BUILDAGENT_HKCU)SOFTWARE/SIL/FieldWorks/$(FWMAJOR)/ProjectsDir"
Value="$([System.IO.Path]::Combine("$(dir-fwdistfiles)", "Projects"))"/>
<WriteRegistry Hive="CurrentUser"
Key="$(BUILDAGENT_HKCU)SOFTWARE/SIL/Icu$(IcuVersion)DataDir"
Value="$(dir-icuData)"/>
<WriteRegistry Hive="CurrentUser"
Key="$(BUILDAGENT_HKCU)SOFTWARE/SIL/SilEncConverters40/RootDir"
Value="$(dir-outputBase)"
Condition="'$(OS)'=='Windows_NT'"/>
<WriteRegistry Hive="CurrentUser"
Key="$(BUILDAGENT_HKCU)SOFTWARE/SIL/SilEncConverters40/DeveloperPluginDir"
Value="$(dir-outputBase)\EC\Plugins"
Condition="'$(OS)'=='Windows_NT'"/>
<WriteRegistry Hive="CurrentUser"
Key="$(BUILDAGENT_HKCU)SOFTWARE/SIL/SilEncConverters40/RootDir"
Value="$(installation_prefix)/lib/fieldworks"
Condition="'$(OS)'=='Unix'"/>
<WriteRegistry Hive="CurrentUser"
Key="$(BUILDAGENT_HKCU)SOFTWARE/SIL/SilEncConverters40/DeveloperPluginDir"
Value="$(installation_prefix)/lib/fieldworks/EC/Plugins"
Condition="'$(OS)'=='Unix'"/>
<MakeDir Directories="$(fwrt)/DistFiles/SIL/Repository"/>
<WriteRegistry Hive="CurrentUser"
Key="$(BUILDAGENT_HKCU)SOFTWARE/SIL/EncodingConverterRepository/Registry"
Value="$(fwrt)/DistFiles/SIL/Repository/mappingRegistry.xml"/>
<!-- Register silfw:// link protocol -->
<WriteRegistry Hive="CurrentUser"
Key="$(BUILDAGENT_HKCU)SOFTWARE/Classes/silfw/"
Value="URL:SILFW Protocol"/>
<WriteRegistry Hive="CurrentUser"
Key="$(BUILDAGENT_HKCU)SOFTWARE/Classes/silfw/URL Protocol"/>
<WriteRegistry Hive="CurrentUser"
Key="$(BUILDAGENT_HKCU)SOFTWARE/Classes/silfw/shell/open/command/"
Value='"$(dir-outputBase)/FieldWorks.exe" %1'/>
</Target>
</Project>