hotspot/src/share/tools/MakeDeps/WinGammaPlatformVC7.java
author xdono
Tue, 28 Jul 2009 12:12:40 -0700
changeset 3261 c7d5aae8d3f7
parent 2271 ff6d122287cb
child 5547 f4b087cbb361
permissions -rw-r--r--
6862919: Update copyright year Summary: Update copyright for files that have been modified in 2009, up to 07/09 Reviewed-by: tbell, ohair
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
3261
c7d5aae8d3f7 6862919: Update copyright year
xdono
parents: 2271
diff changeset
     2
 * Copyright 2005-2009 Sun Microsystems, Inc.  All Rights Reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    19
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    20
 * CA 95054 USA or visit www.sun.com if you need additional information or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    21
 * have any questions.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
import java.io.*;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
import java.util.*;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
public class WinGammaPlatformVC7 extends WinGammaPlatform {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
    30
    String projectVersion() {return "7.10";};
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
    31
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
    public void writeProjectFile(String projectFileName, String projectName,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
                                 Vector allConfigs) throws IOException {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
        System.out.println();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
        System.out.println("    Writing .vcproj file...");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
        // If we got this far without an error, we're safe to actually
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
        // write the .vcproj file
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
        printWriter = new PrintWriter(new FileWriter(projectFileName));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
        printWriter.println("<?xml version=\"1.0\" encoding=\"windows-1251\"?>");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
        startTag(
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
            "VisualStudioProject",
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
            new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
                "ProjectType", "Visual C++",
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
    45
                "Version", projectVersion(),
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
                "Name", projectName,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
                "ProjectGUID", "{8822CB5C-1C41-41C2-8493-9F6E1994338B}",
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
                "SccProjectName", "",
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
                "SccLocalPath", ""
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
            }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
            );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
        startTag("Platforms", null);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
        tag("Platform", new String[] {"Name", Util.os});
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
        endTag("Platforms");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
        startTag("Configurations", null);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
        for (Iterator i = allConfigs.iterator(); i.hasNext(); ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
            writeConfiguration((BuildConfig)i.next());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
        endTag("Configurations");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
        tag("References", null);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
        writeFiles(allConfigs);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
        tag("Globals", null);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
        endTag("VisualStudioProject");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
        printWriter.close();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
        System.out.println("    Done.");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
    abstract class NameFilter {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
        protected String fname;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
        abstract boolean match(FileInfo fi);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
        String  filterString() { return ""; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
        String name() { return this.fname;}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
    class DirectoryFilter extends NameFilter {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
        String dir;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
        int baseLen, dirLen;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
        DirectoryFilter(String dir, String sbase) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
            this.dir = dir;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
            this.baseLen = sbase.length();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
            this.dirLen = dir.length();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
            this.fname = dir;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
        DirectoryFilter(String fname, String dir, String sbase) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
            this.dir = dir;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
            this.baseLen = sbase.length();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
            this.dirLen = dir.length();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
            this.fname = fname;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
        boolean match(FileInfo fi) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
            return fi.full.regionMatches(true, baseLen, dir, 0, dirLen);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
    class TypeFilter extends NameFilter {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
        String[] exts;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
        TypeFilter(String fname, String[] exts) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
            this.fname = fname;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
            this.exts = exts;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
        boolean match(FileInfo fi) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
            for (int i=0; i<exts.length; i++) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
                if (fi.full.endsWith(exts[i])) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
                    return true;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
                }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
            }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
            return false;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
        String  filterString() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
            return Util.join(";", exts);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
    class TerminatorFilter extends NameFilter {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
        TerminatorFilter(String fname) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
            this.fname = fname;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
        boolean match(FileInfo fi) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
            return true;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
    class SpecificNameFilter extends NameFilter {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
        String pats[];
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
        SpecificNameFilter(String fname, String[] pats) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
            this.fname = fname;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
            this.pats = pats;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
        boolean match(FileInfo fi) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
            for (int i=0; i<pats.length; i++) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
                if (fi.attr.shortName.matches(pats[i])) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
                    return true;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
                }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
            }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
            return false;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
    class ContainerFilter extends NameFilter {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
        Vector children;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
        ContainerFilter(String fname) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
            this.fname = fname;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
            children = new Vector();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
        boolean match(FileInfo fi) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
            return false;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
        Iterator babies() { return children.iterator(); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
        void add(NameFilter f) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
            children.add(f);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
    void writeCustomToolConfig(Vector configs, String[] customToolAttrs) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
        for (Iterator i = configs.iterator(); i.hasNext(); ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
            startTag("FileConfiguration",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
                     new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
                         "Name",  (String)i.next()
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
                     }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
                     );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
            tag("Tool", customToolAttrs);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
            endTag("FileConfiguration");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
    // here we define filters, which define layout of what can be seen in 'Solution View' of MSVC
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
    // Basically there are two types of entities - container filters and real filters
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
    //   - container filter just provides a container to group together real filters
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
    //   - real filter can select elements from the set according to some rule, put it into XML
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
    //     and remove from the list
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
    Vector makeFilters(TreeSet files) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
        Vector rv = new Vector();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
        String sbase = Util.normalize(BuildConfig.getFieldString(null, "SourceBase")+"/src/");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
        ContainerFilter rt = new ContainerFilter("Runtime");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
        rt.add(new DirectoryFilter("share/vm/prims", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
        rt.add(new DirectoryFilter("share/vm/runtime", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
        rt.add(new DirectoryFilter("share/vm/oops", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
        rv.add(rt);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
        ContainerFilter gc = new ContainerFilter("GC");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
        gc.add(new DirectoryFilter("share/vm/memory", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
        gc.add(new DirectoryFilter("share/vm/gc_interface", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
        ContainerFilter gc_impl = new ContainerFilter("Implementations");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
        gc_impl.add(new DirectoryFilter("CMS",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
                                        "share/vm/gc_implementation/concurrentMarkSweep",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
                                        sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
        gc_impl.add(new DirectoryFilter("Parallel Scavenge",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
                                        "share/vm/gc_implementation/parallelScavenge",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
                                        sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
        gc_impl.add(new DirectoryFilter("Shared",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
                                        "share/vm/gc_implementation/shared",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
                                        sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   225
        // for all leftovers
489c9b5090e2 Initial load
duke
parents:
diff changeset
   226
        gc_impl.add(new DirectoryFilter("Misc",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   227
                                        "share/vm/gc_implementation",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   228
                                        sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   229
489c9b5090e2 Initial load
duke
parents:
diff changeset
   230
        gc.add(gc_impl);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   231
        rv.add(gc);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   232
489c9b5090e2 Initial load
duke
parents:
diff changeset
   233
        rv.add(new DirectoryFilter("C1", "share/vm/c1", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   234
489c9b5090e2 Initial load
duke
parents:
diff changeset
   235
        ContainerFilter c2 = new ContainerFilter("C2");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   236
        //c2.add(new DirectoryFilter("share/vm/adlc", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   237
        c2.add(new DirectoryFilter("share/vm/opto", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   238
        c2.add(new SpecificNameFilter("Generated", new String[] {"^ad_.+", "^dfa_.+", "^adGlobals.+"}));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   239
        rv.add(c2);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   240
489c9b5090e2 Initial load
duke
parents:
diff changeset
   241
        ContainerFilter comp = new ContainerFilter("Compiler Common");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   242
        comp.add(new DirectoryFilter("share/vm/asm", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   243
        comp.add(new DirectoryFilter("share/vm/ci", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   244
        comp.add(new DirectoryFilter("share/vm/code", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   245
        comp.add(new DirectoryFilter("share/vm/compiler", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   246
        rv.add(comp);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   247
489c9b5090e2 Initial load
duke
parents:
diff changeset
   248
        rv.add(new DirectoryFilter("Interpreter",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   249
                                   "share/vm/interpreter",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   250
                                   sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   251
489c9b5090e2 Initial load
duke
parents:
diff changeset
   252
        ContainerFilter misc = new ContainerFilter("Misc");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   253
        //misc.add(new DirectoryFilter("share/vm/launch", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   254
        misc.add(new DirectoryFilter("share/vm/libadt", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   255
        misc.add(new DirectoryFilter("share/vm/services", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   256
        misc.add(new DirectoryFilter("share/vm/utilities", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   257
        rv.add(misc);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   258
489c9b5090e2 Initial load
duke
parents:
diff changeset
   259
        rv.add(new DirectoryFilter("os_cpu", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   260
489c9b5090e2 Initial load
duke
parents:
diff changeset
   261
        rv.add(new DirectoryFilter("cpu", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   262
489c9b5090e2 Initial load
duke
parents:
diff changeset
   263
        rv.add(new DirectoryFilter("os", sbase));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   264
489c9b5090e2 Initial load
duke
parents:
diff changeset
   265
        rv.add(new SpecificNameFilter("JVMTI Generated", new String[] {"^jvmti.+"}));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   266
489c9b5090e2 Initial load
duke
parents:
diff changeset
   267
        rv.add(new SpecificNameFilter("C++ Interpreter Generated", new String[] {"^bytecodeInterpreterWithChecks.+"}));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   268
489c9b5090e2 Initial load
duke
parents:
diff changeset
   269
        rv.add(new SpecificNameFilter("Include DBs", new String[] {"^includeDB_.+"}));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   270
489c9b5090e2 Initial load
duke
parents:
diff changeset
   271
        // this one is to catch files not caught by other filters
489c9b5090e2 Initial load
duke
parents:
diff changeset
   272
        //rv.add(new TypeFilter("Header Files", new String[] {"h", "hpp", "hxx", "hm", "inl", "fi", "fd"}));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   273
        rv.add(new TerminatorFilter("Source Files"));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   274
489c9b5090e2 Initial load
duke
parents:
diff changeset
   275
        return rv;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   276
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   277
489c9b5090e2 Initial load
duke
parents:
diff changeset
   278
    void writeFiles(Vector allConfigs) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   279
489c9b5090e2 Initial load
duke
parents:
diff changeset
   280
        Hashtable allFiles = computeAttributedFiles(allConfigs);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   281
489c9b5090e2 Initial load
duke
parents:
diff changeset
   282
        Vector allConfigNames = new Vector();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   283
        for (Iterator i = allConfigs.iterator(); i.hasNext(); ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   284
            allConfigNames.add(((BuildConfig)i.next()).get("Name"));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   285
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   286
489c9b5090e2 Initial load
duke
parents:
diff changeset
   287
        TreeSet sortedFiles = sortFiles(allFiles);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   288
489c9b5090e2 Initial load
duke
parents:
diff changeset
   289
        startTag("Files", null);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   290
489c9b5090e2 Initial load
duke
parents:
diff changeset
   291
        for (Iterator i = makeFilters(sortedFiles).iterator(); i.hasNext(); ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   292
            doWriteFiles(sortedFiles, allConfigNames, (NameFilter)i.next());
489c9b5090e2 Initial load
duke
parents:
diff changeset
   293
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   294
489c9b5090e2 Initial load
duke
parents:
diff changeset
   295
489c9b5090e2 Initial load
duke
parents:
diff changeset
   296
        startTag("Filter",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   297
                 new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   298
                     "Name", "Resource Files",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   299
                     "Filter", "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   300
                 }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   301
                 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   302
        endTag("Filter");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   303
489c9b5090e2 Initial load
duke
parents:
diff changeset
   304
        endTag("Files");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   305
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   306
489c9b5090e2 Initial load
duke
parents:
diff changeset
   307
    void doWriteFiles(TreeSet allFiles, Vector allConfigNames, NameFilter filter) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   308
        startTag("Filter",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   309
                 new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   310
                     "Name",   filter.name(),
489c9b5090e2 Initial load
duke
parents:
diff changeset
   311
                     "Filter", filter.filterString()
489c9b5090e2 Initial load
duke
parents:
diff changeset
   312
                 }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   313
                 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   314
489c9b5090e2 Initial load
duke
parents:
diff changeset
   315
        if (filter instanceof ContainerFilter) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   316
489c9b5090e2 Initial load
duke
parents:
diff changeset
   317
            Iterator i = ((ContainerFilter)filter).babies();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   318
            while (i.hasNext()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   319
                doWriteFiles(allFiles, allConfigNames, (NameFilter)i.next());
489c9b5090e2 Initial load
duke
parents:
diff changeset
   320
            }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   321
489c9b5090e2 Initial load
duke
parents:
diff changeset
   322
        } else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   323
489c9b5090e2 Initial load
duke
parents:
diff changeset
   324
            Iterator i = allFiles.iterator();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   325
            while (i.hasNext()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   326
                FileInfo fi = (FileInfo)i.next();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   327
489c9b5090e2 Initial load
duke
parents:
diff changeset
   328
                if (!filter.match(fi)) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   329
                    continue;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   330
                }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   331
489c9b5090e2 Initial load
duke
parents:
diff changeset
   332
                startTag("File",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   333
                         new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   334
                             "RelativePath", fi.full.replace('/', '\\')
489c9b5090e2 Initial load
duke
parents:
diff changeset
   335
                         }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   336
                         );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   337
489c9b5090e2 Initial load
duke
parents:
diff changeset
   338
                FileAttribute a = fi.attr;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   339
                if (a.pchRoot) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   340
                    writeCustomToolConfig(allConfigNames,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   341
                                          new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   342
                                              "Name", "VCCLCompilerTool",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   343
                                              "UsePrecompiledHeader", "1"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   344
                                          });
489c9b5090e2 Initial load
duke
parents:
diff changeset
   345
                }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   346
489c9b5090e2 Initial load
duke
parents:
diff changeset
   347
                if (a.noPch) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   348
                    writeCustomToolConfig(allConfigNames,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   349
                                          new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   350
                                              "Name", "VCCLCompilerTool",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   351
                                              "UsePrecompiledHeader", "0"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   352
                                          });
489c9b5090e2 Initial load
duke
parents:
diff changeset
   353
                }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   354
489c9b5090e2 Initial load
duke
parents:
diff changeset
   355
                if (a.configs != null) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   356
                    for (Iterator j=allConfigNames.iterator(); j.hasNext();) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   357
                        String cfg = (String)j.next();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   358
                        if (!a.configs.contains(cfg)) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   359
                            startTag("FileConfiguration",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   360
                                     new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   361
                                         "Name", cfg,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   362
                                         "ExcludedFromBuild", "TRUE"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   363
                                     });
489c9b5090e2 Initial load
duke
parents:
diff changeset
   364
                            tag("Tool", new String[] {"Name", "VCCLCompilerTool"});
489c9b5090e2 Initial load
duke
parents:
diff changeset
   365
                            endTag("FileConfiguration");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   366
489c9b5090e2 Initial load
duke
parents:
diff changeset
   367
                        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   368
                    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   369
                }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   370
489c9b5090e2 Initial load
duke
parents:
diff changeset
   371
                endTag("File");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   372
489c9b5090e2 Initial load
duke
parents:
diff changeset
   373
                // we not gonna look at this file anymore
489c9b5090e2 Initial load
duke
parents:
diff changeset
   374
                i.remove();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   375
            }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   376
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   377
489c9b5090e2 Initial load
duke
parents:
diff changeset
   378
        endTag("Filter");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   379
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   380
489c9b5090e2 Initial load
duke
parents:
diff changeset
   381
489c9b5090e2 Initial load
duke
parents:
diff changeset
   382
    void writeConfiguration(BuildConfig cfg) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   383
        startTag("Configuration",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   384
                 new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   385
                     "Name", cfg.get("Name"),
489c9b5090e2 Initial load
duke
parents:
diff changeset
   386
                     "OutputDirectory",  cfg.get("OutputDir"),
489c9b5090e2 Initial load
duke
parents:
diff changeset
   387
                     "IntermediateDirectory",  cfg.get("OutputDir"),
489c9b5090e2 Initial load
duke
parents:
diff changeset
   388
                     "ConfigurationType", "2",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   389
                     "UseOfMFC", "0",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   390
                     "ATLMinimizesCRunTimeLibraryUsage", "FALSE"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   391
                 }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   392
                 );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   393
489c9b5090e2 Initial load
duke
parents:
diff changeset
   394
489c9b5090e2 Initial load
duke
parents:
diff changeset
   395
489c9b5090e2 Initial load
duke
parents:
diff changeset
   396
        tagV("Tool", cfg.getV("CompilerFlags"));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   397
489c9b5090e2 Initial load
duke
parents:
diff changeset
   398
        tag("Tool",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   399
            new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   400
                "Name", "VCCustomBuildTool"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   401
            }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   402
            );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   403
489c9b5090e2 Initial load
duke
parents:
diff changeset
   404
        tagV("Tool", cfg.getV("LinkerFlags"));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   405
489c9b5090e2 Initial load
duke
parents:
diff changeset
   406
        tag("Tool",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   407
            new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   408
                "Name", "VCPostBuildEventTool"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   409
            }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   410
            );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   411
489c9b5090e2 Initial load
duke
parents:
diff changeset
   412
        tag("Tool",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   413
            new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   414
                "Name", "VCPreBuildEventTool"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   415
            }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   416
            );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   417
489c9b5090e2 Initial load
duke
parents:
diff changeset
   418
        tag("Tool",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   419
            new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   420
                "Name", "VCPreLinkEventTool",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   421
                "Description", BuildConfig.getFieldString(null, "PrelinkDescription"),
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   422
                //Caution: String.replace(String,String) is available from JDK5 onwards only
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   423
                "CommandLine", cfg.expandFormat(BuildConfig.getFieldString(null, "PrelinkCommand").replace
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   424
                   ("\t", "&#x0D;&#x0A;"))
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   425
            }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   426
            );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   427
489c9b5090e2 Initial load
duke
parents:
diff changeset
   428
        tag("Tool",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   429
            new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   430
                "Name", "VCResourceCompilerTool",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   431
                // XXX???
489c9b5090e2 Initial load
duke
parents:
diff changeset
   432
                "PreprocessorDefinitions", "NDEBUG",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   433
                "Culture", "1033"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   434
            }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   435
            );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   436
        tag("Tool",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   437
            new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   438
              "Name", "VCWebServiceProxyGeneratorTool"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   439
            }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   440
            );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   441
489c9b5090e2 Initial load
duke
parents:
diff changeset
   442
        tag ("Tool",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   443
             new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   444
              "Name", "VCXMLDataGeneratorTool"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   445
             }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   446
             );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   447
489c9b5090e2 Initial load
duke
parents:
diff changeset
   448
        tag("Tool",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   449
            new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   450
              "Name", "VCWebDeploymentTool"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   451
            }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   452
            );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   453
        tag("Tool",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   454
             new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   455
            "Name", "VCManagedWrapperGeneratorTool"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   456
             }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   457
            );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   458
        tag("Tool",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   459
            new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   460
              "Name", "VCAuxiliaryManagedWrapperGeneratorTool"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   461
            }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   462
            );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   463
489c9b5090e2 Initial load
duke
parents:
diff changeset
   464
        tag("Tool",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   465
            new String[] {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   466
                "Name", "VCMIDLTool",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   467
                "PreprocessorDefinitions", "NDEBUG",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   468
                "MkTypLibCompatible", "TRUE",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   469
                "SuppressStartupBanner", "TRUE",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   470
                "TargetEnvironment", "1",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   471
                "TypeLibraryName", cfg.get("OutputDir") + Util.sep + "vm.tlb",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   472
                "HeaderFileName", ""
489c9b5090e2 Initial load
duke
parents:
diff changeset
   473
            }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   474
            );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   475
489c9b5090e2 Initial load
duke
parents:
diff changeset
   476
        endTag("Configuration");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   477
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   478
489c9b5090e2 Initial load
duke
parents:
diff changeset
   479
    int indent;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   480
489c9b5090e2 Initial load
duke
parents:
diff changeset
   481
    private void startTagPrim(String name,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   482
                              String[] attrs,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   483
                              boolean close) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   484
        doIndent();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   485
        printWriter.print("<"+name);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   486
        indent++;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   487
489c9b5090e2 Initial load
duke
parents:
diff changeset
   488
        if (attrs != null) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   489
            printWriter.println();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   490
            for (int i=0; i<attrs.length; i+=2) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   491
                doIndent();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   492
                printWriter.println(" " + attrs[i]+"=\""+attrs[i+1]+"\"");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   493
            }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   494
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   495
489c9b5090e2 Initial load
duke
parents:
diff changeset
   496
        if (close) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   497
            indent--;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   498
            //doIndent();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   499
            printWriter.println("/>");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   500
        } else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   501
            //doIndent();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   502
            printWriter.println(">");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   503
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   504
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   505
489c9b5090e2 Initial load
duke
parents:
diff changeset
   506
    void startTag(String name, String[] attrs) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   507
        startTagPrim(name, attrs, false);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   508
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   509
489c9b5090e2 Initial load
duke
parents:
diff changeset
   510
    void startTagV(String name, Vector attrs) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   511
        String s[] = new String [attrs.size()];
489c9b5090e2 Initial load
duke
parents:
diff changeset
   512
         for (int i=0; i<attrs.size(); i++) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   513
             s[i] = (String)attrs.elementAt(i);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   514
         }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   515
        startTagPrim(name, s, false);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   516
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   517
489c9b5090e2 Initial load
duke
parents:
diff changeset
   518
    void endTag(String name) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   519
        indent--;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   520
        doIndent();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   521
        printWriter.println("</"+name+">");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   522
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   523
489c9b5090e2 Initial load
duke
parents:
diff changeset
   524
    void tag(String name, String[] attrs) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   525
        startTagPrim(name, attrs, true);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   526
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   527
489c9b5090e2 Initial load
duke
parents:
diff changeset
   528
     void tagV(String name, Vector attrs) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   529
         String s[] = new String [attrs.size()];
489c9b5090e2 Initial load
duke
parents:
diff changeset
   530
         for (int i=0; i<attrs.size(); i++) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   531
             s[i] = (String)attrs.elementAt(i);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   532
         }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   533
         startTagPrim(name, s, true);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   534
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   535
489c9b5090e2 Initial load
duke
parents:
diff changeset
   536
489c9b5090e2 Initial load
duke
parents:
diff changeset
   537
    void doIndent() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   538
        for (int i=0; i<indent; i++) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   539
            printWriter.print("    ");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   540
        }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   541
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   542
489c9b5090e2 Initial load
duke
parents:
diff changeset
   543
    protected String getProjectExt() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   544
        return ".vcproj";
489c9b5090e2 Initial load
duke
parents:
diff changeset
   545
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   546
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   547
489c9b5090e2 Initial load
duke
parents:
diff changeset
   548
class CompilerInterfaceVC7 extends CompilerInterface {
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   549
    void getBaseCompilerFlags_common(Vector defines, Vector includes, String outDir,Vector rv) {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   550
489c9b5090e2 Initial load
duke
parents:
diff changeset
   551
        // advanced M$ IDE (2003) can only recognize name if it's first or
489c9b5090e2 Initial load
duke
parents:
diff changeset
   552
        // second attribute in the tag - go guess
489c9b5090e2 Initial load
duke
parents:
diff changeset
   553
        addAttr(rv, "Name", "VCCLCompilerTool");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   554
        addAttr(rv, "AdditionalIncludeDirectories", Util.join(",", includes));
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   555
        addAttr(rv, "PreprocessorDefinitions",
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   556
                                Util.join(";", defines).replace("\"","&quot;"));
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   557
        addAttr(rv, "PrecompiledHeaderThrough",
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   558
                                "incls"+Util.sep+"_precompiled.incl");
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   559
        addAttr(rv, "PrecompiledHeaderFile", outDir+Util.sep+"vm.pch");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   560
        addAttr(rv, "AssemblerListingLocation", outDir);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   561
        addAttr(rv, "ObjectFile", outDir+Util.sep);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   562
        addAttr(rv, "ProgramDataBaseFileName", outDir+Util.sep+"vm.pdb");
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   563
        // Set /nologo optin
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   564
        addAttr(rv, "SuppressStartupBanner", "TRUE");
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   565
        // Surpass the default /Tc or /Tp. 0 is compileAsDefault
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   566
        addAttr(rv, "CompileAs", "0");
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   567
        // Set /W3 option. 3 is warningLevel_3
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   568
        addAttr(rv, "WarningLevel", "3");
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   569
        // Set /WX option,
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   570
        addAttr(rv, "WarnAsError", "TRUE");
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   571
        // Set /GS option
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   572
        addAttr(rv, "BufferSecurityCheck", "FALSE");
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   573
        // Set /Zi option. 3 is debugEnabled
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   574
        addAttr(rv, "DebugInformationFormat", "3");
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   575
    }
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   576
    Vector getBaseCompilerFlags(Vector defines, Vector includes, String outDir) {
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   577
        Vector rv = new Vector();
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   578
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   579
        getBaseCompilerFlags_common(defines,includes, outDir, rv);
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   580
        // Set /Yu option. 3 is pchUseUsingSpecific
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   581
        // Note: Starting VC8 pchUseUsingSpecific is 2 !!!
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   582
        addAttr(rv, "UsePrecompiledHeader", "3");
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   583
        // Set /EHsc- option
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   584
        addAttr(rv, "ExceptionHandling", "FALSE");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   585
489c9b5090e2 Initial load
duke
parents:
diff changeset
   586
        return rv;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   587
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   588
489c9b5090e2 Initial load
duke
parents:
diff changeset
   589
    Vector getBaseLinkerFlags(String outDir, String outDll) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   590
        Vector rv = new Vector();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   591
489c9b5090e2 Initial load
duke
parents:
diff changeset
   592
        addAttr(rv, "Name", "VCLinkerTool");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   593
        addAttr(rv, "AdditionalOptions",
489c9b5090e2 Initial load
duke
parents:
diff changeset
   594
                "/export:JNI_GetDefaultJavaVMInitArgs " +
489c9b5090e2 Initial load
duke
parents:
diff changeset
   595
                "/export:JNI_CreateJavaVM " +
489c9b5090e2 Initial load
duke
parents:
diff changeset
   596
                "/export:JNI_GetCreatedJavaVMs "+
489c9b5090e2 Initial load
duke
parents:
diff changeset
   597
                "/export:jio_snprintf /export:jio_printf "+
489c9b5090e2 Initial load
duke
parents:
diff changeset
   598
                "/export:jio_fprintf /export:jio_vfprintf "+
489c9b5090e2 Initial load
duke
parents:
diff changeset
   599
                "/export:jio_vsnprintf ");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   600
        addAttr(rv, "AdditionalDependencies", "Wsock32.lib winmm.lib");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   601
        addAttr(rv, "OutputFile", outDll);
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   602
        // Set /INCREMENTAL option. 1 is linkIncrementalNo
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   603
        addAttr(rv, "LinkIncremental", "1");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   604
        addAttr(rv, "SuppressStartupBanner", "TRUE");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   605
        addAttr(rv, "ModuleDefinitionFile", outDir+Util.sep+"vm.def");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   606
        addAttr(rv, "ProgramDatabaseFile", outDir+Util.sep+"vm.pdb");
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   607
        // Set /SUBSYSTEM option. 2 is subSystemWindows
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   608
        addAttr(rv, "SubSystem", "2");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   609
        addAttr(rv, "BaseAddress", "0x8000000");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   610
        addAttr(rv, "ImportLibrary", outDir+Util.sep+"jvm.lib");
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   611
        // Set /MACHINE option. 1 is machineX86
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   612
        addAttr(rv, "TargetMachine", "1");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   613
489c9b5090e2 Initial load
duke
parents:
diff changeset
   614
        return rv;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   615
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   616
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   617
    void  getDebugCompilerFlags_common(String opt,Vector rv) {
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   618
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   619
        // Set /On option
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   620
        addAttr(rv, "Optimization", opt);
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   621
        // Set /FR option. 1 is brAllInfo
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   622
        addAttr(rv, "BrowseInformation", "1");
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   623
        addAttr(rv, "BrowseInformationFile", "$(IntDir)" + Util.sep);
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   624
        // Set /MD option. 2 is rtMultiThreadedDLL
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   625
        addAttr(rv, "RuntimeLibrary", "2");
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   626
        // Set /Oy- option
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   627
        addAttr(rv, "OmitFramePointers", "FALSE");
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   628
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   629
    }
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   630
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   631
    Vector getDebugCompilerFlags(String opt) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   632
        Vector rv = new Vector();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   633
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   634
        getDebugCompilerFlags_common(opt,rv);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   635
489c9b5090e2 Initial load
duke
parents:
diff changeset
   636
        return rv;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   637
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   638
489c9b5090e2 Initial load
duke
parents:
diff changeset
   639
    Vector getDebugLinkerFlags() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   640
        Vector rv = new Vector();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   641
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   642
        addAttr(rv, "GenerateDebugInformation", "TRUE"); // == /DEBUG option
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   643
489c9b5090e2 Initial load
duke
parents:
diff changeset
   644
        return rv;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   645
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   646
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   647
    void getProductCompilerFlags_common(Vector rv) {
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   648
        // Set /O2 option. 2 is optimizeMaxSpeed
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   649
        addAttr(rv, "Optimization", "2");
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   650
        // Set /Oy- option
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   651
        addAttr(rv, "OmitFramePointers", "FALSE");
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   652
    }
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   653
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   654
    Vector getProductCompilerFlags() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   655
        Vector rv = new Vector();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   656
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   657
        getProductCompilerFlags_common(rv);
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   658
        // Set /Ob option.  1 is expandOnlyInline
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   659
        addAttr(rv, "InlineFunctionExpansion", "1");
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   660
        // Set /GF option.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   661
        addAttr(rv, "StringPooling", "TRUE");
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   662
        // Set /MD option. 2 is rtMultiThreadedDLL
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   663
        addAttr(rv, "RuntimeLibrary", "2");
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   664
        // Set /Gy option
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   665
        addAttr(rv, "EnableFunctionLevelLinking", "TRUE");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   666
489c9b5090e2 Initial load
duke
parents:
diff changeset
   667
        return rv;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   668
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   669
489c9b5090e2 Initial load
duke
parents:
diff changeset
   670
    Vector getProductLinkerFlags() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   671
        Vector rv = new Vector();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   672
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   673
        // Set /OPT:REF option. 2 is optReferences
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   674
        addAttr(rv, "OptimizeReferences", "2");
2271
ff6d122287cb 6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents: 1
diff changeset
   675
        // Set /OPT:optFolding option. 2 is optFolding
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   676
        addAttr(rv, "EnableCOMDATFolding", "2");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   677
489c9b5090e2 Initial load
duke
parents:
diff changeset
   678
        return rv;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   679
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   680
489c9b5090e2 Initial load
duke
parents:
diff changeset
   681
    String getOptFlag() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   682
        return "2";
489c9b5090e2 Initial load
duke
parents:
diff changeset
   683
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   684
489c9b5090e2 Initial load
duke
parents:
diff changeset
   685
    String getNoOptFlag() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   686
        return "0";
489c9b5090e2 Initial load
duke
parents:
diff changeset
   687
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   688
489c9b5090e2 Initial load
duke
parents:
diff changeset
   689
    String makeCfgName(String flavourBuild) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   690
        return  flavourBuild + "|" + Util.os;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   691
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   692
}