Skip to content

Commit

Permalink
[Win] Move references to the XDK to internal (#1342)
Browse files Browse the repository at this point in the history
Make references to the XDK internal-only to allow the external version
to build properly.

b/296290769

Change-Id: I3bf4c59de1fd3163028d713586294a2a93f403be
  • Loading branch information
TyHolc authored Oct 26, 2023
1 parent 3483cb4 commit e7bcf65
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions starboard/win/shared/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,18 @@ config("starboard_platform_config") {

cflags = [
"/EHsc", # C++ exceptions (required with /ZW)
]

cflags += [
"/FU${msvc_path}/lib/x86/store/references/platform.winmd",
"/FU${windows_sdk_path}/References/$wdk_version/Windows.Foundation.FoundationContract/4.0.0.0/Windows.Foundation.FoundationContract.winmd",
"/FU${windows_sdk_path}/References/$wdk_version/Windows.Foundation.UniversalApiContract/14.0.0.0/Windows.Foundation.UniversalApiContract.winmd",
"/FU${windows_sdk_path}/References/$wdk_version/Windows.UI.ViewManagement.ViewManagementViewScalingContract/1.0.0.0/Windows.UI.ViewManagement.ViewManagementViewScalingContract.winmd",
"/FU${windows_sdk_path}/References/$wdk_version/Windows.Xbox.ApplicationResourcesContract/2.0.0.0/Windows.Xbox.ApplicationResourcesContract.winmd",
"/FU${windows_sdk_path}/References/$wdk_version/Windows.Xbox.Security.ApplicationSpecificDeviceAuthenticationContract/1.0.0.0/Windows.Xbox.Security.ApplicationSpecificDeviceAuthenticationContract.winmd",
]

if (is_internal_build) {
cflags += [
"/FU${windows_sdk_path}/References/$wdk_version/Windows.Xbox.ApplicationResourcesContract/2.0.0.0/Windows.Xbox.ApplicationResourcesContract.winmd",
"/FU${windows_sdk_path}/References/$wdk_version/Windows.Xbox.Security.ApplicationSpecificDeviceAuthenticationContract/1.0.0.0/Windows.Xbox.Security.ApplicationSpecificDeviceAuthenticationContract.winmd",
]
}
}

static_library("starboard_platform") {
Expand Down

0 comments on commit e7bcf65

Please sign in to comment.