1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
|
/*
* custom.cxx
*
* PWLib application source file for OPAL Gateway
*
* Customisable application configurationfor OEMs.
*
* Copyright (c) 2003 Equivalence Pty. Ltd.
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is Portable Windows Library.
*
* The Initial Developer of the Original Code is Equivalence Pty. Ltd.
*
* Contributor(s): ______________________________________.
*
* $Log: custom.cxx,v $
* Revision 1.1 2003/03/26 02:49:00 robertj
* Added service/daemon sample application.
*
*/
#ifdef RC_INVOKED
#include <winver.h>
#else
#include <ptlib.h>
#include "custom.h"
#endif
#include "version.h"
////////////////////////////////////////////////////
//
// Variables required for PHTTPServiceProcess
//
////////////////////////////////////////////////////
#ifndef PRODUCT_NAME_TEXT
#define PRODUCT_NAME_TEXT "OPAL Gateway"
#endif
#ifndef EXE_NAME_TEXT
#define EXE_NAME_TEXT "opalgw"
#endif
#ifndef MANUFACTURER_TEXT
#define MANUFACTURER_TEXT "Equivalence"
#endif
#ifndef COPYRIGHT_HOLDER
#define COPYRIGHT_HOLDER "Equivalence Pty. Ltd."
#endif
#ifndef GIF_NAME
#define GIF_NAME EXE_NAME_TEXT ".gif"
#define GIF_WIDTH 300
#define GIF_HEIGHT 100
#endif
#ifndef EMAIL
#define EMAIL NULL
#endif
#ifndef HOME_PAGE
#define HOME_PAGE NULL
#endif
#ifndef PRODUCT_NAME_HTML
#define PRODUCT_NAME_HTML PRODUCT_NAME_TEXT
#endif
#ifdef RC_INVOKED
#define AlphaCode alpha
#define BetaCode beta
#define ReleaseCode pl
#define MkStr2(s) #s
#define MkStr(s) MkStr2(s)
#if BUILD_NUMBER==0
#define VERSION_STRING \
MkStr(MAJOR_VERSION) "." MkStr(MINOR_VERSION)
#else
#define VERSION_STRING \
MkStr(MAJOR_VERSION) "." MkStr(MINOR_VERSION) MkStr(BUILD_TYPE) MkStr(BUILD_NUMBER)
#endif
VS_VERSION_INFO VERSIONINFO
#define alpha 1
#define beta 2
#define pl 3
FILEVERSION MAJOR_VERSION,MINOR_VERSION,BUILD_TYPE,BUILD_NUMBER
PRODUCTVERSION MAJOR_VERSION,MINOR_VERSION,BUILD_TYPE,BUILD_NUMBER
#undef alpha
#undef beta
#undef pl
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
#ifdef _DEBUG
FILEFLAGS VS_FF_DEBUG
#else
FILEFLAGS 0
#endif
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "0c0904b0"
BEGIN
VALUE "CompanyName", MANUFACTURER_TEXT "\0"
VALUE "FileDescription", PRODUCT_NAME_TEXT "\0"
VALUE "FileVersion", VERSION_STRING "\0"
VALUE "InternalName", EXE_NAME_TEXT "\0"
VALUE "LegalCopyright", "Copyright " COPYRIGHT_HOLDER " 2003\0"
VALUE "OriginalFilename", EXE_NAME_TEXT ".exe\0"
VALUE "ProductName", PRODUCT_NAME_TEXT "\0"
VALUE "ProductVersion", VERSION_STRING "\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0xc09, 1200
END
END
#else
PHTTPServiceProcess::Info ProductInfo = {
PRODUCT_NAME_TEXT,
MANUFACTURER_TEXT,
MAJOR_VERSION, MINOR_VERSION, PProcess::BUILD_TYPE, BUILD_NUMBER, __TIME__ __DATE__,
{{ 0 }}, { NULL }, 0, {{ 0 }}, // Only relevent for commercial apps
HOME_PAGE,
EMAIL,
PRODUCT_NAME_HTML,
NULL, // GIF HTML, use calculated from below
GIF_NAME,
GIF_WIDTH,
GIF_HEIGHT
};
#endif
// End of File ///////////////////////////////////////////////////////////////
|