Re: NSS and MSVS 2022

Burak Arslan <[email protected]> Tue, 4 Jan 2022 16:56:41 +0300
Newsgroups gmane.comp.mozilla.crypto
Message-ID <[email protected]>
Hello Benjamin,

If you have ~100gb to burn, the ms dev env is quite accessible (in ms 
standards) nowadays: 
https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/

I've seen gyp-next but it was quite easy to get the vanilla version to 
work so didn't really look into it.

If I were you, I'd just pay some consultant to migrate to CMake and be 
done with it. Maybe it could be done in a semi-automated fashion using 
the following route:

https://fuchsia.googlesource.com/build/+/b7c5b2083caa19eddb516f33b9ff13ffe260d5be/gypi_to_gn.py

https://github.com/google/skia/blob/main/gn/gn_to_cmake.py

After all, it only needs to work once.

Best regards,
Burak

On 1/4/22 16:32, Benjamin Beurdouche wrote:
> Hi Burak,
>
> Thanks for looking into this! If I am correct there is a gyp fork
> maintained by Node.js and called gyp-next.
>
> We have been contemplating moving NSS to use gyp-next but haven’t got
> to try yet. Any chance you could have a look and see if building NSS
> with gyp-next using MSVC 17 would work? (I don’t have that version of MSVC yet.)
>
> Best,
> Benjamin
>
>> On 4 Jan 2022, at 14:23, Burak Arslan<[email protected]>  wrote:
>>
>> Hello,
>>
>> It's not possible to build NSS with GYP using MSVC 17 (Visual Studio
>> 2022) because the required definitions are missing from MSVSVersion.py.
>>
>> I forked and patched GYP so now it seems to work.
>>
>> Fork is here:https://github.com/plq/gyp/
>>
>> I added some patches from other forks that looked nice but actually only
>> this[1] patch is required, the rest is optional.
>>
>> This is part of the work that tries to add NSS and NSPR ports to vcpkg:
>> https://github.com/microsoft/vcpkg/pull/21281
>>
>> Best regards
>> Burak
>>
>> [1]:
>> https://github.com/plq/gyp/commit/b3177c3f6c2c45a8ca098ae0f0ebb4536c624762
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups"[email protected]"  group.
>> To unsubscribe from this group and stop receiving emails from it, send an email [email protected].
>> To view this discussion on the web visithttps://groups.google.com/a/mozilla.org/d/msgid/dev-tech-crypto/2c4adc73-3c47-145c-e4c9-a3ad33df1af1%40burakarslan.com.

-- 
You received this message because you are subscribed to the Google Groups "[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/mozilla.org/d/msgid/dev-tech-crypto/7a5b302a-d22f-6528-28e3-b2771bd1bcae%40arskom.com.tr.