the following: (note that all this applies also to demos: just replace
samples/ with demos/ where needed).
-1. Create the directory samples/foo locally and "cvs add" it
-
-2. Put the sources, headers and foo.rc file in it and "cvs add" them too
- (don't forget to use "-kb" switch for binary files)
-
-3. Create the makefiles for Windows compilers. There are several ways to do
- it:
- a) copy the makefiles from samples/minimal, replace all occurences of
- minimal with foo
- b) use makegen (sources are under utils/makegen)
- c) use projgen
+1. Create the directory samples/foo locally and "cvs add" it.
+
+2. "cvs add" the sample sources (usually based on minimal.cpp) as well.
+
+ Note that unless your sample requires something special you shouldn't
+ add foo.rc, foo.ico, ... any more, please just reuse the generic sample.*
+ files in the samples subdirectory.
+
+3. Create the makefiles:
+ a) modify samples/samples.bkl (just copy an existing line)
+ b) create foo.bkl (sed 's/minimal/foo/g' minimal.bkl > foo.bkl is usually
+ enough, but you may need to add more <wx-lib> lines if your sample uses
+ anything not in the core lib)
+ c) generate the makefiles for your sample using bakefile. For this you
+ need to:
+ (i) install bakefile (see http://bakefile.sf.net/)
+ (ii) run bakefile_gen in build/bakefiles which will regenerate all
+ makefiles which are not up to date
+
+ You may also use "bakefile_gen -b ../../samples/foo/foo.bkl" to
+ regenerate only the makefiles for this sample (path must be relative!)
+ or even add a "-f<compiler>" to generate just the makefiles for the given
+ compiler (run 'bakefile --help' to get the list of possible values)
4. Modify configure.in and samples/configure.in for Unix compilation:
a) if the sample should only be built if "wxUSE_FOO" is enabled, locate
Author: VZ
Version: $Id$
-
-$Log$
-Revision 1.2 2000/03/06 16:50:13 GRG
-Added a mention about demos/ instead of samples/
-Added a mention of the 'samples overview' section in the wxWindows manual
-Added EOF marker to easily distinguish the text from the CVS log.
-
-Revision 1.1 2000/03/02 04:18:53 GRG
-Renamed tech notes to tnxxxx.txt
-
-Revision 1.2 2000/03/01 19:24:07 VZ
-added a note about where to find makegen
-
-Revision 1.1 2000/03/01 19:22:41 VZ
-created 'how to add a sample' technote