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.

582 lines
17KB

  1. #!/usr/bin/env python
  2. import subprocess
  3. import waflib.Options as Options
  4. import string
  5. import os
  6. import sys
  7. # Version of this package (even if built as a child)
  8. FL_MAJOR_VERSION='1'
  9. FL_MINOR_VERSION='3'
  10. FL_PATCH_VERSION='0'
  11. PACKAGE_VERSION = FL_MAJOR_VERSION + '.' + FL_MINOR_VERSION + '.' + FL_PATCH_VERSION
  12. API_VERSION = FL_MAJOR_VERSION + '.' + FL_MINOR_VERSION
  13. # Variables for 'waf dist'
  14. APPNAME = 'ntk'
  15. VERSION = PACKAGE_VERSION
  16. # Mandatory variables
  17. top = '.'
  18. out = 'build'
  19. children = [ 'fluid', 'test' ]
  20. #children = []
  21. def options(opt):
  22. opt.load('compiler_c')
  23. opt.load('compiler_cxx')
  24. opt.load('gnu_dirs')
  25. opt.add_option('--enable-debug', action='store_true', default=False, dest='debug',
  26. help='Build for debugging')
  27. opt.add_option('--enable-gl', action='store_true', default=False, dest='USE_GL',
  28. help='Build with OpenGL extension library')
  29. opt.add_option('--enable-test', action='store_true', default=False, dest='ENABLE_TEST',
  30. help='Build test programs')
  31. opt.add_option('--use-system-jpeg', action='store_true', default=False, dest='USE_SYSTEM_JPEG',
  32. help='Force use of system jpeg, otherwise statically link with bundled libjpeg')
  33. opt.add_option('--use-system-png', action='store_true', default=False, dest='USE_SYSTEM_PNG',
  34. help='Force use of system png, otherwise statically link with bundled libpng')
  35. opt.add_option('--use-system-zlib', action='store_true', default=False, dest='USE_SYSTEM_ZLIB',
  36. help='Force use of system zlib, otherwise statically link with bundled zlib')
  37. def configure(conf):
  38. conf.load('compiler_c')
  39. conf.load('compiler_cxx')
  40. conf.load('gnu_dirs')
  41. # conf.load('ntk_fluid')
  42. conf.line_just = 52
  43. conf.env.append_value('CFLAGS',['-Wall'])
  44. # conf.env.append_value('CXXFLAGS',['-Wall','-fno-exceptions', '-fno-rtti'])
  45. conf.env.append_value('CXXFLAGS',['-Wall'])
  46. conf.check_cfg(package='x11', uselib_store='X11', args="--cflags --libs",
  47. mandatory=True)
  48. conf.check_cfg(package='xft', uselib_store='XFT', args="--cflags --libs",
  49. mandatory=True)
  50. conf.check_cfg(package='cairo', uselib_store='CAIRO', args="--cflags --libs",
  51. atleast_version='1.9.0', mandatory=True)
  52. conf.check_cfg(package='gl', uselib_store='GL', args="--cflags --libs",
  53. mandatory=False)
  54. conf.check(header_name='unistd.h', define_name='HAVE_UNISTD_H', mandatory=False)
  55. conf.check(header_name='pthread.h', define_name='HAVE_PTHREAD_H', mandatory=False)
  56. conf.check(header_name='dirent.h', define_name='HAVE_DIRENT_H', mandatory=False)
  57. conf.check(header_name='string.h', define_name='HAVE_STRINGS_H', mandatory=False)
  58. conf.check(header_name='locale.h', define_name='HAVE_LOCALE_H', mandatory=False)
  59. conf.check(header_name='sys/select.h', define_name='HAVE_SYS_SELECT_H', mandatory=False)
  60. conf.check(header_name='dlfcn.h', define_name='HAVE_DLFCN_H', mandatory=False)
  61. conf.check(header_name='sys/stdtypes.h', define_name='HAVE_SYS_STDTYPES_H', mandatory=False)
  62. conf.check(header_name='pthread.h', define_name='HAVE_PTHREAD', mandatory=True)
  63. conf.check(header_name='png.h', define_name='HAVE_PNG_H', mandatory=False)
  64. # conf.check(function_name='jpeg_CreateCompress', header_name='jpeglib.h', use='jpeg', define_name='HAVE_LIBJPEG', mandatory=False)
  65. if Options.options.ENABLE_TEST:
  66. conf.env.ENABLE_TEST = True
  67. conf.env.BUNDLED = []
  68. conf.check(function_name='strtoll', header_name="stdlib.h", define_name='HAVE_STRTOLL', mandatory=False)
  69. conf.check(function_name='scandir', header_name="dirent.h", define_name='HAVE_SCANDIR', mandatory=False)
  70. if Options.options.USE_SYSTEM_JPEG:
  71. if conf.check(lib='jpeg', uselib_store='LIBJPEG', mandatory=False ):
  72. conf.env.append_value( 'USE_SYSTEM_JPEG', '1' )
  73. if not conf.env.USE_SYSTEM_JPEG:
  74. # it's fine, we'll use the bundled lib
  75. print 'Using bundled libjpeg'
  76. conf.env.BUNDLED.append( 'jpeg' )
  77. conf.define( 'HAVE_LIBJPEG', 1 )
  78. if Options.options.USE_SYSTEM_PNG:
  79. if conf.check_cfg(package='libpng', uselib_store='LIBPNG', args="--cflags --libs",
  80. mandatory=False):
  81. conf.env.append_value( 'USE_SYSTEM_PNG', '1' )
  82. if not conf.env.USE_SYSTEM_PNG:
  83. # it's fine, we'll use the bundled lib
  84. print 'Using bundled libpng'
  85. conf.env.BUNDLED.append( 'png' )
  86. conf.define( 'HAVE_LIBPNG', 1 )
  87. if Options.options.USE_SYSTEM_ZLIB:
  88. if conf.check_cfg(package='zlib', uselib_store='LIBZ', args="--cflags --libs",
  89. mandatory=False):
  90. conf.env.append_value( 'USE_SYSTEM_ZLIB', '1' )
  91. if not conf.env.USE_SYSTEM_ZLIB:
  92. # it's fine, we'll use the bundled lib
  93. print 'Using bundled libpng'
  94. conf.env.BUNDLED.append( 'zlib' )
  95. conf.define( 'HAVE_LIBZ', 1 )
  96. if Options.options.USE_GL:
  97. conf.env.append_value( 'USE_GL', '1' )
  98. # FIXME: HAVE_LONG_LONG
  99. optimization_flags = [
  100. "-O3",
  101. "-fomit-frame-pointer",
  102. "-ffast-math",
  103. # "-fstrength-reduce",
  104. "-pipe"
  105. ]
  106. debug_flags = [
  107. '-g',
  108. '-O0' ]
  109. if Options.options.debug:
  110. print 'Building for debugging'
  111. conf.env.append_value('CFLAGS', debug_flags )
  112. conf.env.append_value('CXXFLAGS', debug_flags )
  113. else:
  114. print 'Building for performance'
  115. conf.env.append_value('CFLAGS', optimization_flags )
  116. conf.env.append_value('CXXFLAGS', optimization_flags )
  117. conf.define( 'NDEBUG', 1 )
  118. if sys.platform == 'darwin':
  119. conf.define( '__APPLE__', 1 )
  120. if sys.platform == 'win32':
  121. conf.define( 'WIN32', 1 )
  122. else:
  123. conf.define( 'HAVE_X11', 1 )
  124. conf.define( 'USE_X11', 1 )
  125. conf.define( 'USE_POLL', 1 )
  126. conf.define( 'USE_XFT', 1 )
  127. conf.define( 'BORDER_WIDTH', 1 )
  128. conf.define( 'HAVE_SCANDIR_POSIX', 1 )
  129. conf.define( 'HAVE_STRCASECMP', 1 )
  130. conf.define( 'HAVE_VSNPRINTF', 1 )
  131. conf.define( 'HAVE_SNPRINTF', 1 )
  132. conf.define( 'HAVE_STRTOLL', 1 )
  133. conf.define( 'HAVE_DLSYM', 1 )
  134. # print conf.env
  135. # FIXME: use tests for these
  136. conf.define( 'U16', 'unsigned short', quote=False )
  137. conf.define( 'U32', 'unsined', quote=False )
  138. conf.define( 'U64', 'unsigned long', quote=False )
  139. conf.define( 'WORDS_BIGENDIAN', 0 )
  140. conf.define('VERSION', PACKAGE_VERSION)
  141. conf.define('FLTK_DOCDIR', conf.env.DOCDIR );
  142. # conf.define('SYSTEM_PATH', string.join( [ conf.env.DATADIR, APPNAME ], '/' ) )
  143. # conf.define('DOCUMENT_PATH', conf.env.DOCDIR )
  144. # conf.define('PIXMAP_PATH', string.join( [ conf.env.DATADIR, APPNAME ], '/' ) )
  145. conf.write_config_header('config.h', remove=False)
  146. for i in conf.env.BUNDLED:
  147. conf.recurse(i)
  148. for i in children:
  149. conf.recurse(i)
  150. print('')
  151. def build(bld):
  152. # libs = 'LILV SUIL JACK SERD SRATOM LV2'
  153. libs = ''
  154. lib_source = '''
  155. src/Fl_Cairo_Graphics_Driver.cxx
  156. src/Fl.cxx
  157. src/Fl_Adjuster.cxx
  158. src/Fl_Bitmap.cxx
  159. src/Fl_Browser.cxx
  160. src/Fl_Browser_.cxx
  161. src/Fl_Browser_load.cxx
  162. src/Fl_Box.cxx
  163. src/Fl_Button.cxx
  164. src/Fl_Chart.cxx
  165. src/Fl_Check_Browser.cxx
  166. src/Fl_Check_Button.cxx
  167. src/Fl_Choice.cxx
  168. src/Fl_Color_Chooser.cxx
  169. src/Fl_Counter.cxx
  170. src/Fl_Dial.cxx
  171. src/Fl_Dial_Base.cxx
  172. src/Fl_Device.cxx
  173. src/Fl_Double_Window.cxx
  174. src/Fl_File_Browser.cxx
  175. src/Fl_File_Chooser.cxx
  176. src/Fl_File_Chooser2.cxx
  177. src/Fl_File_Icon.cxx
  178. src/Fl_File_Input.cxx
  179. src/Fl_Group.cxx
  180. src/Fl_Help_View.cxx
  181. src/Fl_Image.cxx
  182. src/Fl_Input.cxx
  183. src/Fl_Input_.cxx
  184. src/Fl_Light_Button.cxx
  185. src/Fl_Menu.cxx
  186. src/Fl_Menu_.cxx
  187. src/Fl_Menu_Bar.cxx
  188. src/Fl_Sys_Menu_Bar.cxx
  189. src/Fl_Menu_Button.cxx
  190. src/Fl_Menu_Window.cxx
  191. src/Fl_Menu_add.cxx
  192. src/Fl_Menu_global.cxx
  193. src/Fl_Multi_Label.cxx
  194. src/Fl_Native_File_Chooser.cxx
  195. src/Fl_Overlay_Window.cxx
  196. src/Fl_Pack.cxx
  197. src/Fl_Paged_Device.cxx
  198. src/Fl_Panzoomer.cxx
  199. src/Fl_Pixmap.cxx
  200. src/Fl_Positioner.cxx
  201. src/Fl_Preferences.cxx
  202. src/Fl_Printer.cxx
  203. src/Fl_Progress.cxx
  204. src/Fl_Repeat_Button.cxx
  205. src/Fl_Return_Button.cxx
  206. src/Fl_Round_Button.cxx
  207. src/Fl_Scroll.cxx
  208. src/Fl_Scrollbar.cxx
  209. src/Fl_Shared_Image.cxx
  210. src/Fl_Single_Window.cxx
  211. src/Fl_Slider.cxx
  212. src/Fl_Table.cxx
  213. src/Fl_Table_Row.cxx
  214. src/Fl_Tabs.cxx
  215. src/Fl_Text_Buffer.cxx
  216. src/Fl_Text_Display.cxx
  217. src/Fl_Text_Editor.cxx
  218. src/Fl_Tile.cxx
  219. src/Fl_Tiled_Image.cxx
  220. src/Fl_Tree.cxx
  221. src/Fl_Tree_Item.cxx
  222. src/Fl_Tree_Item_Array.cxx
  223. src/Fl_Tree_Prefs.cxx
  224. src/Fl_Tooltip.cxx
  225. src/Fl_Valuator.cxx
  226. src/Fl_Value_Input.cxx
  227. src/Fl_Value_Output.cxx
  228. src/Fl_Value_Slider.cxx
  229. src/Fl_Widget.cxx
  230. src/Fl_Window.cxx
  231. src/Fl_Window_fullscreen.cxx
  232. src/Fl_Window_hotspot.cxx
  233. src/Fl_Window_iconize.cxx
  234. src/Fl_Wizard.cxx
  235. src/Fl_XBM_Image.cxx
  236. src/Fl_XPM_Image.cxx
  237. src/Fl_abort.cxx
  238. src/Fl_add_idle.cxx
  239. src/Fl_arg.cxx
  240. src/Fl_compose.cxx
  241. src/Fl_display.cxx
  242. src/Fl_get_key.cxx
  243. src/Fl_get_system_colors.cxx
  244. src/Fl_grab.cxx
  245. src/Fl_lock.cxx
  246. src/Fl_own_colormap.cxx
  247. src/Fl_visual.cxx
  248. src/Fl_x.cxx
  249. src/filename_absolute.cxx
  250. src/filename_expand.cxx
  251. src/filename_ext.cxx
  252. src/filename_isdir.cxx
  253. src/filename_list.cxx
  254. src/filename_match.cxx
  255. src/filename_setext.cxx
  256. src/fl_arc.cxx
  257. src/fl_arci.cxx
  258. src/fl_ask.cxx
  259. src/fl_boxtype.cxx
  260. src/fl_color.cxx
  261. src/fl_cursor.cxx
  262. src/fl_curve.cxx
  263. src/fl_diamond_box.cxx
  264. src/fl_dnd.cxx
  265. src/fl_draw.cxx
  266. src/Fl_Cairo.cxx
  267. src/fl_draw_image.cxx
  268. src/fl_draw_pixmap.cxx
  269. src/fl_encoding_latin1.cxx
  270. src/fl_encoding_mac_roman.cxx
  271. src/fl_engraved_label.cxx
  272. src/fl_file_dir.cxx
  273. src/fl_font.cxx
  274. src/fl_labeltype.cxx
  275. src/fl_line_style.cxx
  276. src/fl_open_uri.cxx
  277. src/fl_oval_box.cxx
  278. src/fl_overlay.cxx
  279. src/fl_read_image.cxx
  280. src/fl_rect.cxx
  281. src/fl_round_box.cxx
  282. src/fl_rounded_box.cxx
  283. src/fl_set_font.cxx
  284. src/fl_set_fonts.cxx
  285. src/fl_scroll_area.cxx
  286. src/fl_shadow_box.cxx
  287. src/fl_shortcut.cxx
  288. src/fl_show_colormap.cxx
  289. src/fl_symbols.cxx
  290. src/fl_vertex.cxx
  291. src/screen_xywh.cxx
  292. src/fl_utf8.cxx
  293. src/Fl_Theme.cxx
  294. src/Fl_Theme_Chooser.cxx
  295. src/Cairo_Theme.cxx
  296. src/Gleam_Theme.cxx
  297. src/Clean_Theme.cxx
  298. src/Crystal_Theme.cxx
  299. src/themes.cxx
  300. src/ps_image.cxx
  301. src/fl_utf.c
  302. src/vsnprintf.c
  303. src/xutf8/case.c
  304. src/xutf8/is_right2left.c
  305. src/xutf8/is_spacing.c
  306. src/xutf8/keysym2Ucs.c
  307. src/xutf8/utf8Input.c
  308. src/xutf8/utf8Utils.c
  309. src/xutf8/utf8Wrap.c
  310. src/numericsort.c
  311. src/flstring.c
  312. '''
  313. # conf.define( 'FL_LIBRARY', 1 )
  314. # conf.define( 'FL_INTERNALS', 1 )
  315. bld( source = lib_source,
  316. features = 'c cxx cxxshlib',
  317. vnum = API_VERSION,
  318. target = 'ntk',
  319. cflags = [ '-fPIC' ],
  320. cxxflags = [ '-fPIC' ],
  321. defines = [ 'FL_LIBRARY=1', 'FL_INTERNALS=1' ],
  322. includes = ['.', 'src', 'FL' ],
  323. uselib = [ 'X11', 'XFT', 'CAIRO' ],
  324. install_path = '${LIBDIR}')
  325. bld( source = lib_source,
  326. vnum = API_VERSION,
  327. features = 'c cxx cxxstlib',
  328. cflags = [ '-fPIC' ],
  329. cxxflags = [ '-fPIC' ],
  330. defines = [ 'FL_LIBRARY=1', 'FL_INTERNALS=1' ],
  331. target = 'ntk',
  332. includes = ['.', 'src', 'FL' ],
  333. uselib = [ 'X11', 'XFT', 'CAIRO' ],
  334. install_path = '${LIBDIR}')
  335. lib_images_source = '''
  336. src/fl_images_core.cxx
  337. src/Fl_BMP_Image.cxx
  338. src/Fl_File_Icon2.cxx
  339. src/Fl_GIF_Image.cxx
  340. src/Fl_Help_Dialog.cxx
  341. src/Fl_JPEG_Image.cxx
  342. src/Fl_PNG_Image.cxx
  343. src/Fl_PNM_Image.cxx
  344. '''
  345. img_lib = [ 'ntk' ]
  346. img_inc = ['.', 'src', 'FL', 'src/xutf8/headers' ]
  347. if bld.env.USE_SYSTEM_JPEG:
  348. img_lib.append( 'LIBJPEG' )
  349. else:
  350. img_lib.append( 'ntk_jpeg' )
  351. img_inc.append( 'jpeg' )
  352. if bld.env.USE_SYSTEM_PNG:
  353. img_lib.append( 'LIBPNG' )
  354. else:
  355. img_lib.append( 'ntk_png' )
  356. img_inc.append( 'png' )
  357. if bld.env.USE_SYSTEM_ZLIB:
  358. img_lib.append( 'LIBZ' )
  359. else:
  360. img_lib.append( 'ntk_zlib' )
  361. img_inc.append( 'zlib' )
  362. bld( source = lib_images_source,
  363. features = 'cxx cxxshlib',
  364. vnum = API_VERSION,
  365. target = 'ntk_images',
  366. defines = [ 'FL_LIBRARY=1', 'FL_INTERNALS=1' ],
  367. cflags = [ '-fPIC' ],
  368. cxxflags = [ '-fPIC' ],
  369. uselib_local = [ 'ntk' ],
  370. use = img_lib,
  371. includes = img_inc,
  372. # uselib = [ 'X11', 'cairo' ],
  373. install_path = '${LIBDIR}')
  374. bld( source = lib_images_source,
  375. features = 'cxx cxxstlib',
  376. vnum = API_VERSION,
  377. cflags = [ '-fPIC' ],
  378. cxxflags = [ '-fPIC' ],
  379. target = 'ntk_images',
  380. defines = [ 'FL_LIBRARY=1', 'FL_INTERNALS=1' ],
  381. use = img_lib,
  382. includes = img_inc,
  383. # uselib_local = [ 'ntk' ],
  384. uselib = [ 'X11', 'cairo' ],
  385. install_path = '${LIBDIR}')
  386. lib_gl_source = '''
  387. src/Fl_Gl_Choice.cxx
  388. src/Fl_Gl_Device_Plugin.cxx
  389. src/Fl_Gl_Overlay.cxx
  390. src/Fl_Gl_Window.cxx
  391. '''
  392. if bld.env.USE_GL:
  393. print 'Using GL'
  394. bld( source = lib_gl_source,
  395. features = 'cxx cxxshlib',
  396. vnum = API_VERSION,
  397. target = 'ntk_gl',
  398. includes = ['.', 'src', 'FL', 'src/xutf8/headers' ],
  399. defines = [ 'FL_LIBRARY=1', 'FL_INTERNALS=1' ],
  400. uselib_local = [ 'ntk' ],
  401. cflags = [ '-fPIC' ],
  402. cxxflags = [ '-fPIC' ],
  403. install_path = '${LIBDIR}')
  404. bld( source = lib_gl_source,
  405. features = 'cxx cxxstlib',
  406. vnum = API_VERSION,
  407. target = 'ntk_gl',
  408. cflags = [ '-fPIC' ],
  409. cxxflags = [ '-fPIC' ],
  410. includes = ['.', 'src', 'FL', 'src/xutf8/headers' ],
  411. uselib_local = [ 'ntk' ],
  412. defines = [ 'FL_LIBRARY=1', 'FL_INTERNALS=1' ],
  413. uselib = [ 'X11', 'cairo' ],
  414. install_path = '${LIBDIR}')
  415. # bld(
  416. # source = 'ntk-config.in'
  417. # target = 'ntk-config'
  418. # dict = { 'prefix': bld.env.PREFIX,
  419. # 'exec_prefix' : bld.env.EXEC_PREFIX,
  420. # 'bindir' : bld.env.BINDIR,
  421. # 'includedir' : bld.env.INCLUDEDIR,
  422. # 'libdir' : bld.env.LIBDIR,
  423. # 'srcdir' : bld.env.SRCDIR,
  424. # 'cc' : bld.env.CC,
  425. # 'cxx' : bld.env.CXX,
  426. # }
  427. # )
  428. bld( features = 'subst',
  429. source = 'ntk.pc.in',
  430. target = 'ntk.pc',
  431. encoding = 'utf8',
  432. install_path = '${LIBDIR}/pkgconfig',
  433. VERSION = VERSION,
  434. PREFIX = bld.env.PREFIX )
  435. bld( features = 'subst',
  436. source = 'ntk_images.pc.in',
  437. target = 'ntk_images.pc',
  438. encoding = 'utf8',
  439. install_path = '${LIBDIR}/pkgconfig',
  440. VERSION = VERSION,
  441. PREFIX = bld.env.PREFIX )
  442. bld( features = 'subst',
  443. source = 'ntk_gl.pc.in',
  444. target = 'ntk_gl.pc',
  445. encoding = 'utf8',
  446. install_path = '${LIBDIR}/pkgconfig',
  447. VERSION = VERSION,
  448. PREFIX = bld.env.PREFIX )
  449. bld( features = 'subst',
  450. source = 'ntk-uninstalled.pc.in',
  451. target = 'ntk-uninstalled.pc',
  452. encoding = 'utf8',
  453. VERSION = VERSION,
  454. BUILD = os.getcwd() + '/' + out )
  455. bld( features = 'subst',
  456. source = 'ntk_images.pc.in',
  457. target = 'ntk_images-uninstalled.pc',
  458. encoding = 'utf8',
  459. VERSION = VERSION,
  460. BUILD = os.getcwd() + '/' + out )
  461. bld( features = 'subst',
  462. source = 'ntk_gl.pc.in',
  463. target = 'ntk_gl-uninstalled.pc',
  464. encoding = 'utf8',
  465. VERSION = VERSION,
  466. BUILD = os.getcwd() + '/' + out )
  467. # bld( features = 'subst',
  468. # source = 'ntk-config.in',
  469. # target = '../ntk-config',
  470. # mode = 0777,
  471. # encoding = 'utf8',
  472. # # VERSION = VERSION,
  473. # FL_MAJOR_VERSION = FL_MAJOR_VERSION,
  474. # FL_MINOR_VERSION = FL_MINOR_VERSION,
  475. # FL_PATCH_VERSION = FL_PATCH_VERSION,
  476. # preifx = bld.env.PREFIX,
  477. # exec_prefix = bld.env.EXECPREFIX,
  478. # bindir = bld.env.BINDIR,
  479. # includedir = bld.env.INCLUDEDIR,
  480. # libdir = bld.env.LIBDIR,
  481. # srcdir = os.getcwd() + '/' + out,
  482. # CC = bld.env.CC[0],
  483. # CXX = bld.env.CXX[0],
  484. # CFLAGS = string.join( bld.env.CFLAGS, ' ' ),
  485. # CXXFLAGS = string.join( bld.env.CXXFLAGS, ' ' ),
  486. # LDFLAGS = bld.env.LDFLAGS,
  487. # CAIROLIBS = '-lcairo',
  488. # install_path = '${BINDIR}' )
  489. for i in bld.env.BUNDLED:
  490. bld.recurse(i)
  491. for i in children:
  492. bld.recurse(i)
  493. # 'PREFIX': bld.env.PREFIX,
  494. # 'EXEC_PREFIX' : bld.env.EXEC_PREFIX,
  495. # 'BINDIR' : bld.env.BINDIR,
  496. # 'INCLUDEDIR' : bld.env.INCLUDEDIR,
  497. # 'LIBDIR' : bld.env.LIBDIR,
  498. # 'SRCDIR' : bld.env.SRCDIR } )
  499. start_dir = bld.path.find_dir( 'FL' )
  500. bld.install_files( bld.env.INCLUDEDIR + '/ntk/FL', start_dir.ant_glob('*.H *.h'),
  501. cwd=start_dir, relative_trick=True)
  502. # bld.install_files( string.join( [ '${DATADIR}/doc', APPNAME ], '/' ), bld.path.ant_glob( 'doc/*.html doc/*.png' ) )