Explain better how to add data files to a sample

Also don't duplicate this information in both how-to-add-new-sample.md
and how-to-add-files-to-build-system.md, just reference the former in
the latter instead.

Also fix some Markdown markup.
This commit is contained in:
Vadim Zeitlin
2021-11-29 13:50:44 +01:00
parent 1a0eeed0a8
commit a65e5f4c1d
2 changed files with 23 additions and 28 deletions

View File

@@ -120,24 +120,11 @@ wxUniversal, e.g. GDI classes. Files shared by all X Window System ports
should be put into `XWIN_LOWLEVEL_SRC`.
Adding sample
-------------
Adding a new sample
-------------------
Copy the bakefile from another sample, change the ID and files accordingly.
If the sample uses some data files, make sure to have `<wx-data>` node
in the sample's bakefile (see e.g. `samples/image/image.bkl` for an example).
Make sure to add `<wx-lib>` statements for all libraries from multilib build
that are required by the sample.
The Windows resource specification should use the central .rc file:
<win32-res>../sample.rc</win32-res>
Run `bakefile_gen` in `$(wx)/build/bakefiles` to regenerate the bakefiles.
Finally commit `$(wx)/build/bakefiles/make_dist.mk` and all the other modified files.
Currently we commit all the generated makefiles.
This is explained in details in `how-to-add-new-sample.md` file, please see
there.
Adding new core library