libsample.bkl 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" ?>
  2. <makefile>
  3. <!-- a typical nice feature which wxpresets make available to wx-based programs
  4. is to allow the user to build with different configurations those programs;
  5. this is achieved in few fundamental steps:
  6. 1) set a different BUILDDIR for different build configurations
  7. 2) set different output dirs for the libraries built with a
  8. different shared/static setting
  9. 3) set different output names for the libraries built with
  10. different unicode/ansi and release/debug settings
  11. -->
  12. <include file="presets/wx.bkl"/>
  13. <!-- the following line implements step #1: -->
  14. <set-wxlike-builddir/>
  15. <!-- through the use of the 'wx-lib' and 'wxlike' templates, we'll get
  16. the ability to compile against any wxWidgets build using, for our
  17. program, the same configuration of the selected wxWidgets build.
  18. -->
  19. <template id="my" template="wx-lib,wxlike">
  20. <!-- wxlike-dirname implements step #2 (see initial comment) -->
  21. <wxlike-dirname>lib</wxlike-dirname>
  22. <sources>libsample.cpp</sources>
  23. </template>
  24. <lib id="static" template="my" cond="WX_SHARED=='0'">
  25. <!-- wxlike-libname implements step #3 (see initial comment) -->
  26. <wxlike-libname prefix='sample'>test</wxlike-libname>
  27. </lib>
  28. <dll id="shared" template="my" cond="WX_SHARED=='1'">
  29. <!-- wxlike-dllname does step #3 (see initial comment) -->
  30. <wxlike-dllname prefix='sample'>test</wxlike-dllname>
  31. <define>WXMAKINGDLL_LIBSAMPLE</define>
  32. <wx-lib>core</wx-lib>
  33. <wx-lib>base</wx-lib>
  34. </dll>
  35. </makefile>