|
| 1 | +/* |
| 2 | +The MIT License (MIT) |
| 3 | +
|
| 4 | +Copyright (c) 2015, by [halex2005](mailto:[email protected]) |
| 5 | +
|
| 6 | +Permission is hereby granted, free of charge, to any person obtaining a copy |
| 7 | +of this software and associated documentation files (the "Software"), to deal |
| 8 | +in the Software without restriction, including without limitation the rights |
| 9 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 10 | +copies of the Software, and to permit persons to whom the Software is |
| 11 | +furnished to do so, subject to the following conditions: |
| 12 | +
|
| 13 | +The above copyright notice and this permission notice shall be included in all |
| 14 | +copies or substantial portions of the Software. |
| 15 | +
|
| 16 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 22 | +SOFTWARE. |
| 23 | +*/ |
| 24 | + |
| 25 | +#pragma once |
| 26 | + |
| 27 | +#ifndef PRODUCT_VERSION_MAJOR |
| 28 | +#define PRODUCT_VERSION_MAJOR @PRODUCT_VERSION_MAJOR@ |
| 29 | +#endif |
| 30 | + |
| 31 | +#ifndef PRODUCT_VERSION_MINOR |
| 32 | +#define PRODUCT_VERSION_MINOR @PRODUCT_VERSION_MINOR@ |
| 33 | +#endif |
| 34 | + |
| 35 | +#ifndef PRODUCT_VERSION_PATCH |
| 36 | +#define PRODUCT_VERSION_PATCH @PRODUCT_VERSION_PATCH@ |
| 37 | +#endif |
| 38 | + |
| 39 | +#ifndef PRODUCT_VERSION_BUILD |
| 40 | +#define PRODUCT_VERSION_BUILD @PRODUCT_VERSION_REVISION@ |
| 41 | +#endif |
| 42 | + |
| 43 | +#ifndef FILE_VERSION_MAJOR |
| 44 | +#define FILE_VERSION_MAJOR @PRODUCT_VERSION_MAJOR@ |
| 45 | +#endif |
| 46 | + |
| 47 | +#ifndef FILE_VERSION_MINOR |
| 48 | +#define FILE_VERSION_MINOR @PRODUCT_VERSION_MINOR@ |
| 49 | +#endif |
| 50 | + |
| 51 | +#ifndef FILE_VERSION_PATCH |
| 52 | +#define FILE_VERSION_PATCH @PRODUCT_VERSION_PATCH@ |
| 53 | +#endif |
| 54 | + |
| 55 | +#ifndef FILE_VERSION_BUILD |
| 56 | +#define FILE_VERSION_BUILD @PRODUCT_VERSION_REVISION@ |
| 57 | +#endif |
| 58 | + |
| 59 | +#ifndef __TO_STRING |
| 60 | +#define __TO_STRING_IMPL(x) #x |
| 61 | +#define __TO_STRING(x) __TO_STRING_IMPL(x) |
| 62 | +#endif |
| 63 | + |
| 64 | +#define PRODUCT_VERSION_MAJOR_MINOR_STR __TO_STRING(PRODUCT_VERSION_MAJOR) "." __TO_STRING(PRODUCT_VERSION_MINOR) |
| 65 | +#define PRODUCT_VERSION_MAJOR_MINOR_PATCH_STR PRODUCT_VERSION_MAJOR_MINOR_STR "." __TO_STRING(PRODUCT_VERSION_PATCH) |
| 66 | +#define PRODUCT_VERSION_FULL_STR PRODUCT_VERSION_MAJOR_MINOR_PATCH_STR "." __TO_STRING(PRODUCT_VERSION_BUILD) |
| 67 | +#define PRODUCT_VERSION_RESOURCE PRODUCT_VERSION_MAJOR,PRODUCT_VERSION_MINOR,PRODUCT_VERSION_PATCH,PRODUCT_VERSION_BUILD |
| 68 | +#define PRODUCT_VERSION_RESOURCE_STR PRODUCT_VERSION_FULL_STR "\0" |
| 69 | + |
| 70 | +#define FILE_VERSION_MAJOR_MINOR_STR __TO_STRING(FILE_VERSION_MAJOR) "." __TO_STRING(FILE_VERSION_MINOR) |
| 71 | +#define FILE_VERSION_MAJOR_MINOR_PATCH_STR FILE_VERSION_MAJOR_MINOR_STR "." __TO_STRING(FILE_VERSION_PATCH) |
| 72 | +#define FILE_VERSION_FULL_STR FILE_VERSION_MAJOR_MINOR_PATCH_STR "." __TO_STRING(FILE_VERSION_BUILD) |
| 73 | +#define FILE_VERSION_RESOURCE FILE_VERSION_MAJOR,FILE_VERSION_MINOR,FILE_VERSION_PATCH,FILE_VERSION_BUILD |
| 74 | +#define FILE_VERSION_RESOURCE_STR FILE_VERSION_FULL_STR "\0" |
| 75 | + |
| 76 | +#ifndef PRODUCT_ICON |
| 77 | +#define PRODUCT_ICON "@PRODUCT_ICON@" |
| 78 | +#endif |
| 79 | + |
| 80 | +#ifndef PRODUCT_COMMENTS |
| 81 | +#define PRODUCT_COMMENTS "@PRODUCT_COMMENTS@\0" |
| 82 | +#endif |
| 83 | + |
| 84 | +#ifndef PRODUCT_COMPANY_NAME |
| 85 | +#define PRODUCT_COMPANY_NAME "@PRODUCT_COMPANY_NAME@\0" |
| 86 | +#endif |
| 87 | + |
| 88 | +#ifndef PRODUCT_COMPANY_COPYRIGHT |
| 89 | +#define PRODUCT_COMPANY_COPYRIGHT "@PRODUCT_COMPANY_COPYRIGHT@\0" |
| 90 | +#endif |
| 91 | + |
| 92 | +#ifndef PRODUCT_FILE_DESCRIPTION |
| 93 | +#define PRODUCT_FILE_DESCRIPTION "@PRODUCT_FILE_DESCRIPTION@\0" |
| 94 | +#endif |
| 95 | + |
| 96 | +#ifndef PRODUCT_INTERNAL_NAME |
| 97 | +#define PRODUCT_INTERNAL_NAME "@PRODUCT_NAME@\0" |
| 98 | +#endif |
| 99 | + |
| 100 | +#ifndef PRODUCT_ORIGINAL_FILENAME |
| 101 | +#define PRODUCT_ORIGINAL_FILENAME "@PRODUCT_ORIGINAL_FILENAME@\0" |
| 102 | +#endif |
| 103 | + |
| 104 | +#ifndef PRODUCT_BUNDLE |
| 105 | +#define PRODUCT_BUNDLE "@PRODUCT_BUNDLE@\0" |
| 106 | +#endif |
0 commit comments