src/share/tools/ProjectCreator/WinGammaPlatformVC8.java

Thu, 08 Aug 2013 09:21:30 -0700

author
dcubed
date
Thu, 08 Aug 2013 09:21:30 -0700
changeset 5500
31f3b1e1c5e5
parent 2369
aa6e219afbf1
child 6876
710a3c8b516e
permissions
-rw-r--r--

8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
Summary: ProjectCreator tool is modified to support two new options: '-relativeAltSrcInclude' and '-altRelativeInclude' which prevents IDE linker errors. Also fixed some cmd line build linker warnings. Misc cleanups.
Reviewed-by: rdurbin, coleenp

ikrylov@1094 1 /*
stefank@2314 2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
ikrylov@1094 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ikrylov@1094 4 *
ikrylov@1094 5 * This code is free software; you can redistribute it and/or modify it
ikrylov@1094 6 * under the terms of the GNU General Public License version 2 only, as
ikrylov@1094 7 * published by the Free Software Foundation.
ikrylov@1094 8 *
ikrylov@1094 9 * This code is distributed in the hope that it will be useful, but WITHOUT
ikrylov@1094 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ikrylov@1094 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ikrylov@1094 12 * version 2 for more details (a copy is included in the LICENSE file that
ikrylov@1094 13 * accompanied this code).
ikrylov@1094 14 *
ikrylov@1094 15 * You should have received a copy of the GNU General Public License version
ikrylov@1094 16 * 2 along with this work; if not, write to the Free Software Foundation,
ikrylov@1094 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ikrylov@1094 18 *
trims@1907 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1907 20 * or visit www.oracle.com if you need additional information or have any
trims@1907 21 * questions.
ikrylov@1094 22 *
ikrylov@1094 23 */
ikrylov@1094 24
sla@2369 25 import java.util.Vector;
ikrylov@1094 26
ikrylov@1094 27 public class WinGammaPlatformVC8 extends WinGammaPlatformVC7 {
ikrylov@1094 28
ikrylov@1094 29 String projectVersion() {return "8.00";};
ikrylov@1094 30
ikrylov@1094 31 }
ikrylov@1094 32
ikrylov@1094 33 class CompilerInterfaceVC8 extends CompilerInterfaceVC7 {
ikrylov@1094 34
ikrylov@1094 35 Vector getBaseCompilerFlags(Vector defines, Vector includes, String outDir) {
ikrylov@1094 36 Vector rv = new Vector();
ikrylov@1094 37
ikrylov@1094 38 getBaseCompilerFlags_common(defines,includes, outDir, rv);
ikrylov@1094 39 // Set /Yu option. 2 is pchUseUsingSpecific
ikrylov@1094 40 addAttr(rv, "UsePrecompiledHeader", "2");
ikrylov@1094 41 // Set /EHsc- option. 0 is cppExceptionHandlingNo
ikrylov@1094 42 addAttr(rv, "ExceptionHandling", "0");
ikrylov@1094 43
sla@2369 44 // enable multi process builds
sla@2369 45 extAttr(rv, "AdditionalOptions", "/MP");
sla@2369 46
ikrylov@1094 47 return rv;
ikrylov@1094 48 }
ikrylov@1094 49
ikrylov@1094 50
ikrylov@1094 51 Vector getDebugCompilerFlags(String opt) {
ikrylov@1094 52 Vector rv = new Vector();
ikrylov@1094 53
ikrylov@1094 54 getDebugCompilerFlags_common(opt,rv);
ikrylov@1094 55
ikrylov@1094 56 return rv;
ikrylov@1094 57 }
ikrylov@1094 58
ikrylov@1094 59 Vector getProductCompilerFlags() {
ikrylov@1094 60 Vector rv = new Vector();
ikrylov@1094 61
ikrylov@1094 62 getProductCompilerFlags_common(rv);
ikrylov@1094 63
ikrylov@1094 64 return rv;
ikrylov@1094 65 }
ikrylov@1094 66
ikrylov@1094 67
ikrylov@1094 68 }

mercurial