Previous 199869 Revisions Next

r18053 Thursday 20th September, 2012 at 23:18:34 UTC by Oliver Stöneberg
added resources and icon for UME / added UME support to verinfo and updated the usage string (no whatsnew)
[src/build]verinfo.c
[src/ume]ume.mak
[src/ume/osd/windows]ume.ico* ume.man* ume.rc* windows.mak*

trunk/src/build/verinfo.c
r18052r18053
1818#define ARRAY_LENGTH(x)      (sizeof(x) / sizeof(x[0]))
1919#define BUILD_MAME      (0)
2020#define BUILD_MESS         (1)
21#define BUILD_UME         (2)
2122
2223//============================================================
2324//  TYPE DEFINITIONS
r18052r18053
172173//============================================================
173174static int usage(char *me)
174175{
175   fprintf(stderr, "Usage: %s [-b windows|winui|mess] <filename>\n", me);
176   fprintf(stderr, "Usage: %s [-b mame|mess|ume] <filename>\n", me);
176177   return 1;
177178}
178179
r18052r18053
204205            build = BUILD_MAME;
205206         else if (!strcmp(p,"mess"))
206207            build = BUILD_MESS;
208         else if (!strcmp(p,"ume"))
209            build = BUILD_UME;
207210         else
208211            return usage(argv[0]);
209212      }
r18052r18053
263266      v.original_filename = "MESS";
264267      v.product_name = "MESS";
265268   }
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   }
266280   else
267281   {
268282      // MAME
trunk/src/ume/osd/windows/ume.ico
trunk/src/ume/osd/windows/ume.man
r0r18053
1<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2   <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
3   <assemblyIdentity version="1.0.0.0" processorArchitecture="*" name="UME" type="win32" />
4   <description>Universal Machine Emulator</description>
5   <dependency>
6      <dependentAssembly>
7         <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" publicKeyToken="6595b64144ccf1df" language="*" processorArchitecture="*"/>
8      </dependentAssembly>
9   </dependency>
10</assembly>
trunk/src/ume/osd/windows/windows.mak
r0r18053
1###########################################################################
2#
3#   windows.mak
4#
5#   UME Windows-specific makefile
6#
7###########################################################################
8
9UME_WINSRC = src/ume/osd/windows
10UME_WINOBJ = $(OBJ)/ume/osd/windows
11
12OBJDIRS += \
13   $(UMEOBJ)/osd \
14   $(UMEOBJ)/osd/windows
15
16RESFILE = $(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
r0r18053
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
471                       24      MOVEABLE PURE   "ume.man"
48
492                       ICON    DISCARDABLE     "ume.ico"
trunk/src/ume/ume.mak
r18052r18053
1414   -I$(SRC)/mess/osd \
1515   -I$(SRC)/mess/osd/$(OSD)
1616
17OBJDIRS += $(OBJ)/ume
17UMEOBJ = $(OBJ)/ume
18OBJDIRS += $(UMEOBJS)
1819
1920$(DRIVLISTSRC): $(SRC)/mame/mame.lst $(SRC)/mess/mess.lst
2021

Previous 199869 Revisions Next


© 1997-2024 The MAME Team