-
Notifications
You must be signed in to change notification settings - Fork 36
/
makefile.def
5319 lines (4466 loc) · 131 KB
/
makefile.def
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
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
!IF 0
Copyright (c) 1989-1996 Microsoft Corporation
Module Name:
makefile.def
Abstract:
This is the standard makefile for the components of the NT project.
It includes the following files:
.\sources. - developer supplies this file. It defines the
required TARGETNAME, TARGETPATH, TARGETTYPE and
SOURCES as well as optional macros that control
the behavior of the compiler and linker:
obj\_objects.mac - built by BUILD.EXE from .\sources.
Targets:
all - Builds all targets in this make file
clean - Erase all targets that can be produced by this make
file, ignoring errors. Also rebuilds the depend target.
depend - Rebuilts source file dependencies, using BUILD.EXE tool
Useful Variables Set:
CPUTYPE={X86|MIPS|ALPHA|AXP64|MPPC|IA64|AMD64|ARM}
Optional Controls Variables (partial list), these are environment variables,
remember they can be set with env=value on the command line as well:
NOTE: xxx_... is {MSC|X86|MIPS|ALPHA|AXP64|MPPC|IA64|AMD64|ARM} where MSC_ applies to the C8 compiler
independent of the cpu type. Specific cpu_ will take precedence
over the equivalent MSC_ variable.
EXAMPLE: To compile with codeview symbols for windbg:
set NTDEBUG=ntsd
set NTDEBUGTYPE=windbg
set MSC_OPTIMIZATION=/Od
nttest=filename
umappl=filename
NT_UP
Define as 0 in environment to turn on MP.
If undefined or equal to 1, you get UP.
xxx_warning_level
xxx_optimization
xxx_STDCALL = 1 use _stdcall calling convention
0 use _cdecl calling convention
ntdebug
browser_info
xxx_cppflags
ntcppflags
NT_INST - set to turn on instrumentation
NTROOT - \nt or \ntrel (default \nt)
PRECOMPILED_CXX=1 - do precompiled headers for CXX instead of C files
note: precompiled headers can not be used on both
c and cxx files in a single directory.
!ENDIF
!if 0
! message You must use nmake version 1.30 or greater...
!endif
# See if the user wants BROWSER_INFO.
!ifdef BROWSER_INFO
USER_ENV_BROWSER_INFO=1
!endif
#
# Select build target and set platform specific variables.
#
!ifdef BUILD_ALLOW_ALL_WARNINGS
BUILD_ALLOW_LINKER_WARNINGS=1
BUILD_ALLOW_COMPILER_WARNINGS=1
BUILD_ALLOW_MIDL_WARNINGS=1
!endif
!ifndef BUILD_ALLOW_LINKER_WARNINGS
LINKER_WX_SWITCH=/WX
!else
LINKER_WX_SWITCH=
!endif
!ifndef BUILD_ALLOW_COMPILER_WARNINGS
COMPILER_WX_SWITCH=/WX
!else
COMPILER_WX_SWITCH=
!endif
!ifndef BUILD_ALLOW_MIDL_WARNINGS
MIDL_WX_SWITCH=/WX
!else
MIDL_WX_SWITCH=
!endif
!INCLUDE makefile.plt
!ifndef MASTER_VERSION_FILE
!if "$(POCKETPC)" == ""
MASTER_VERSION_FILE = $(SDK_INC_PATH)\ntverp.h
!endif
DEFAULT_VERSION_FILE=1
!endif
!if "$(SDK_INC_PATH)" != "" && exist($(SDK_INC_PATH)\ntverpmk.inc)
!include $(SDK_INC_PATH)\ntverpmk.inc
!endif
#
# IDL/RDL/TDL build rules.
#
!ifdef IDL_RULES
IDL_OUT_DIR =.
IDL_HDR_OUT_DIR =.
RDL_OUT_DIR =.
RDL_HDR_OUT_DIR =.
! ifndef MIDL_INCS
MIDL_INCS = $(_OBJ_DIR)\$(TARGET_DIRECTORY)
! endif
!endif
!ifndef LANGUAGE
LANGUAGE=usa
!endif
# define a simple macro that can be used for the object subdir in makefile.inc/sources files
O = $(_OBJ_DIR)\$(TARGET_DIRECTORY)
#
# Include the developer supplied file that defines the TARGETNAME, TARGETPATH,
# TARGETTYPE and SOURCES macros. Make sure it defines them.
#
!if defined(USE_CAPK)
# Kernel profiling - icecap api's come from the kernel or from rtl\icecap.c when building the kernel/hal/ntdll
USE_ICECAP4=1
PERFLIBS=
C_DEFINES=$(C_DEFINES) /D_CAPKERN=1
ASM_DEFINES=$(ASM_DEFINES) /D_CAPKERN=1
!endif
!if defined(USE_ICECAP) || defined(USE_ICECAP4) || defined(USE_DLP)
! ifdef USE_ICECAP
PERFFLAGS=-Gh
PERFLIBS=$(SDK_LIB_PATH)\icap.lib
! else
! ifdef USE_ICECAP4
PERFFLAGS=/fastcap
! else # USE_DLP
PERFFLAGS=/dlp
! endif
! ifndef PERFLIBS
PERFLIBS=$(SDK_LIB_PATH)\icecap.lib
! endif
! endif
! if $(FREEBUILD)
NTDEBUG=ntsdnodbg
! else
NTDEBUG=ntsd
! endif
NTDEBUGTYPE=windbg
NTBBT=1
!endif
LATEST_WIN32_WIN95_VERSION=0x0400
LATEST_WIN32_WCE_VERSION=0x0300
#
# Set versions correctly for NT4/2000/XP/Longhorn
#
!if $(_NT_TARGET_VERSION) == 0x600 ## Windows Longhorn ##
LATEST_WIN32_IE_VERSION =0x0605
LATEST_WIN32_WINNT_VERSION=0x0600
SUBSYSTEM_VERSION_CURRENT =4.10
SUBSYSTEM_VERSION_LATEST =6.00
LINKER_APP_VERSION=6.0
LINKER_OS_VERSION=6.0
!elseif $(_NT_TARGET_VERSION) == 0x502 ## Windows .NET ##
# Server 2003 gold has _WIN32_IE=0x0602, and Server 2003 SP1 has _WIN32_IE=0x0603
LATEST_WIN32_IE_VERSION =0x0603
LATEST_WIN32_WINNT_VERSION=0x0502
SUBSYSTEM_VERSION_CURRENT =4.10
SUBSYSTEM_VERSION_LATEST =5.02
LINKER_APP_VERSION=5.2
LINKER_OS_VERSION=5.2
!elseif $(_NT_TARGET_VERSION) == 0x501 ## Windows XP ##
# XP gold has _WIN32_IE=0x0600, XP SP1 has _WIN32_IE=0x0601, and XPSP2 _WIN32_IE=0x0603
LATEST_WIN32_IE_VERSION =0x0603
LATEST_WIN32_WINNT_VERSION=0x0501
SUBSYSTEM_VERSION_CURRENT=4.10
SUBSYSTEM_VERSION_LATEST =5.01
LINKER_APP_VERSION=5.1
LINKER_OS_VERSION=5.1
!elseif $(_NT_TARGET_VERSION) == 0x500 ## Windows 2000 ##
LATEST_WIN32_IE_VERSION =0x0501
LATEST_WIN32_WINNT_VERSION=0x0500
SUBSYSTEM_VERSION_CURRENT=4.10
SUBSYSTEM_VERSION_LATEST =5.00
LINKER_APP_VERSION=5.0
LINKER_OS_VERSION=5.0
!elseif $(_NT_TARGET_VERSION) == 0x450 ## Windows NT 4.5 ##
LATEST_WIN32_IE_VERSION =0x0200
LATEST_WIN32_WINNT_VERSION=0x0450
SUBSYSTEM_VERSION_CURRENT =4.50
SUBSYSTEM_VERSION_LATEST =4.50
LINKER_APP_VERSION=4.5
LINKER_OS_VERSION=4.5
# For now, only MinNT (4.5) uses MinWin, but other versions that use MinWin (e.g. => 6.1) can add
# the following specifier to use MINWIN library path instead of BASE library path.
ENABLE_MINWIN=1
!elseif $(_NT_TARGET_VERSION) == 0x400 ## Windows NT 4 ##
LATEST_WIN32_IE_VERSION =0x0200
LATEST_WIN32_WINNT_VERSION=0x0400
SUBSYSTEM_VERSION_CURRENT =4.00
SUBSYSTEM_VERSION_LATEST =4.00
LINKER_APP_VERSION=4.0
LINKER_OS_VERSION=4.0
!else
!message NMAKE : Uxxxx: _NT_TARGET_VERSION value is unknown. Update Makefile.def to understand the new version.
!endif # _NT_TARGET_VERSION
#
# Set Windows CE/PocketPC variables.
#
!if "$(POCKETPC)" != ""
! if "$(POCKETPC_EMULATION)" != ""
WINCE_IMAGE = -WINDOWSCE:EMULATION
! else
WINCE_IMAGE = -WINDOWSCE
! endif
CVTRES_PLATFORM_FLAGS = $(WINCE_IMAGE)
!endif
#
# Run miscfiles rules during both compile and link phases. Sources file
# can override by setting this a value other than 0
#
MISCFILES_DURING_LINK=0
!INCLUDE .\sources
SOURCES_USED=$(SOURCES_USED) .\sources
#
# Attempt to include the sources file from the target subdirectory.
#
!IF EXIST(.\$(TARGET_DIRECTORY)\sources)
! INCLUDE .\$(TARGET_DIRECTORY)\sources
SOURCES_USED=$(SOURCES_USED) .\$(TARGET_DIRECTORY)\sources
!ENDIF
!ifdef PASS1_LINK
MAKEDLL=1
!undef NOLINK
!endif
#
# Attempt to include the sources file from the parent target subdirectory.
#
!IF EXIST(..\$(TARGET_DIRECTORY)\sources)
! INCLUDE ..\$(TARGET_DIRECTORY)\sources
SOURCES_USED=$(SOURCES_USED) ..\$(TARGET_DIRECTORY)\sources
!ENDIF
!if $(LTCG_DRIVER) && "$(TARGETTYPE)" == "DRIVER"
LINK_TIME_CODE_GENERATION=1
!endif
!if $(LTCG_DRIVER_LIBRARY) && "$(TARGETTYPE)" == "DRIVER_LIBRARY"
LINK_TIME_CODE_GENERATION=1
!endif
!if $(LTCG_DYNLINK) && "$(TARGETTYPE)" == "DYNLINK"
LINK_TIME_CODE_GENERATION=1
!endif
!if $(LTCG_EXPORT_DRIVER) && "$(TARGETTYPE)" == "EXPORT_DRIVER"
LINK_TIME_CODE_GENERATION=1
!endif
!if $(LTCG_GDI_DRIVER) && "$(TARGETTYPE)" == "GDI_DRIVER"
LINK_TIME_CODE_GENERATION=1
!endif
!if $(LTCG_HAL) && "$(TARGETTYPE)" == "HAL"
LINK_TIME_CODE_GENERATION=1
!endif
!if $(LTCG_LIBRARY) && "$(TARGETTYPE)" == "LIBRARY"
LINK_TIME_CODE_GENERATION=1
!endif
!if $(LTCG_MINIPORT) && "$(TARGETTYPE)" == "MINIPORT"
LINK_TIME_CODE_GENERATION=1
!endif
!if $(LTCG_PROGRAM) && "$(TARGETTYPE)" == "PROGRAM"
LINK_TIME_CODE_GENERATION=1
!endif
!if $(LTCG_PROGLIB) && "$(TARGETTYPE)" == "PROGLIB"
LINK_TIME_CODE_GENERATION=1
!endif
!if $(LTCG_UMAPPL_NOLIB) && "$(TARGETTYPE)" == "UMAPPL_NOLIB"
LINK_TIME_CODE_GENERATION=1
!endif
# Allow separate LTCG definitions loosely based on SKU.
!if defined(LTCG_SRV) || defined(LTCG_WKS) || defined(LTCG_SRVWKS)
LINK_TIME_CODE_GENERATION=1
!endif
# Avoid publishing ANONYMOUS PCH objects to public.
!if defined(LINK_TIME_CODE_GENERATION) && defined(PASS1_PUBLISH) && "$(BUILD_PASS)" != "PASS0" && "$(BUILD_PASS)" != "PASS2" && !defined(NOLIB) && "$(TARGETTYPE)" != "DYNLINK" && "$(TARGETTYPE)" != "EXPORT_DRIVER"
NTNOPCH=1
!endif
# Allow alternate object directories.
!ifndef BUILD_ALT_DIR
BUILD_ALT_DIR=
! ifdef CHECKED_ALT_DIR
! if !$(FREEBUILD)
BUILD_ALT_DIR=d
! endif
! endif
!endif
_OBJ_DIR = obj$(BUILD_ALT_DIR)
!if "$(BINPLACE_LOG)" != ""
BUILD_LOGS=$(BINPLACE_LOG)\..
!message BUILD_LOGS=$(BUILD_LOGS)
!if [-mkdir $(BUILD_LOGS)\sidebyside >nul 2>&1]
# !error Cannot make $(BUILD_LOGS)\sidebyside
!endif
!endif
!if defined(SXS_LOCALIZE_ASSEMBLY)
! message $(BUILD_ERROR_MSG) SXS_LOCALIZE_ASSEMBLY is obsolete.
!endif
#
# This would be the default but so far everyone is an exception.
# Comctl32.dll has multiple languages in the code .dll.
# Gdiplus.dll has no resources.
# Rtc is using system32 fallback + explicit satelltie dependency.
#
# Besides that, nobody yet needs this.
#
!if defined(SXS_LOCALIZE_ASSEMBLY_MUI) && "$(SXS_LOCALIZE_ASSEMBLY_MUI)" != "1"
! message $(BUILD_ERROR_MSG) SXS_LOCALIZE_ASSEMBLY_MUI can only be set to 1.
!endif
!if defined(SXS_LOCALIZE_ASSEMBLY_SATELLITE_WITH_EXPLICIT_DEPENDENCY) && "$(SXS_LOCALIZE_ASSEMBLY_SATELLITE_WITH_EXPLICIT_DEPENDENCY)" != "1"
! message $(BUILD_ERROR_MSG) SXS_LOCALIZE_ASSEMBLY_SATELLITE_WITH_EXPLICIT_DEPENDENCY can only be set to 1.
!endif
!if defined(SXS_LOCALIZE_ASSEMBLY_SATELLITE_WITH_EXPLICIT_DEPENDENCY) && !defined(SXS_LANGUAGE)
! message $(BUILD_ERROR_MSG) If you set SXS_LOCALIZE_ASSEMBLY_SATELLITE_WITH_EXPLICIT_DEPENDENCY, you must also set SXS_LANGUAGE, and use SXS_LANGUAGE in your assembly identity.
!endif
#
# SXS Build
#
# Step by Step
#
# For building a monolithic application, foo.ext (where .ext is usually .exe but for example .scr).
# For building an application that hosts arbitrary (3rd party) code.
# For building a single file component like comctl32.dll.
# For building a multiple file component.
#
# Reference
#
# An assembly contains a manifest and one or more files, usually .dlls.
# The manifest can be in a resource in one of the files, or it can be in a seperate
# .manifest file. For purposes of fitting on an 8.3 CD, .man is allowed.
# For preprocessing, the source file can be .manifest-src.
# Build.exe is generally limited to building one .dll per directory, so
# you can be building files for an assembly without building a manifest.
#
# To build/binplace a manifest:
#
# SXS_MANIFEST required
# This is the source file that contains your manifest.
# It must end in .manifest or .manifest-src.
# It is always preprocessed. Available macros include:
# SXS_ASSEMBLY_NAME
# SXS_ASSEMBLY_VERSION
# SXS_ASSEMBLY_LANGUAGE
# SXS_PROCESSOR_ARCHITECTURE
#
# SXS_MANIFEST_IN_RESOURCES optional
# This is defined or not, so you just say
# SXS_MANIFEST_IN_RESOURCES=
# or don't say anything.
#
# SXS_ASSEMBLY_NAME and/or SXS_SHORT_ASSEMBLY_NAME required
# One can be generated from the other.
# SXS_SHORT_ASSEMBLY_NAME is used where 8.3 limits apply, like on the product CD.
# Both of these macros can be hierarchical, using dot, dash, or underscore to seperate
# elements. SXS_SHORT_ASSEMBLY_NAME should actually only contain 8 character elements.
#
# SXS_ASSEMBLY_VERSION optional, defaults to 5.1.
#
# SXS_ASSEMBLY_LANGUAGE or SXS_ASSEMBLY_LANGUAGE_INDEPENDENT required
# SXS_ASSEMBLY_LANGUAGE_INDEPENDENT is defined or not.
# SXS_ASSEMBLY_LANGUAGE is four digits like
# 0409 for English US
# 0009 for English
# 0000 for language independent
# We should make this easier as is done for resources (LANGUAGE => RCCODEPAGE), but for now we don't.
#
# To build/binplace a file into an assembly, a subset of the information
# needed for manifests is needed:
#
# SXS_ASSEMBLY_NAME and/or SXS_SHORT_ASSEMBLY_NAME
# SXS_ASSEMBLY_VERSION
# SXS_ASSEMBLY_LANGUAGE or SXS_ASSEMBLY_LANGUAGE_INDEPENDENT
#
# There are restrictions on the values of these macros and not all restrictions
# are currently enforced by the build. Enforcements that are present are done
# ifdef VERIFY_SOURCES in verify.src.
#
!if defined(SXS_MANIFEST) \
|| defined(SXS_BINPLACE_ALSO_ROOT) \
|| defined(SXS_ASSEMBLY_NAME) \
|| defined(SXS_ASSEMBLY_VERSION) \
|| defined(SXS_ASSEMBLY_LANGUAGE_INDEPENDENT) \
|| defined(SXS_ASSEMBLY_LANGUAGE)
VERIFY_SOURCES=1
!endif
!if "$(ALT_PROJECT)" == "WOW6432" || "$(ALT_PROJECT_TARGET)" == "WOW6432"
SXS_PDB_WOW6432_W_PREFIX=w
SXS_LOG_WOWBINS_W_ASMS_PREFIX=w
SXS_LOG_BINPLACE_WOW6432_PREFIX=wow6432^\
SXS_WOW6432=1
!endif
# Form this particularly so build.exe reports errors.
# Using !error doesn't work as well.
# It is based on what \nt\base\wow64\tools and verify.src do.
SXS_BUILD_ERROR_MSG=NMAKE : U1234: 'SXS_BUILD' ($(NTMAKEENV)\makefile.def)
SXS_MERGE_MODULE_ERROR_MSG=NMAKE : U1234: 'SXS_MERGE_MODULE_GENERATION' ($(NTMAKEENV)\makefile.def)
#
# There's two meta-modes of operation in SXS - Application manifest mode and component manifest mode.
# Depending on what you have defined in your sources file, you can simplify all of the build process
# down to a very minimal set of commands in your sources files and still get Fusionization goodness.
#
# Example:
#
# SXS_APPLICATION_MANIFEST=MyAppManifest.manifest
#
# (or)
#
# SXS_COMPONENT_MANIFEST=MyComponentManifest.manifest
#
# See the code below for what gets defined based on each - it's more or less the defaults, but
# explicitly spelled out.
#
# No fair using either app and component manifest, and specifying sxs_manifest, or using both by accident
!if defined(SXS_APPLICATION_MANIFEST) && defined(SXS_COMPONENT_MANIFEST)
!message $(SXS_BUILD_ERROR_MSG) You can have only one of SXS_APPLICATION_MANIFEST or SXS_COMPONENT_MANIFEST, not both
!elseif defined(SXS_MANIFEST) && ( defined(SXS_APPLICATION_MANIFEST) || defined(SXS_COMPONENT_MANIFEST) )
!message $(SXS_BUILD_ERROR_MSG) When using SXS_APPLICATION_MANIFEST or SXS_COMPONENT_MANIFEST, do not specify SXS_MANIFEST
!endif
# Applications get the following defaults that are not defaulted later:
# - SXS_ASSEMBLY_LANGUAGE=SXS_ASSEMBLY_LANGUAGE_INDEPENDENT
# - SXS_ASSEMBLY_NAME=Microsoft.Windows.$(PROJECT).$(TARGETNAME)
# - Manifest in resources
!if defined(SXS_APPLICATION_MANIFEST)
SXS_MANIFEST=$(SXS_APPLICATION_MANIFEST)
SXS_MANIFEST_IN_RESOURCES=1
SXS_NO_BINPLACE=1
!if !defined(SXS_ASSEMBLY_NAME)
SXS_ASSEMBLY_NAME=Microsoft.Windows.$(_PROJECT_).$(TARGETNAME)
!endif
!if !defined(SXS_ASSEMBLY_LANGUAGE)
SXS_ASSEMBLY_LANGUAGE_INDEPENDENT=1
!endif
# Components get the following defaulted:
# - SXS_ASSEMBLY_NAME=Microsoft.Windows.$(PROJECT).$(TARGETNAME)
# - Language independent
!elseif defined(SXS_COMPONENT_MANIFEST)
SXS_MANIFEST=$(SXS_COMPONENT_MANIFEST)
!if !defined(SXS_ASSEMBLY_NAME)
SXS_ASSEMBLY_NAME=Microsoft.Windows.$(_PROJECT_).$(TARGETNAME)
!endif
!if !defined(SXS_ASSEMBLY_LANGUAGE)
SXS_ASSEMBLY_LANGUAGE_INDEPENDENT=1
!endif
!endif
!if "$(VERIFY_SOURCES)" == "1"
!include $(NTMAKEENV)\verify.src
!endif
!if defined(ISOLATION_AWARE_ENABLED)
C_DEFINES=$(C_DEFINES) -DISOLATION_AWARE_ENABLED=1
!endif
#
# NO_BINPLACE implies SXS_NO_BINPLACE
#
!if defined(NO_BINPLACE)
SXS_NO_BINPLACE=1
!endif
#
# Building an .exe implies SXS_NO_BINPLACE.
#
!if "$(TARGETTYPE)" == "PROGRAM"
SXS_NO_BINPLACE=1
!endif
#
# We can build SXS_ASSEMBLY_NAME out of SXS_SHORT_ASSEMBLY_NAME
# and vice versa.
#
!if !defined(SXS_ASSEMBLY_NAME) && defined(SXS_SHORT_ASSEMBLY_NAME)
SXS_ASSEMBLY_NAME=$(SXS_SHORT_ASSEMBLY_NAME)
!endif
!if !defined(SXS_SHORT_ASSEMBLY_NAME) && defined(SXS_ASSEMBLY_NAME)
SXS_SHORT_ASSEMBLY_NAME=$(SXS_ASSEMBLY_NAME)
!endif
#
# Support the idea of a hierarchical 8.3 name, besides that this
# transform might be applied after the preceding assignment.
#
# eg: msft-vcrtl => msft\vcrtl
#
# Turn hierarchical names using [-._ ] as the element divider
# into hierarchical file system names. (Note that _ and . are not
# currently allowed in assembly names.)
SXS_SHORT_ASSEMBLY_NAME=$(SXS_SHORT_ASSEMBLY_NAME:-=\)
SXS_SHORT_ASSEMBLY_NAME=$(SXS_SHORT_ASSEMBLY_NAME:_=\)
SXS_SHORT_ASSEMBLY_NAME=$(SXS_SHORT_ASSEMBLY_NAME:.=\)
SXS_SHORT_ASSEMBLY_NAME=$(SXS_SHORT_ASSEMBLY_NAME: =\)
# Shorten one special name that is likely to appear in long assembly names.
SXS_SHORT_ASSEMBLY_NAME=$(SXS_SHORT_ASSEMBLY_NAME:Microsoft=Msft)
SXS_SHORT_ASSEMBLY_NAME=$(SXS_SHORT_ASSEMBLY_NAME:microsoft=msft)
!if defined(SXS_MANIFEST_IN_RESOURCES) && !defined(SXS_MANIFEST)
!message $(SXS_BUILD_ERROR_MSG) You must specify SXS_MANIFEST if you specify SXS_MANIFEST_IN_RESOURCES.
!endif
!if defined(SXS_ASSEMBLY_VERSION) && !defined(SXS_ASSEMBLY_NAME)
!message $(SXS_BUILD_ERROR_MSG) You may not specify SXS_ASSEMBLY_VERSION without SXS_ASSEMBLY_NAME or SXS_SHORT_ASSEMBLY_NAME.
!endif
!if (defined(SXS_ASSEMBLY_LANGUAGE) || defined(SXS_ASSEMBLY_LANGUAGE_INDEPENDENT)) && !defined(SXS_ASSEMBLY_NAME)
!message $(SXS_BUILD_ERROR_MSG) You may not specify SXS_ASSEMBLY_LANGUAGE or SXS_ASSEMBLY_LANGUAGE_INDEPENDENT without SXS_ASSEMBLY_NAME or SXS_SHORT_ASSEMBLY_NAME.
!endif
!if defined(SXS_BINPLACE_ALSO_ROOT) && !defined(SXS_ASSEMBLY_NAME)
!message $(SXS_BUILD_ERROR_MSG) You may not specify SXS_BINPLACE_ALSO_ROOT without SXS_ASSEMBLY_NAME or SXS_SHORT_ASSEMBLY_NAME.
!endif
!if defined(MANAGED_CXX) || defined(MANAGED_CODE) || defined(MANAGED_VB)
# "managed" == urt, clr, .net, c#, vs7, mscoree, etc.
SXS_MANAGED=1
!else
# "unmanaged" == C++/C/assembly, native x86/ia64/amd64/etc.
SXS_MANAGED=0
!endif
!if defined(SXS_ASSEMBLY_NAME) # {
#
# SXS_ASSEMBLY_VERSION may only contain dots and digits.
# Removing them should leave nothing.
#
SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS=$(SXS_ASSEMBLY_VERSION)
SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS=$(SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS:.=)
SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS=$(SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS:0=)
SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS=$(SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS:1=)
SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS=$(SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS:2=)
SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS=$(SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS:3=)
SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS=$(SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS:4=)
SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS=$(SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS:5=)
SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS=$(SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS:6=)
SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS=$(SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS:7=)
SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS=$(SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS:8=)
SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS=$(SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS:9=)
!if "$(SXS_CHECK_ASSEMBLY_VERSION_CHARACTERS)" != ""
!message $(SXS_BUILD_ERROR_MSG) SXS_ASSEMBLY_VERSION ($(SXS_ASSEMBLY_VERSION)) may only contain dots and digits.
!endif
#
# ASSERT(SXS_ASSEMBLY_LANGUAGE xor SXS_ASSEMBLY_LANGUAGE_INDEPENDENT)
#
!if (!defined(SXS_ASSEMBLY_LANGUAGE) && !defined(SXS_ASSEMBLY_LANGUAGE_INDEPENDENT))
!message $(SXS_BUILD_ERROR_MSG) Must specify SXS_ASSEMBLY_LANGUAGE or SXS_ASSEMBLY_LANGUAGE_INDEPENDENT.
!endif
!if ( defined(SXS_ASSEMBLY_LANGUAGE) && defined(SXS_ASSEMBLY_LANGUAGE_INDEPENDENT))
!message $(SXS_BUILD_ERROR_MSG) Must not specify both SXS_ASSEMBLY_LANGUAGE and SXS_ASSEMBLY_LANGUAGE_INDEPENDENT.
!message ( SXS_ASSEMBLY_LANGUAGE=$(SXS_ASSEMBLY_LANGUAGE), SXS_ASSEMBLY_LANGUAGE_INDEPENDENT=$(SXS_ASSEMBLY_LANGUAGE_INDEPENDENT) )
!endif
#
# Derive from SXS_ASSEMBLY_LANGUAGE from SXS_ASSEMBLY_LANGUAGE_INDEPENDENT.
#
!if defined(SXS_ASSEMBLY_LANGUAGE_INDEPENDENT) && !defined(SXS_ASSEMBLY_LANGUAGE)
SXS_ASSEMBLY_LANGUAGE=x-ww
!endif
#
# This is for Fusion stuff only. It does not need to match the nt subsystem version.
#
!if !defined(SXS_ASSEMBLY_VERSION)
SXS_ASSEMBLY_VERSION=5.1
!endif
#
# SxS Versions are Major.Minor.Release.Revision
#
!if defined(SXS_ASSEMBLY_VERSION) # {
!if !defined(SXS_ASSEMBLY_VERSION_PART_3)
SXS_ASSEMBLY_VERSION_PART_3_UNDEFINED=1
SXS_ASSEMBLY_VERSION_PART_3=0
!endif
!if !defined(SXS_ASSEMBLY_VERSION_PART_4)
SXS_ASSEMBLY_VERSION_PART_4=0
!endif
#
# If this is more than eight characters or not adequately unique, the user must specify it in their sources file.
#
!if "$(SXS_EIGHT_CHARACTER_VERSION_DIRECTORY_NAME_UNIQUIFIER)" == ""
!if !defined(SXS_AUTO_VERSION)
!if "$(SXS_ASSEMBLY_VERSION_PART_4)" != "0"
SXS_EIGHT_CHARACTER_VERSION_DIRECTORY_NAME_UNIQUIFIER=$(SXS_ASSEMBLY_VERSION:.=)$(SXS_ASSEMBLY_VERSION_PART_3)
!else
SXS_EIGHT_CHARACTER_VERSION_DIRECTORY_NAME_UNIQUIFIER=$(SXS_ASSEMBLY_VERSION:.=)$(SXS_ASSEMBLY_VERSION_PART_3)$(SXS_ASSEMBLY_VERSION_PART_4)
!endif
!else
SXS_EIGHT_CHARACTER_VERSION_DIRECTORY_NAME_UNIQUIFIER=$(SXS_ASSEMBLY_VERSION:.=)
!endif
!endif
SXS_ASSEMBLY_FULL_VERSION=$(SXS_ASSEMBLY_VERSION).$(SXS_ASSEMBLY_VERSION_PART_3).$(SXS_ASSEMBLY_VERSION_PART_4)
!endif # }
!if !defined(SXS_NO_BINPLACE) # {
#
# We might need SXS_ASSEMBLY_LANGUAGE and even SXS_ASSEMBLY_PROCESSOR_ARCHITECTURE
# in SXS_BINPLACE_DIR, esp. for example if we have any data only assemblies with
# the same name/version as code containing assemblies.
#
# Eventually the mapping from assembly metadata to run-time paths and
# build-time paths will be exposed by sxs.dll/sxs.lib consumed
# by build tools written in C/C++ (possibly just binplace).
# Build/Make are too constraining for our needs.
# For now we get by.
#
# "asms" is very special, it is the root of where assemblies are binplaced
# and it is the root of where they appear on the CD. This string appears in
# a number of places:
# \nt\tools\PostBuildScripts
# \nt\admin\ntsetup\inf\win4\inf\dosnet.inx
# \nt\admin\ntsetup\inf\win4\inf\syssetup.inx
#
!if $(SXS_MANAGED)
SXS_BINPLACE_DIR1=managed_asms
!else
SXS_BINPLACE_DIR1=asms
!endif
# We place version in front of name due to restrictions on how the manifest
# file name related to the name of leaf directory it is in.
SXS_BINPLACE_DIR2=$(SXS_EIGHT_CHARACTER_VERSION_DIRECTORY_NAME_UNIQUIFIER)\$(SXS_SHORT_ASSEMBLY_NAME)
SXS_BINPLACE_DIR3=$(SXS_BINPLACE_DIR1)\$(SXS_BINPLACE_DIR2)
SXS_BINPLACE_SLASH_DIR3=\$(SXS_BINPLACE_DIR3)
#
# create msms destination directory
#
!if defined(SXS_GENERATE_MERGE_MODULE) # {
#
# if the generate mode is not defined, set it default : 0
#
!if !defined(SXS_MERGE_MODULE_FOR_ASSEMBLY_GROUP)
SXS_MERGE_MODULE_FOR_ASSEMBLY_GROUP=0
!else
SXS_MERGE_MODULE_FOR_ASSEMBLY_GROUP=1
!endif
!if "$(SXS_MERGE_MODULE_GUID)" == "" || "$(SXS_MERGE_MODULE_COMPONENT_GUID)" == "" # {
!error $(SXS_MERGE_MODULE_ERROR_MSG) MergeModule GUID and MergeModule Component must be specified
!endif # }
!if !defined(SXS_MERGE_MODULE) # { use the manifest basename as the msm basename
SXS_MERGE_MODULE=$(SXS_MANIFEST_BASENAME).msm
!endif #}
!if !defined(SXS_MERGE_MODULE_LOCATION)
SXS_MERGE_MODULE_DESTINATION=asm_msm\$(SXS_BINPLACE_DIR2)
!else
#
#parse this string to generate the real path
#
SXS_MERGE_MODULE_LOCATION=$(SXS_ASSEMBLY_FULL_VERSION:.=)\$(SXS_MERGE_MODULE_LOCATION)
SXS_MERGE_MODULE_LOCATION=$(SXS_MERGE_MODULE_LOCATION:-=\)
SXS_MERGE_MODULE_LOCATION=$(SXS_MERGE_MODULE_LOCATION:_=\)
SXS_MERGE_MODULE_LOCATION=$(SXS_MERGE_MODULE_LOCATION:.=\)
SXS_MERGE_MODULE_LOCATION=$(SXS_MERGE_MODULE_LOCATION: =\)
SXS_MERGE_MODULE_LOCATION=asm_msm\$(SXS_MERGE_MODULE_LOCATION)
!endif
!endif # }
BINPLACE_GENERATE_PLACEFILE=1
!if "$(BINPLACE_DESTINATIONS)" == ""
BINPLACE_DESTINATIONS=$(SXS_BINPLACE_DIR3)
!else
BINPLACE_DESTINATIONS=$(BINPLACE_DESTINATIONS):$(SXS_BINPLACE_DIR3)
!endif
BINPLACE_DESTINATIONS_NORETAIL=$(BINPLACE_DESTINATIONS)
!if defined(SXS_BINPLACE_ALSO_ROOT)
BINPLACE_DESTINATIONS=$(BINPLACE_DESTINATIONS):retail
!endif
!endif # !SXS_NO_BINPLACE }
#
# Optionally uniquize the .pdb names, so they can go in a flat directory (%nttree%\symbols.pri\retail\dll)
#
!if !defined(SXS_LONG_PDB_NAME)
SXS_LONG_PDB_NAME=$(SXS_PDB_WOW6432_W_PREFIX)$(SXS_ASSEMBLY_NAME:.=)-$(SXS_ASSEMBLY_FULL_VERSION:.=)-$(TARGETNAME:.=)
!endif
!if !defined(SXS_NO_BINPLACE) #{
!if !defined(TARGETPDB) && "$(SXS_USE_LONG_PDB_NAME)" == "1" && !defined(SXS_AUTO_VERSION)
LINKER_FLAGS=$(LINKER_FLAGS) -pdb:$(TARGETPATH)\$(TARGET_DIRECTORY)\$(SXS_LONG_PDB_NAME).pdb
!endif
SXS_BINPLACE_FLAGS=-ChangeAsmsToRetailForSymbols
!endif #}
!endif # !SXS_ASSEMBLY_NAME }
!if defined(BINPLACE_LOG) && !defined(NO_SXS_LOG)
!if !defined(NO_BINPLACE) && ("$(TARGETTYPE)" == "NOTARGET" || "$(MAKEDLL)" != "" || "$(BUILD_PASS)" == "PASS2")
SXS_LOG_PASS=1
SXS_LOG_CMD= ( echo. )
!endif
!endif
!if defined(SXS_LOG_PASS) && !defined(APPEND_TOOL)
APPEND_TOOL=appendtool.exe
!endif
!if defined(SXS_MANIFEST) # {
#
# If removing .manifest or .Manifest from SXS_MANIFEST leaves it unchanged,
# it doesn't contain either one and is invalid.
#
!if "$(SXS_MANIFEST:.Manifest=)" == "$(SXS_MANIFEST)" \
&& "$(SXS_MANIFEST:.manifest=)" == "$(SXS_MANIFEST)"
!message $(SXS_BUILD_ERROR_MSG) SXS_MANIFEST ($(SXS_MANIFEST)) must contain ".Manifest", it must end in ".Manifest or ".Manifest-src"
!endif
SXS_MANIFEST_SOURCE_FILENAME=$(SXS_MANIFEST:..\=)
SXS_MANIFEST_BASENAME=$(SXS_MANIFEST_SOURCE_FILENAME)
SXS_MANIFEST_BASENAME=$(SXS_MANIFEST_BASENAME:.manifest-src=)
SXS_MANIFEST_BASENAME=$(SXS_MANIFEST_BASENAME:.Manifest-src=)
SXS_MANIFEST_BASENAME=$(SXS_MANIFEST_BASENAME:.manifest=)
SXS_MANIFEST_BASENAME=$(SXS_MANIFEST_BASENAME:.Manifest=)
SXS_MANIFEST_BASENAME=$(SXS_MANIFEST_BASENAME:.man=)
SXS_MANIFEST_BASENAME=$(SXS_MANIFEST_BASENAME:.Man=)
SXS_MANIFEST_BASENAME=$(SXS_MANIFEST_BASENAME:.man-src=)
SXS_MANIFEST_BASENAME=$(SXS_MANIFEST_BASENAME:.Man-src=)
#
# Always make .man file in the obj directory.
#
SXS_MANIFEST_OBJ1=$(O)\$(SXS_MANIFEST_BASENAME).man
#
# If TARGETPDB is defined, we'll use the linker's default PDB name.
# if SXS_AUTO_VERSION is on, derive the PDB name from ntverp.h & sxsmanifest.h
# by preprocessing a .lnk file to provide the right -pdb flag to LINKER
#
!if defined(SXS_AUTO_VERSION) && !defined(TARGETPDB) && "$(SXS_USE_LONG_PDB_NAME)" == "1"
SXS_PDB_NAMER=$(O)\$(SXS_MANIFEST_BASENAME)_pdb.lnk
!endif
!if !defined(SXS_MANIFEST_IN_RESOURCES) # {
#
# OBJ is files in obj\x86.
# BIN is binplaced files, possibly also in obj\x86.
#
# The binplaced file must be 8.3.
# The obj\x86 file
# - should allow .exes to be run from obj\x86 that don't have manifest-in-resources
# - not override manifest-in-resources
#
SXS_MANIFEST_BIN_FILENAME=$(SXS_MANIFEST_BASENAME).man
!if !defined(NO_BINPLACE) && !defined(SXS_NO_BINPLACE) && ("$(BUILD_PASS)" == "PASS1" || "$(BUILD_PASS)" == "PASSALL")
SXS_MISCFILES=$(SXS_MISCFILES) $(SXS_MANIFEST_OBJ1)
!endif
# Make a .manifest file identical to the .man file (we just copy it).
!if "$(TARGETTYPE)" != "NOTARGET" && ("$(MAKEDLL)" != "" || "$(BUILD_PASS)" == "PASS2")
SXS_MANIFEST_OBJ2=$(O)\$(TARGETNAME).$(TARGETEXT).manifest
!endif
!else # } SXS_MANIFEST_IN_RESOURCES { #
SXS_MANIFEST_BIN_FILENAME=$(TARGETNAME).$(TARGETEXT)
!if !defined(SXS_MANIFEST_RESOURCE_ID) # {
!if defined(ISOLATION_AWARE_ENABLED) || "$(TARGETTYPE)" == "DYNLINK"
SXS_MANIFEST_RESOURCE_ID=ISOLATIONAWARE_MANIFEST_RESOURCE_ID
!elseif "$(TARGETTYPE)" == "PROGRAM" || "$(TARGETTYPE)" == "PROGLIB" || "$(TARGETTYPE)" == "UMAPPL_NOLIB"
SXS_MANIFEST_RESOURCE_ID=CREATEPROCESS_MANIFEST_RESOURCE_ID
!endif
!endif # }
#
# Putting manifests in resources requires no editing of the .rc file.
# We can do this via forceinclude-file or forceinclude-string.
# I thought rc.exe had a forceinclude-file feature like the C++ compiler.
# By the time I realized that it doesn't, it seemed better to press ahead
# with simulating it than not depend on it. There is unlikely any other way
# to support SXS_MANIFEST_IN_RESOURCES without requiring "nonlocal" .rc file
# edits (ie: without further fanning out how many files need to touched in how
# many places by clients who want to build sxs assemblies).
#
RCOPTIONS=-DSXS_MANIFEST_OBJ1="\"$(SXS_MANIFEST_OBJ1:\=/)\"" $(RCOPTIONS)
INCPATHRC=$(INCPATHRC)
RC_FORCE_INCLUDE_STRING=$(RC_FORCE_INCLUDE_STRING)^
^#include "windows.h"^
^/* RT_MANIFEST is in winuser.h and winuser.rh */^
$(SXS_MANIFEST_RESOURCE_ID) RT_MANIFEST SXS_MANIFEST_OBJ1
#RC_FORCE_INCLUDE_FILES=$(RC_FORCE_INCLUDE_FILES);$(BASE_INC_PATH)\SxsManifestInResource.rc2
#RC_FORCE_INCLUDE_STRING=
!endif # } SXS_MANIFEST_IN_RESOURCES
!if defined(SXS_LOG_PASS) # {
#
# data for PostBuild/ManifestMangler
#
!if $(SXS_MANAGED)
SXS_BINPLACE_LOG=$(BINPLACE_LOG)-managed-sxs
!else
SXS_BINPLACE_LOG=$(BINPLACE_LOG)-sxs
!endif
!if !defined(APPEND_CMD)
APPEND_CMD=$(APPEND_TOOL) -file $(SXS_BINPLACE_LOG) -
!endif
SXS_LOG_CMD= ( $(SXS_LOG_CMD) ) & \
( echo \
SXS_ASSEMBLY_NAME="$(SXS_ASSEMBLY_NAME)" \
SXS_ASSEMBLY_VERSION="$(SXS_ASSEMBLY_FULL_VERSION)" \
SXS_ASSEMBLY_LANGUAGE="$(SXS_ASSEMBLY_LANGUAGE)" \
SXS_MANIFEST="$(SXS_LOG_BINPLACE_WOW6432_PREFIX)$(SXS_BINPLACE_DIR3)\$(SXS_MANIFEST_BIN_FILENAME)" \
!if defined(SXS_LOCALIZE_ASSEMBLY_MUI)
SXS_LOCALIZE_ASSEMBLY_MUI=$(SXS_LOCALIZE_ASSEMBLY_MUI) \
!endif
!if defined(SXS_LOCALIZE_ASSEMBLY_SATELLITE_WITH_EXPLICIT_DEPENDENCY)
SXS_LOCALIZE_ASSEMBLY_SATELLITE_WITH_EXPLICIT_DEPENDENCY=$(SXS_LOCALIZE_ASSEMBLY_SATELLITE_WITH_EXPLICIT_DEPENDENCY) \
!endif
| $(APPEND_TOOL) -file $(BUILD_LOGS)\sidebyside\binplace_$(COMPUTERNAME).log-sxs - )
#
# Produce manifest-related, including
# Required: catalog,
# Optional: merge module
#
!if !defined(SXS_NO_BINPLACE) # {
!if 1 #{ begin create log-file-entry for Assembly Catalog
!if !defined(SXS_FUSIONLIST_TXT_DATA_VALIDLANGS)
SXS_FUSIONLIST_TXT_DATA_VALIDLANGS=all
!endif
!if !defined(SXS_FUSIONLIST_TXT_DATA_LANGEXCEPTIONS)
SXS_FUSIONLIST_TXT_DATA_LANGEXCEPTIONS=-
!endif
!if !defined(SXS_FUSIONLIST_TXT_DATA_VALIDARCHS)
SXS_FUSIONLIST_TXT_DATA_VALIDARCHS=all
!endif
!if !defined(SXS_FUSIONLIST_TXT_DATA_VALIDDEBUG)
SXS_FUSIONLIST_TXT_DATA_VALIDDEBUG=all
!endif
#
# Filename ValidLangs Exceptions ValidArchs ValidDebug AltName
#
!if !defined(SXS_FUSIONLIST_TXT_DATA) #{
SXS_FUSIONLIST_TXT_DATA=\
$(SXS_BINPLACE_DIR3)\$(SXS_MANIFEST_BASENAME).cat \
$(SXS_FUSIONLIST_TXT_DATA_VALIDLANGS) \
$(SXS_FUSIONLIST_TXT_DATA_LANGEXCEPTIONS) \
$(SXS_FUSIONLIST_TXT_DATA_VALIDARCHS) \
$(SXS_FUSIONLIST_TXT_DATA_VALIDDEBUG)
!endif #}
!if !defined(SXS_FUSIONLIST_TXT_DATA_WOW) #{
SXS_FUSIONLIST_TXT_DATA_WOW=\
$(SXS_BINPLACE_DIR1)\x86\$(SXS_BINPLACE_DIR2)\$(SXS_MANIFEST_BASENAME).cat \
$(SXS_FUSIONLIST_TXT_DATA_VALIDLANGS) \
$(SXS_FUSIONLIST_TXT_DATA_LANGEXCEPTIONS) \
ia64;amd64 \
$(SXS_FUSIONLIST_TXT_DATA_VALIDDEBUG)
!endif #}
!endif #} end create log-file-entry for Assembly Catalog
!if defined(SXS_GENERATE_MERGE_MODULE) # { begin create log-file-entry for Assembly MergeModule
#
# the msm-log lsitfile is in the format of
# SourceFileDirectory | Destination-MSM-Filename | MergeModuleID | MergeModuleComponent ID
#
!if !defined(SXS_MERGE_MODULE_TXT_DATA) #{
SXS_MERGE_MODULE_TXT_DATA=\
$(SXS_MERGE_MODULE_FOR_ASSEMBLY_GROUP),\
$(SXS_MERGE_MODULE_GUID),\
..\$(SXS_MERGE_MODULE_LOCATION)\$(SXS_MERGE_MODULE),\
..\$(SXS_BINPLACE_DIR3)\$(SXS_MANIFEST_BASENAME).man,\
$(SXS_MERGE_MODULE_COMPONENT_GUID)
!endif # }
!endif # } end create log-file-entry for Assembly MergeModule
!endif # SXS_NO_BINPLACE }