/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
// TODO How about moving all globals configs to its own BuildConfig?
return "7.10";
};
// If we got this far without an error, we're safe to actually
// write the .vcproj file
.println("<?xml version=\"1.0\" encoding=\"windows-1251\"?>");
"ProjectGUID", "{8822CB5C-1C41-41C2-8493-9F6E1994338B}",
"SccProjectName", "", "SccLocalPath", "" });
startTag("Platforms");
tag("Platform",
new String[] { "Name",
endTag();
startTag("Configurations");
}
endTag();
tag("References");
tag("Globals");
endTag();
printWriter.close();
}
startTag("FileConfiguration",
endTag();
}
}
// This code assummes there are no config specific includes.
startTag("Files");
// Use first config for all global absolute includes.
// Then use first config for all relative includes
}
"ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe" });
endTag();
endTag();
}
// Will visit file tree for each include
FileTreeCreatorVC7 ftc = new FileTreeCreatorVC7(FileSystems.getDefault().getPath(path) , allConfigs, this);
try {
ftc.writeFileTree();
} catch (IOException e) {
e.printStackTrace();
}
}
}
"ConfigurationType", "2", "UseOfMFC", "0",
"ATLMinimizesCRunTimeLibraryUsage", "FALSE" });
tag("Tool",
new String[] {
"Name",
"VCPostBuildEventTool",
"Description",
// Caution: String.replace(String,String) is available
// from JDK5 onwards only
"CommandLine",
"
")) });
tag("Tool",
new String[] {
"Name",
"VCPreLinkEventTool",
"Description",
// Caution: String.replace(String,String) is available
// from JDK5 onwards only
"CommandLine",
"PreprocessorDefinitions", "NDEBUG", "Culture", "1033" });
"PreprocessorDefinitions", "NDEBUG", "MkTypLibCompatible",
"TRUE", "SuppressStartupBanner", "TRUE", "TargetEnvironment",
"1", "TypeLibraryName",
"" });
endTag();
}
return ".vcproj";
}
}
// advanced M$ IDE (2003) can only recognize name if it's first or
// second attribute in the tag - go guess
// Set /nologo optin
// Surpass the default /Tc or /Tp. 0 is compileAsDefault
// Set /W3 option. 3 is warningLevel_3
// Set /WX option,
// Set /GS option
// Set /Zi option. 3 is debugEnabled
}
// Set /Yu option. 3 is pchUseUsingSpecific
// Note: Starting VC8 pchUseUsingSpecific is 2 !!!
// Set /EHsc- option
return rv;
}
"/export:JNI_GetDefaultJavaVMInitArgs "
+ "/export:JNI_CreateJavaVM "
+ "/export:JVM_FindClassFromBootLoader "
+ "/export:JNI_GetCreatedJavaVMs "
+ "/export:jio_snprintf /export:jio_printf "
+ "/export:jio_fprintf /export:jio_vfprintf "
+ "/export:jio_vsnprintf "
+ "/export:JVM_GetVersionInfo "
+ "/export:JVM_GetThreadStateNames "
+ "/export:JVM_GetThreadStateValues "
+ "/export:JVM_InitAgentProperties ");
// Set /INCREMENTAL option. 1 is linkIncrementalNo
// Set /SUBSYSTEM option. 2 is subSystemWindows
// Set /MACHINE option. 1 is X86
} else {
// Set /MACHINE option. 17 is X64
}
return rv;
}
// Set /On option
// Set /FR option. 1 is brAllInfo
// Set /MD option. 2 is rtMultiThreadedDLL
// Set /Oy- option
}
return rv;
}
return rv;
}
}
// Set /O2 option. 2 is optimizeMaxSpeed
// Set /Oy- option
// Set /Ob option. 1 is expandOnlyInline
// Set /GF option.
// Set /MD option. 2 is rtMultiThreadedDLL
// Set /Gy option
}
return rv;
}
// Set /OPT:REF option. 2 is optReferences
// Set /OPT:optFolding option. 2 is optFolding
return rv;
}
return "2";
}
return "0";
}
}
}