makepanda suggestions

Some changes I did on makepanda that the mantainer could find useful.

This is to detect other platform SDK’s apart from 6.1. In makepandacore.py:870, replace:

    if (platsdk == 0):
        platsdk=GetRegistryKey("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v6.1","InstallationFolder")

with:

    if (platsdk == 0):
		platsdk=GetRegistryKey("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v7.0","InstallationFolder")
    if (platsdk == 0):
		platsdk=GetRegistryKey("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v6.1","InstallationFolder")
    if (platsdk == 0):
		platsdk=GetRegistryKey("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v6.0A","InstallationFolder")
    if (platsdk == 0):
		platsdk=GetRegistryKey("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v6.0","InstallationFolder")

Also, you should hide the warning 4275, at least in VS2008 it’s triggered everywhere and it’s a major pain:

makepanda.py:464

cmd = "cl /wd4996 /wd4275 /Fo" + obj + " /nologo /c "

Thanks for your suggestions. The warning message fix was already there in the CVS version of makepanda. As for the PlatformSDK detection - there’s a reason why we’re only allowing one version of the PSDK, I think it’s because the 2003R2 sdk is the only one that contains some header files that are required for webcam support.