WIN32 compilation of wxrc, wxrcedit

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-07-26 12:40:49 +00:00
parent 1126585b76
commit 031dfec8d4
26 changed files with 393 additions and 10 deletions

17
utils/wxrc/makefile.b32 Normal file
View File

@@ -0,0 +1,17 @@
#
# File: makefile.b32
# Author: Julian Smart
# Created: 1999
# Updated:
# Copyright:
#
# Makefile : Builds wxrc for 32-bit BC++
WXDIR = $(WXWIN)
TARGET=wxrc
EXTRALIBS=$(WXDIR)\lib\wxxml.lib
OBJECTS = $(TARGET).obj
!include $(WXDIR)\src\makeprog.b32

17
utils/wxrc/makefile.g95 Normal file
View File

@@ -0,0 +1,17 @@
#
# File: makefile.g95
# Author: Julian Smart
# Created: 1999
# Updated:
# Copyright: (c) Julian Smart, 1999
#
# Makefile for wxrc (Cygwin/Mingw32).
WXDIR = ../../..
TARGET=wxrc
EXTRALIBS=-lwxxml
OBJECTS = $(TARGET).o
include $(WXDIR)/src/makeprog.g95

29
utils/wxrc/makefile.vc Normal file
View File

@@ -0,0 +1,29 @@
#
# File: makefile.vc
# Author: Julian Smart
# Created: 2000
# Updated:
# Copyright: (c) Julian Smart
#
# "%W% %G%"
#
# Makefile : Builds wxrc (XML resource compiler)
# Use FINAL=1 argument to nmake to build final version with no debugging
# info
# Set WXDIR for your system
WXDIR = $(WXWIN)
PROGRAM=wxrc
FINAL=0
!if "$(FINAL)" == "0"
EXTRALIBS=$(WXDIR)\lib\wxxmld.lib
!else
EXTRALIBS=$(WXDIR)\lib\wxxml.lib
!endif
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.vc

13
utils/wxrc/makefile.wat Normal file
View File

@@ -0,0 +1,13 @@
#
# Makefile for WATCOM
#
#
WXDIR = $(%WXWIN)
PROGRAM = wxrc
EXTRALIBS = $(WXDIR)\lib\wxxml.lib
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

BIN
utils/wxrc/mondrian.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

View File

@@ -30,16 +30,21 @@
#include "wx/xml/xml.h"
#include "wx/ffile.h"
/*
#if wxUSE_GUI
#error "You must compile the resource compiler with wxBase!"
#endif
*/
class XmlResApp : public wxApp
{
public:
#if wxUSE_GUI
bool OnInit();
#else
virtual int OnRun();
#endif
private:
@@ -58,7 +63,11 @@ private:
IMPLEMENT_APP(XmlResApp)
#if wxUSE_GUI
bool XmlResApp::OnInit()
#else
int XmlResApp::OnRun()
#endif
{
static const wxCmdLineEntryDesc cmdLineDesc[] =
{
@@ -87,11 +96,19 @@ int XmlResApp::OnRun()
retCode = 0;
ParseParams(parser);
CompileRes();
#if wxUSE_GUI
return FALSE;
#else
return retCode;
#endif
break;
default:
#if wxUSE_GUI
return FALSE;
#else
return 1;
#endif
break;
}
}

2
utils/wxrc/wxrc.rc Normal file
View File

@@ -0,0 +1,2 @@
mondrian ICON "mondrian.ico"
#include "wx/msw/wx.rc"