Skip to content

Commit

Permalink
Cherry pick PR #1342: [Win] Move references to the XDK to internal (#…
Browse files Browse the repository at this point in the history
…1856)

Refer to the original PR: #1342

Make references to the XDK internal-only to allow the external version
to build properly.

b/296290769

Change-Id: I3bf4c59de1fd3163028d713586294a2a93f403be

Co-authored-by: Tyler Holcombe <[email protected]>
  • Loading branch information
cobalt-github-releaser-bot and TyHolc authored Oct 30, 2023
1 parent 0716d3c commit 7b93f93
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 7b93f93

Please sign in to comment.