Mercurial > hg > graal-compiler
comparison src/share/tools/ProjectCreator/WinGammaPlatformVC10.java @ 12014:31f3b1e1c5e5
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
author | dcubed |
---|---|
date | Thu, 08 Aug 2013 09:21:30 -0700 |
parents | aabf54ccedb1 |
children | 3cce976666d9 b59507f713e0 09259e52a610 |
comparison
equal
deleted
inserted
replaced
12013:195ff07bc7f6 | 12014:31f3b1e1c5e5 |
---|---|
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 * | |
23 */ | |
24 | |
1 import java.io.File; | 25 import java.io.File; |
2 import java.io.FileNotFoundException; | 26 import java.io.FileNotFoundException; |
3 import java.io.IOException; | 27 import java.io.IOException; |
4 import java.io.PrintWriter; | 28 import java.io.PrintWriter; |
5 import java.io.UnsupportedEncodingException; | 29 import java.io.UnsupportedEncodingException; |
22 | 46 |
23 @Override | 47 @Override |
24 public void writeProjectFile(String projectFileName, String projectName, | 48 public void writeProjectFile(String projectFileName, String projectName, |
25 Vector<BuildConfig> allConfigs) throws IOException { | 49 Vector<BuildConfig> allConfigs) throws IOException { |
26 System.out.println(); | 50 System.out.println(); |
27 System.out.print(" Writing .vcxproj file: " + projectFileName); | 51 System.out.println(" Writing .vcxproj file: " + projectFileName); |
28 | 52 |
29 String projDir = Util.normalize(new File(projectFileName).getParent()); | 53 String projDir = Util.normalize(new File(projectFileName).getParent()); |
30 | 54 |
31 printWriter = new PrintWriter(projectFileName, "UTF-8"); | 55 printWriter = new PrintWriter(projectFileName, "UTF-8"); |
32 printWriter.println("<?xml version=\"1.0\" encoding=\"utf-8\"?>"); | 56 printWriter.println("<?xml version=\"1.0\" encoding=\"utf-8\"?>"); |
112 startTag("ImportGroup", "Label", "ExtensionTargets"); | 136 startTag("ImportGroup", "Label", "ExtensionTargets"); |
113 endTag(); | 137 endTag(); |
114 | 138 |
115 endTag(); | 139 endTag(); |
116 printWriter.close(); | 140 printWriter.close(); |
117 System.out.println(" Done."); | 141 System.out.println(" Done writing .vcxproj file."); |
118 | 142 |
119 writeFilterFile(projectFileName, projectName, allConfigs, projDir); | 143 writeFilterFile(projectFileName, projectName, allConfigs, projDir); |
120 writeUserFile(projectFileName, allConfigs); | 144 writeUserFile(projectFileName, allConfigs); |
121 } | 145 } |
122 | 146 |