Skip to content

Set Windows SDK Target Version in build scripts#508

Closed
CedricGuillemet wants to merge 2 commits intoBabylonJS:masterfrom
CedricGuillemet:WindowsSDKVersion
Closed

Set Windows SDK Target Version in build scripts#508
CedricGuillemet wants to merge 2 commits intoBabylonJS:masterfrom
CedricGuillemet:WindowsSDKVersion

Conversation

@CedricGuillemet
Copy link
Contributor

Build Script var to set Windows SDK version

@CedricGuillemet CedricGuillemet changed the title Set Windows SDK Version in build scripts Set Windows SDK Target Version in build scripts Dec 5, 2022
Comment on lines +128 to +136
let WindowsSDKVersionCMakeString = "";
const [WindowsSDKVersionFlag] = process.argv.slice(3);
if (WindowsSDKVersionFlag === '-WindowsSDKVersion') {
const [WindowsSDKVersionValue] = process.argv.slice(4);
if (WindowsSDKVersionValue)
{
WindowsSDKVersionCMakeString = `-DCMAKE_SYSTEM_VERSION=${WindowsSDKVersionValue}`;
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make more sense to put this logic in tools.js (which I just noticed we have duplicated between RN versions 😬) and invoked via an npm script in package.json? This would be more like what we do for iOS, which makes it really easy to do locally in an isolated way.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure. tools.js is used to build the PG. and gulp.js is used to build packages. moreover, you can test this change locally with npx gulp buildUWPPublish -WindowsSDKVersion 10.0....

@CedricGuillemet
Copy link
Contributor Author

fixed with #665

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants