You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
4.7KB

  1. #!/usr/bin/env python
  2. from waflib.Configure import conf
  3. top = '.'
  4. out = 'build'
  5. def options(opt):
  6. pass
  7. def configure(conf):
  8. pass
  9. @conf
  10. def example(bld,*k,**kw):
  11. kw['features' ] = 'cxx cxxprogram'
  12. if 'use' in kw:
  13. kw['use'] = kw['use'] + [ 'ntk_images_static','ntk_static' ]
  14. else:
  15. kw['use'] = [ 'ntk_images_static','ntk_static' ]
  16. kw['includes'] = [ '.', '..' ]
  17. kw['install_path'] = None
  18. return bld(*k,**kw)
  19. def build(bld):
  20. if bld.env.ENABLE_TEST:
  21. bld.example(source='embed.cxx', target='embed')
  22. bld.example(source='glpuzzle.cxx', target='glpuzzle', use=['ntk_gl_static'])
  23. bld.example(source='fractals.cxx fracviewer.cxx', target='fractals', use=['ntk_gl_static'])
  24. bld.example(source='gl_overlay.cxx', target='gl_overlay', use=['ntk_gl_static'])
  25. bld.example(source='shape.cxx', target='shape', use=['ntk_gl_static'])
  26. bld.example(source='fullscreen.cxx', target='fullscreen', use=['ntk_gl_static'])
  27. bld.example(source='cube.cxx', target='cube', use=['ntk_gl_static'])
  28. bld.example(source='hello.cxx', target='hello')
  29. bld.example(source='input_choice.cxx', target='input_choice')
  30. bld.example(source='label.cxx', target='label')
  31. bld.example(source='native-filechooser.cxx', target='native-filechooser')
  32. bld.example(source='fonts.cxx', target='fonts')
  33. bld.example(source='editor.cxx', target='editor')
  34. bld.example(source='mandelbrot.cxx mandelbrot_ui.cxx', target='mandelbrot')
  35. bld.example(source='buttons.cxx', target='buttons')
  36. bld.example(source='sudoku.cxx', target='sudoku')
  37. bld.example(source='ask.cxx', target='ask')
  38. bld.example(source='pixmap.cxx', target='pixmap')
  39. bld.example(source='cursor.cxx', target='cursor')
  40. bld.example(source='line_style.cxx', target='line_style')
  41. bld.example(source='adjuster.cxx', target='adjuster')
  42. bld.example(source='list_visuals.cxx', target='list_visuals')
  43. bld.example(source='subwindow.cxx', target='subwindow')
  44. bld.example(source='resize.cxx', target='resize')
  45. bld.example(source='image.cxx', target='image')
  46. bld.example(source='file_chooser.cxx', target='file_chooser')
  47. bld.example(source='tiled_image.cxx', target='tiled_image')
  48. bld.example(source='navigation.cxx', target='navigation')
  49. bld.example(source='device.cxx', target='device')
  50. bld.example(source='utf8.cxx', target='utf8')
  51. bld.example(source='overlay.cxx', target='overlay')
  52. bld.example(source='arc.cxx', target='arc')
  53. bld.example(source='cairo_test.cxx', target='cairo_test')
  54. bld.example(source='browser.cxx', target='browser')
  55. bld.example(source='colbrowser.cxx', target='colbrowser')
  56. bld.example(source='rotated_text.cxx', target='rotated_text')
  57. bld.example(source='inactive.cxx', target='inactive')
  58. bld.example(source='threads.cxx', target='threads')
  59. bld.example(source='demo.cxx', target='demo')
  60. bld.example(source='menubar.cxx', target='menubar')
  61. bld.example(source='input.cxx', target='input')
  62. bld.example(source='message.cxx', target='message')
  63. bld.example(source='preferences.cxx', target='preferences')
  64. bld.example(source='tree.cxx', target='tree')
  65. bld.example(source='output.cxx', target='output')
  66. bld.example(source='scroll.cxx', target='scroll')
  67. bld.example(source='symbols.cxx', target='symbols')
  68. bld.example(source='tabs.cxx', target='tabs')
  69. bld.example(source='blocks.cxx', target='blocks')
  70. bld.example(source='keyboard.cxx keyboard_ui.cxx', target='keyboard')
  71. bld.example(source='iconize.cxx', target='iconize')
  72. bld.example(source='radio.cxx', target='radio')
  73. bld.example(source='resizebox.cxx', target='resizebox')
  74. bld.example(source='fast_slow.cxx', target='fast_slow')
  75. bld.example(source='boxtype.cxx', target='boxtype')
  76. bld.example(source='help.cxx', target='help')
  77. bld.example(source='bitmap.cxx', target='bitmap')
  78. bld.example(source='tile.cxx', target='tile')
  79. bld.example(source='color_chooser.cxx', target='color_chooser')
  80. bld.example(source='valuators.cxx', target='valuators')
  81. bld.example(source='doublebuffer.cxx', target='doublebuffer')
  82. bld.example(source='pixmap_browser.cxx', target='pixmap_browser')
  83. bld.example(source='curve.cxx', target='curve')
  84. bld.example(source='minimum.cxx', target='minimum')
  85. bld.example(source='button.cxx', target='button')
  86. bld.example(source='pack.cxx', target='pack')
  87. bld.example(source='checkers.cxx', target='checkers')
  88. bld.example(source='table.cxx', target='table')