src/windows/resource/version.rc

changeset 0
7ef37b2cdcad
child 748
6845b95cba6b
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/windows/resource/version.rc	Wed Apr 27 01:21:28 2016 +0800
     1.3 @@ -0,0 +1,73 @@
     1.4 +//
     1.5 +// Copyright (c) 2004, 2009, Oracle and/or its affiliates. All rights reserved.
     1.6 +// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.7 +//
     1.8 +// This code is free software; you can redistribute it and/or modify it
     1.9 +// under the terms of the GNU General Public License version 2 only, as
    1.10 +// published by the Free Software Foundation.  Oracle designates this
    1.11 +// particular file as subject to the "Classpath" exception as provided
    1.12 +// by Oracle in the LICENSE file that accompanied this code.
    1.13 +//
    1.14 +// This code is distributed in the hope that it will be useful, but WITHOUT
    1.15 +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.16 +// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.17 +// version 2 for more details (a copy is included in the LICENSE file that
    1.18 +// accompanied this code).
    1.19 +//
    1.20 +// You should have received a copy of the GNU General Public License version
    1.21 +// 2 along with this work; if not, write to the Free Software Foundation,
    1.22 +// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.23 +//
    1.24 +// Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    1.25 +// or visit www.oracle.com if you need additional information or have any
    1.26 +// questions.
    1.27 +//
    1.28 +
    1.29 +#include "windows.h"
    1.30 +
    1.31 +// Need 2 defines so macro argument to XSTR will get expanded before quoting.
    1.32 +#define XSTR(x) STR(x)
    1.33 +#define STR(x)  #x
    1.34 +
    1.35 +LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
    1.36 +
    1.37 +/////////////////////////////////////////////////////////////////////////////
    1.38 +//
    1.39 +// Version
    1.40 +//
    1.41 +
    1.42 +VS_VERSION_INFO VERSIONINFO
    1.43 + FILEVERSION    JDK_FVER
    1.44 + PRODUCTVERSION JDK_FVER
    1.45 + FILEFLAGSMASK 0x3fL
    1.46 +#ifdef _DEBUG
    1.47 + FILEFLAGS 0x1L
    1.48 +#else
    1.49 + FILEFLAGS 0x0L
    1.50 +#endif
    1.51 + // FILEOS 0x4 is Win32, 0x40004 is Win32 NT only
    1.52 + FILEOS 0x4L
    1.53 + // FILETYPE should be 0x1 for .exe and 0x2 for .dll
    1.54 + FILETYPE JDK_FTYPE
    1.55 + FILESUBTYPE 0x0L
    1.56 +BEGIN
    1.57 +    BLOCK "StringFileInfo"
    1.58 +    BEGIN
    1.59 +        BLOCK "000004b0"
    1.60 +        BEGIN
    1.61 +            VALUE "CompanyName",      XSTR(JDK_COMPANY)       "\0"
    1.62 +            VALUE "FileDescription",  XSTR(JDK_COMPONENT)     "\0"
    1.63 +            VALUE "FileVersion",      XSTR(JDK_VER)           "\0"
    1.64 +            VALUE "Full Version",     XSTR(JDK_BUILD_ID)      "\0"
    1.65 +	    VALUE "InternalName",     XSTR(JDK_INTERNAL_NAME) "\0"
    1.66 +            VALUE "LegalCopyright",   XSTR(JDK_COPYRIGHT)     "\0"
    1.67 +            VALUE "OriginalFilename", XSTR(JDK_FNAME)         "\0"
    1.68 +            VALUE "ProductName",      XSTR(JDK_NAME)          "\0"
    1.69 +            VALUE "ProductVersion",   XSTR(JDK_VER)           "\0"
    1.70 +        END
    1.71 +    END
    1.72 +    BLOCK "VarFileInfo"
    1.73 +    BEGIN
    1.74 +        VALUE "Translation", 0x0, 1200
    1.75 +    END
    1.76 +END

mercurial