tn0012.txt 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. wxWidgets naming conventions
  2. ============================
  3. Being a cross platform development library, it is naturally desirable
  4. (at least to me ;) for wxWidgets to be exploited in a fully cross
  5. platform development environment -- a single invocation of make should
  6. be sufficient to build target executables for a variety of host platforms
  7. when desired.
  8. Since this is now in fact possible for at least the most commonly used
  9. platforms, wxWidgets has been structured to allow multiple, simultaneous
  10. installations of the library. Common files are shared, platform and port
  11. specific files and libraries are arranged so as to be unambiguous when
  12. installed together.
  13. To manage this sanely we need a sufficiently descriptive and logical
  14. labelling convention for file and install path names -- this document (at
  15. least at its time of writing) describes the system we have adopted.
  16. It is not fine grained enough to include every possible build configuration
  17. for wxWidgets, but is encompassing enough to maintain a relatively complete
  18. set of cross platform build tools on a single machine and to provide an
  19. obvious slot for new ports to slip into.
  20. For UNIX libraries, the canonical library name shall be of the form:
  21. libwx_$(toolkit)$(widgetset)$(debug)-$(version)-$(host).$(lib_extension)
  22. For MSW (native hosted only) libraries the library name should be of
  23. the form:
  24. wx$(toolkit)$(widgetset)$(version)$(unicode)$(debug).$(lib_extension)
  25. Where:
  26. --------------------------------------------------------------------
  27. $toolkit must currently be one of the following:
  28. msw
  29. gtk
  30. base
  31. mac
  32. os2
  33. pm
  34. motif
  35. --------------------------------------------------------------------
  36. $widgetset may be one of:
  37. univ
  38. or empty if the widget set is the same as the toolkit.
  39. --------------------------------------------------------------------
  40. $version is a string encoding the full version (major, minor, release)
  41. for MSW, or just the major and minor number for UNIX.
  42. eg. for wxWidgets 2.3.2, $version = 232 for MSW or 2.3 for UNIX.
  43. The rationale for this is that under UNIX-like systems it is desirable
  44. that differently 'minor numbered' releases can be installed together,
  45. meaning your old 2.2 apps can continue to work even if you migrate
  46. development to the next stable or unstable release (eg. 2.3, 2.4),
  47. but binary compatibility is maintained between point releases (those
  48. with the same major.minor number)
  49. A known break in binary compatibility should be addressed by updating
  50. the library soname (see the notes in configure.in for details on this)
  51. I do not know why MSW should not also omit the release number from
  52. $version. (maybe that will change by the time this document is ratified)
  53. --------------------------------------------------------------------
  54. $unicode and $debug are either empty or set to 'u' and 'd'
  55. respectively when enabled.
  56. --------------------------------------------------------------------
  57. $host is empty for a 'native' library, (that is one where the host
  58. system is the same as the build system) or set to the value returned
  59. by the autoconf ${host_alias} variable in configure for libraries
  60. that are cross compiled.
  61. --------------------------------------------------------------------
  62. $lib_extension is system specific and most usually set to .a for
  63. a static library, .dll for a MSW shared library, or .so.$so_version
  64. for a shared UNIX library.
  65. ====================================================================
  66. The installed location of the library specific setup.h is also
  67. determined by the values of these items. On UNIX systems they
  68. will be found in:
  69. $(prefix)/lib/wx/include/$(toolkit)$(widgetset)$(debug)-$(version)-$(host)/wx/
  70. which will be in the include search path returned by the relevant
  71. wx-config for that library. (or presumably set in the relevant
  72. make/project files for platforms that do not use wx-config)
  73. ====================================================================
  74. The port specific wx-config file for each library shall be named:
  75. wx-$(toolkit)$(widgetset)$(debug)-$(version)-$(host)-config
  76. ${prefix}/bin/wx-config shall exist as a link to (or copy of) one of
  77. these port specific files (on platforms which support it) and as such
  78. it defines the default build configuration for wxApps on the system.
  79. It may be modified by the system user at any time.
  80. ---==O==---