#
# $Id: Makefile 13304 2009-12-19 03:14:45Z vouchcac $
#

ROOT := ../../

include $(TOP)$(ROOT)config/global.mk

LIBNAME := hbxbp

PRG_SOURCES := \
   xbpgeneric.prg \
   xbpdialog.prg \
   xbpwindow.prg \
   xbpparthandler.prg \
   xbpmenubar.prg \
   xbptoolbar.prg \
   xbppushbutton.prg \
   xbpdataref.prg \
   xbpcheckbox.prg \
   xbp3state.prg \
   xbpradiobutton.prg \
   xbptabpage.prg \
   xbplistbox.prg \
   xbpstatusbar.prg \
   xbpscrollbar.prg \
   xbpsle.prg \
   xbpmle.prg \
   xbpspinbutton.prg \
   xbpcombobox.prg \
   xbptreeview.prg \
   xbpstyle.prg \
   xbpappevent.prg \
   xbpstatic.prg \
   xbphtmlviewer.prg \
   xbpfiledialog.prg \
   xbpfontdialog.prg \
   xbpbitmap.prg \
   xbprtf.prg \
   xbppresspace.prg \
   xbpprinter.prg \
   xbpprintdialog.prg \
   xbpbrowse.prg \
   xbpqtuiloader.prg \

PRG_HEADERS := \
   xbp.ch \
   xbpdev.ch \
   appevent.ch \
   gra.ch \

# Try to be in sync with hbqt, but not too hard, since this
# lib doesn't need QT external component directly.
ifeq ($(filter $(HB_PLATFORM),dos os2),)
   ifeq ($(filter $(HB_COMPILER),mingw64 watcom bcc pocc pocc64 poccarm),)
      ifneq ($(HB_WITH_QT),no)

         HB_INC_DEPEND := -I$(TOP)$(ROOT)contrib/hbqt

         include $(TOP)$(ROOT)config/header.mk
         include $(TOP)$(ROOT)config/lib.mk

      else
         HB_SKIP_REASON := component explicitly disabled
         include $(TOP)$(ROOT)config/none.mk
      endif
   else
      HB_SKIP_REASON := compiler not supported
      include $(TOP)$(ROOT)config/none.mk
   endif
else
   HB_SKIP_REASON := platform not supported
   include $(TOP)$(ROOT)config/none.mk
endif
