From fdab831c199694c02e63a13806e131da801e2d74 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 4 May 2016 18:31:56 -0700 Subject: [PATCH] Add a note about generating stub code --- TODO.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/TODO.txt b/TODO.txt index b217e603..f1305b21 100644 --- a/TODO.txt +++ b/TODO.txt @@ -64,7 +64,22 @@ WAF Build Add support for using the cygwin and mingw32 compilers. +Stubs for Optional Classes +-------------------------- +In Classic we tend to use empty stubs for classes and etc. that are optional +and not available in a particular build of wxWidgets. That allows the +compilations to succeed without needing to completely eliminate those wrapper +classes, and when a user tries to use one of those classes they would get a +NotImplementedError. + +The big downside of that approach was that the stubs had to be maintained by +hand, which is time consuming and error prone. However for Phoenix we have +all the info about the API so we should be able to almost completely automate +the generation of the empty stub code for those classes. ("Almost" because +we'll need to specify which classes to do it for, and what #define flag to +check if the the feature is available in wxWidgets or if the stubs should be +compiled.)