trunk/src/build/verinfo.c
| r18052 | r18053 | |
| 18 | 18 | #define ARRAY_LENGTH(x) (sizeof(x) / sizeof(x[0])) |
| 19 | 19 | #define BUILD_MAME (0) |
| 20 | 20 | #define BUILD_MESS (1) |
| 21 | #define BUILD_UME (2) |
| 21 | 22 | |
| 22 | 23 | //============================================================ |
| 23 | 24 | // TYPE DEFINITIONS |
| r18052 | r18053 | |
| 172 | 173 | //============================================================ |
| 173 | 174 | static int usage(char *me) |
| 174 | 175 | { |
| 175 | | fprintf(stderr, "Usage: %s [-b windows|winui|mess] <filename>\n", me); |
| 176 | fprintf(stderr, "Usage: %s [-b mame|mess|ume] <filename>\n", me); |
| 176 | 177 | return 1; |
| 177 | 178 | } |
| 178 | 179 | |
| r18052 | r18053 | |
| 204 | 205 | build = BUILD_MAME; |
| 205 | 206 | else if (!strcmp(p,"mess")) |
| 206 | 207 | build = BUILD_MESS; |
| 208 | else if (!strcmp(p,"ume")) |
| 209 | build = BUILD_UME; |
| 207 | 210 | else |
| 208 | 211 | return usage(argv[0]); |
| 209 | 212 | } |
| r18052 | r18053 | |
| 263 | 266 | v.original_filename = "MESS"; |
| 264 | 267 | v.product_name = "MESS"; |
| 265 | 268 | } |
| 269 | else if (build == BUILD_UME) |
| 270 | { |
| 271 | // UME |
| 272 | v.author = "MAME and MESS Team"; |
| 273 | v.comments = "Universal Machine Emulator"; |
| 274 | v.company_name = "MAME and MESS Team"; |
| 275 | v.file_description = "Universal Machine Emulator"; |
| 276 | v.internal_name = "UME"; |
| 277 | v.original_filename = "UME"; |
| 278 | v.product_name = "UME"; |
| 279 | } |
| 266 | 280 | else |
| 267 | 281 | { |
| 268 | 282 | // MAME |
trunk/src/ume/osd/windows/windows.mak
| r0 | r18053 | |
| 1 | ########################################################################### |
| 2 | # |
| 3 | # windows.mak |
| 4 | # |
| 5 | # UME Windows-specific makefile |
| 6 | # |
| 7 | ########################################################################### |
| 8 | |
| 9 | UME_WINSRC = src/ume/osd/windows |
| 10 | UME_WINOBJ = $(OBJ)/ume/osd/windows |
| 11 | |
| 12 | OBJDIRS += \ |
| 13 | $(UMEOBJ)/osd \ |
| 14 | $(UMEOBJ)/osd/windows |
| 15 | |
| 16 | RESFILE = $(UME_WINOBJ)/ume.res |
| 17 | |
| 18 | $(LIBOSD): $(OSDOBJS) |
| 19 | |
| 20 | $(LIBOCORE): $(OSDCOREOBJS) |
| 21 | |
| 22 | $(LIBOCORE_NOMAIN): $(OSDCOREOBJS:$(WINOBJ)/main.o=) |
| 23 | |
| 24 | #------------------------------------------------- |
| 25 | # generic rules for the resource compiler |
| 26 | #------------------------------------------------- |
| 27 | |
| 28 | $(UME_WINOBJ)/%.res: $(UME_WINSRC)/%.rc |
| 29 | @echo Compiling resources $<... |
| 30 | $(RC) $(RCDEFS) $(RCFLAGS) --include-dir $(UME_WINOBJ) -o $@ -i $< |
| 31 | |
| 32 | |
| 33 | #------------------------------------------------- |
| 34 | # rules for resource file |
| 35 | #------------------------------------------------- |
| 36 | |
| 37 | $(RESFILE): $(UME_WINSRC)/ume.rc $(UME_WINOBJ)/umevers.rc |
| 38 | |
| 39 | $(UME_WINOBJ)/umevers.rc: $(BUILDOUT)/verinfo$(BUILD_EXE) $(SRC)/version.c |
| 40 | @echo Emitting $@... |
| 41 | @"$(BUILDOUT)/verinfo$(BUILD_EXE)" -b ume $(SRC)/version.c > $@ |
| | No newline at end of file |
trunk/src/ume/osd/windows/ume.rc
| r0 | r18053 | |
| 1 | //============================================================ |
| 2 | // |
| 3 | // ume.rc - Minimal resource file for Win32 MAME |
| 4 | // |
| 5 | //============================================================ |
| 6 | // |
| 7 | // Copyright Aaron Giles |
| 8 | // All rights reserved. |
| 9 | // |
| 10 | // Redistribution and use in source and binary forms, with or |
| 11 | // without modification, are permitted provided that the |
| 12 | // following conditions are met: |
| 13 | // |
| 14 | // * Redistributions of source code must retain the above |
| 15 | // copyright notice, this list of conditions and the |
| 16 | // following disclaimer. |
| 17 | // * Redistributions in binary form must reproduce the |
| 18 | // above copyright notice, this list of conditions and |
| 19 | // the following disclaimer in the documentation and/or |
| 20 | // other materials provided with the distribution. |
| 21 | // * Neither the name 'MAME' nor the names of its |
| 22 | // contributors may be used to endorse or promote |
| 23 | // products derived from this software without specific |
| 24 | // prior written permission. |
| 25 | // |
| 26 | // THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND |
| 27 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 28 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND |
| 29 | // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO |
| 30 | // EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT, |
| 31 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 32 | // DAMAGE (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 33 | // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 34 | // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
| 35 | // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| 36 | // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 37 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN |
| 38 | // IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 39 | // |
| 40 | //============================================================ |
| 41 | |
| 42 | #define NOWINRES |
| 43 | #include "windows.h" |
| 44 | #include "commctrl.h" |
| 45 | #include "umevers.rc" |
| 46 | |
| 47 | 1 24 MOVEABLE PURE "ume.man" |
| 48 | |
| 49 | 2 ICON DISCARDABLE "ume.ico" |