Stripping wxPython/Windows down

Looks like wxWindows' own setup.h already has lots of flags and comments
to help strip out various components, which is great! I already took
out a couple things and got the DLL down by 1/2 meg.

But I ran into problems with wxPython/src/msw/misc2.cpp:

misc2.cpp
src\msw\misc2.cpp(2346) : error C2065: 'wxTheMimeTypesManager' :
   undeclared identifier
src\msw\misc2.cpp(6588) : error C2065: 'wxJoystick' : undeclared
   identifier
src\msw\misc2.cpp(6588) : error C2065: 'src' : undeclared identifier
src\msw\misc2.cpp(6588) : warning C4552: '*' : operator has no effect;
   expected operator with side-effect

Looking at misc2.i, I'm not sure the problem is. It seems that the #if's
are setup to ignore wxUSE_JOYSTICK when on MS Windows, but I'm not sure
what the point of that is. This is also my first foray into [wx]SWIG;
maybe I'll learn a few things...

···

--
Chuck
http://ChuckEsterbrook.com

Chuck Esterbrook wrote:

Looks like wxWindows' own setup.h already has lots of flags and comments to help strip out various components, which is great! I already took out a couple things and got the DLL down by 1/2 meg.

But I ran into problems with wxPython/src/msw/misc2.cpp:

misc2.cpp
src\msw\misc2.cpp(2346) : error C2065: 'wxTheMimeTypesManager' :
   undeclared identifier
src\msw\misc2.cpp(6588) : error C2065: 'wxJoystick' : undeclared
   identifier
src\msw\misc2.cpp(6588) : error C2065: 'src' : undeclared identifier
src\msw\misc2.cpp(6588) : warning C4552: '*' : operator has no effect;
   expected operator with side-effect

Looking at misc2.i, I'm not sure the problem is. It seems that the #if's are setup to ignore wxUSE_JOYSTICK when on MS Windows, but I'm not sure what the point of that is. This is also my first foray into [wx]SWIG; maybe I'll learn a few things...

IIRC, the issue was that when I wrote that part of misc2.i that wxUSE_JOYSTICK wasn't set properly on Windows...

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!