Skip to content

Commit bd5a429

Browse files
committed
[android] optionally include DS2 in Android SDK
Conditionally include DS2 in the Android SDK when building the MSI with `-p:ANDROID_INCLUDE_DS2=true` passed to `msbuild`. Has no impact on the generated installer if this property is not set.
1 parent 0932d6b commit bd5a429

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

platforms/Windows/android_sdk/android_sdk.wixproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
<DefineConstants>
99
$(DefineConstants);
10+
ANDROID_INCLUDE_DS2=$(ANDROID_INCLUDE_DS2);
1011
SwiftShimsPath=$(SwiftShimsPath);
1112
</DefineConstants>
1213
</PropertyGroup>

platforms/Windows/android_sdk/android_sdk.wxs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@
7979
</Directory>
8080
</Directory>
8181
</Directory>
82+
<Directory Name="$(ArchTriple)">
83+
<Directory Id="Android_Library_ARCH_bin" Name="bin" />
84+
</Directory>
8285
</Directory>
8386
<Directory Name="SDKs">
8487
<!-- Android.sdk -->
@@ -156,6 +159,14 @@
156159
</Component>
157160
</ComponentGroup>
158161

162+
<ComponentGroup Id="DS2">
163+
<?if $(ANDROID_INCLUDE_DS2) == true ?>
164+
<Component Directory="Android_Library_ARCH_bin">
165+
<File Source="$(PLATFORM_ROOT)\Developer\Library\$(ArchTriple)\bin\ds2" />
166+
</Component>
167+
<?endif?>
168+
</ComponentGroup>
169+
159170
<ComponentGroup Id="SwiftRemoteMirror" Directory="AndroidSDK_usr_include_swift_SwiftRemoteMirror">
160171
<Component>
161172
<File Source="$(SDK_ROOT)\usr\include\swift\SwiftRemoteMirror\MemoryReaderInterface.h" />
@@ -1283,6 +1294,7 @@
12831294
<ComponentGroupRef Id="Registrar" />
12841295
<ComponentGroupRef Id="Configuration" />
12851296
<ComponentGroupRef Id="SwiftShims" />
1297+
<ComponentGroupRef Id="DS2" />
12861298

12871299
<ComponentGroupRef Id="VersionedDirectoryCleanup" />
12881300
</Feature>

0 commit comments

Comments
 (0)