1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24#if !defined(ENGLISH) 25#define LG_D // generate always german version 26#endif 27 28#define VER_FIRSTYEAR 2010 29 30 31#if defined(OS2) 32 33#define OS2_VERSION "hello world" 34 35#else 36 37#include <windows.h> 38#include "version.hrc" 39 40// ----------------------------------------------------------------------- 41// version information 42// ----------------------------------------------------------------------- 43 44VS_VERSION_INFO versioninfo 45#ifndef SUBVERSION 46 fileversion VERSION, 0, VERVARIANT, VER_COUNT 47 productversion VERSION, 0, VERVARIANT, VER_COUNT 48#else 49 fileversion VERSION, SUBVERSION, VERVARIANT, VER_COUNT 50 productversion VERSION, SUBVERSION, VERVARIANT, VER_COUNT 51#endif 52 fileflagsmask 0x3F 53 fileflags 54#if defined(DEBUG) 55 VS_FF_DEBUG | 56#endif 57#ifdef VER_PREL 58 VS_FF_PRERELEASE | 59#endif 60 0 61#ifndef WIN32 62 fileos VOS_DOS_WINDOWS16 63#else 64 fileos VOS_NT_WINDOWS32 65#endif 66 filetype VFT_APP 67 { 68 block "StringFileInfo" 69 { 70#ifdef LG_D 71 block "040704E4" 72 { 73 // German StringTable 74 value "CompanyName", "OpenOffice.org\0" 75 value "FileVersion", PPS(VER_LEVEL) "\0" 76 value "OriginalFilename", PPS(ORG_NAME) "\0" 77 value "InternalName", PPS(INTERNAL_NAME) "\0" 78 value "LegalCopyright", S_CRIGHT " Oracle, Inc.\0" 79 ADDITIONAL_VERINFO1 80 ADDITIONAL_VERINFO2 81 ADDITIONAL_VERINFO3 82 } 83#else 84 block "040904E4" 85 { 86 // International StringTable 87 value "CompanyName", "OpenOffice.org\0" 88 value "FileVersion", PPS(VER_LEVEL) "\0" 89 value "OriginalFilename", PPS(ORG_NAME) "\0" 90 value "InternalName", PPS(INTERNAL_NAME) "\0" 91 value "LegalCopyright", S_CRIGHT " Oracle, Inc.\0" 92 ADDITIONAL_VERINFO1 93 ADDITIONAL_VERINFO2 94 ADDITIONAL_VERINFO3 95 } 96#endif 97 } 98 99 block "VarFileInfo" 100 { 101#ifdef LG_D 102 value "Translation", 0x0407, 1252 103#else 104 value "Translation", 0x0409, 1252 105#endif 106 } 107 } 108 109#endif // OS2 110