1 /*
2 * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
393 addAttr(rv, "RuntimeLibrary", "MultiThreadedDLL");
394 // Set /Gy option
395 addAttr(rv, "FunctionLevelLinking", "true");
396
397 return rv;
398 }
399
400 @Override
401 Vector getBaseLinkerFlags(String outDir, String outDll, String platformName) {
402 Vector rv = new Vector();
403
404 addAttr(rv, "AdditionalOptions",
405 "/export:JNI_GetDefaultJavaVMInitArgs " +
406 "/export:JNI_CreateJavaVM " +
407 "/export:JVM_FindClassFromBootLoader "+
408 "/export:JNI_GetCreatedJavaVMs "+
409 "/export:jio_snprintf /export:jio_printf "+
410 "/export:jio_fprintf /export:jio_vfprintf "+
411 "/export:jio_vsnprintf "+
412 "/export:JVM_GetVersionInfo "+
413 "/export:JVM_GetThreadStateNames "+
414 "/export:JVM_GetThreadStateValues "+
415 "/export:JVM_InitAgentProperties");
416 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");
417 addAttr(rv, "OutputFile", outDll);
418 addAttr(rv, "SuppressStartupBanner", "true");
419 addAttr(rv, "ModuleDefinitionFile", outDir+Util.sep+"vm.def");
420 addAttr(rv, "ProgramDatabaseFile", outDir+Util.sep+"jvm.pdb");
421 addAttr(rv, "SubSystem", "Windows");
422 addAttr(rv, "BaseAddress", "0x8000000");
423 addAttr(rv, "ImportLibrary", outDir+Util.sep+"jvm.lib");
424
425 if(platformName.equals("Win32")) {
426 addAttr(rv, "TargetMachine", "MachineX86");
427 } else {
428 addAttr(rv, "TargetMachine", "MachineX64");
429 }
430
431 // We always want the /DEBUG option to get full symbol information in the pdb files
432 addAttr(rv, "GenerateDebugInformation", "true");
433
434 return rv;
|
1 /*
2 * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
393 addAttr(rv, "RuntimeLibrary", "MultiThreadedDLL");
394 // Set /Gy option
395 addAttr(rv, "FunctionLevelLinking", "true");
396
397 return rv;
398 }
399
400 @Override
401 Vector getBaseLinkerFlags(String outDir, String outDll, String platformName) {
402 Vector rv = new Vector();
403
404 addAttr(rv, "AdditionalOptions",
405 "/export:JNI_GetDefaultJavaVMInitArgs " +
406 "/export:JNI_CreateJavaVM " +
407 "/export:JVM_FindClassFromBootLoader "+
408 "/export:JNI_GetCreatedJavaVMs "+
409 "/export:jio_snprintf /export:jio_printf "+
410 "/export:jio_fprintf /export:jio_vfprintf "+
411 "/export:jio_vsnprintf "+
412 "/export:JVM_GetVersionInfo "+
413 "/export:JVM_InitAgentProperties");
414 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");
415 addAttr(rv, "OutputFile", outDll);
416 addAttr(rv, "SuppressStartupBanner", "true");
417 addAttr(rv, "ModuleDefinitionFile", outDir+Util.sep+"vm.def");
418 addAttr(rv, "ProgramDatabaseFile", outDir+Util.sep+"jvm.pdb");
419 addAttr(rv, "SubSystem", "Windows");
420 addAttr(rv, "BaseAddress", "0x8000000");
421 addAttr(rv, "ImportLibrary", outDir+Util.sep+"jvm.lib");
422
423 if(platformName.equals("Win32")) {
424 addAttr(rv, "TargetMachine", "MachineX86");
425 } else {
426 addAttr(rv, "TargetMachine", "MachineX64");
427 }
428
429 // We always want the /DEBUG option to get full symbol information in the pdb files
430 addAttr(rv, "GenerateDebugInformation", "true");
431
432 return rv;
|