src/share/tools/ProjectCreator/WinGammaPlatformVC10.java

Print this page
rev 2630 : 7082220: Visual Studio projects broken after change 7016797: Hotspot: securely/restrictive load dlls and new
Summary: Add the psapi.lib library to Visual Studio projects
Reviewed-by:


 465 
 466         return rv;
 467     }
 468 
 469     @Override
 470     Vector getBaseLinkerFlags(String outDir, String outDll, String platformName) {
 471         Vector rv = new Vector();
 472 
 473         addAttr(rv, "AdditionalOptions",
 474                 "/export:JNI_GetDefaultJavaVMInitArgs " +
 475                 "/export:JNI_CreateJavaVM " +
 476                 "/export:JVM_FindClassFromBootLoader "+
 477                 "/export:JNI_GetCreatedJavaVMs "+
 478                 "/export:jio_snprintf /export:jio_printf "+
 479                 "/export:jio_fprintf /export:jio_vfprintf "+
 480                 "/export:jio_vsnprintf "+
 481                 "/export:JVM_GetVersionInfo "+
 482                 "/export:JVM_GetThreadStateNames "+
 483                 "/export:JVM_GetThreadStateValues "+
 484                 "/export:JVM_InitAgentProperties");
 485         addAttr(rv, "AdditionalDependencies", "kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;Wsock32.lib;winmm.lib");
 486         addAttr(rv, "OutputFile", outDll);
 487         addAttr(rv, "SuppressStartupBanner", "true");
 488         addAttr(rv, "ModuleDefinitionFile", outDir+Util.sep+"vm.def");
 489         addAttr(rv, "ProgramDatabaseFile", outDir+Util.sep+"jvm.pdb");
 490         addAttr(rv, "SubSystem", "Windows");
 491         addAttr(rv, "BaseAddress", "0x8000000");
 492         addAttr(rv, "ImportLibrary", outDir+Util.sep+"jvm.lib");
 493 
 494         if(platformName.equals("Win32")) {
 495             addAttr(rv, "TargetMachine", "MachineX86");
 496         } else {
 497             addAttr(rv, "TargetMachine", "MachineX64");
 498         }
 499 
 500         // We always want the /DEBUG option to get full symbol information in the pdb files
 501         addAttr(rv, "GenerateDebugInformation", "true");
 502 
 503         return rv;
 504     }
 505 




 465 
 466         return rv;
 467     }
 468 
 469     @Override
 470     Vector getBaseLinkerFlags(String outDir, String outDll, String platformName) {
 471         Vector rv = new Vector();
 472 
 473         addAttr(rv, "AdditionalOptions",
 474                 "/export:JNI_GetDefaultJavaVMInitArgs " +
 475                 "/export:JNI_CreateJavaVM " +
 476                 "/export:JVM_FindClassFromBootLoader "+
 477                 "/export:JNI_GetCreatedJavaVMs "+
 478                 "/export:jio_snprintf /export:jio_printf "+
 479                 "/export:jio_fprintf /export:jio_vfprintf "+
 480                 "/export:jio_vsnprintf "+
 481                 "/export:JVM_GetVersionInfo "+
 482                 "/export:JVM_GetThreadStateNames "+
 483                 "/export:JVM_GetThreadStateValues "+
 484                 "/export:JVM_InitAgentProperties");
 485         addAttr(rv, "AdditionalDependencies", "kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;Wsock32.lib;winmm.lib;psapi.lib");
 486         addAttr(rv, "OutputFile", outDll);
 487         addAttr(rv, "SuppressStartupBanner", "true");
 488         addAttr(rv, "ModuleDefinitionFile", outDir+Util.sep+"vm.def");
 489         addAttr(rv, "ProgramDatabaseFile", outDir+Util.sep+"jvm.pdb");
 490         addAttr(rv, "SubSystem", "Windows");
 491         addAttr(rv, "BaseAddress", "0x8000000");
 492         addAttr(rv, "ImportLibrary", outDir+Util.sep+"jvm.lib");
 493 
 494         if(platformName.equals("Win32")) {
 495             addAttr(rv, "TargetMachine", "MachineX86");
 496         } else {
 497             addAttr(rv, "TargetMachine", "MachineX64");
 498         }
 499 
 500         // We always want the /DEBUG option to get full symbol information in the pdb files
 501         addAttr(rv, "GenerateDebugInformation", "true");
 502 
 503         return rv;
 504     }
 505