#=============================================================================
#  MusE
#  Linux Music Editor
#  $Id:$
#
#  Copyright (C) 2002-2008 by Werner Schweer and others
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License version 2.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#=============================================================================

set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DQT_NO_DEBUG")
set(CMAKE_CXX_FLAGS_DEBUG   "-DQT_DEBUG")

if (STATIC_SCRIPT_BINDINGS)
      set(CMAKE_CXX_FLAGS "-g -Wall -Wextra -Winvalid-pch -DQT_STATICPLUGIN")
      set(LIBTYPE "STATIC")
else (STATIC_SCRIPT_BINDINGS)
      set(CMAKE_CXX_FLAGS "-g -Wall -Wextra -Winvalid-pch")
      set(LIBTYPE "SHARED")
endif (STATIC_SCRIPT_BINDINGS)

if (GCC_VISIBILITY)
      set(CMAKE_CXX_FLAGS, "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
endif (GCC_VISIBILITY)

include_directories(${QT_INCLUDES})

add_library (
      qtscript_gui ${LIBTYPE}
      main.cpp
      qtscript_QAbstractButton.cpp
      qtscript_QAbstractGraphicsShapeItem.cpp
      qtscript_QAbstractItemDelegate.cpp
      qtscript_QAbstractItemView.cpp
      qtscript_QAbstractPageSetupDialog.cpp
      qtscript_QAbstractPrintDialog.cpp
      qtscript_QAbstractScrollArea.cpp
      qtscript_QAbstractSlider.cpp
      qtscript_QAbstractSpinBox.cpp
      qtscript_QAccessible.cpp
      qtscript_QAccessible2Interface.cpp
      qtscript_QAccessibleBridge.cpp
      qtscript_QAccessibleEvent.cpp
      qtscript_QAccessibleInterface.cpp
      qtscript_QAccessibleInterfaceEx.cpp
      qtscript_QAccessibleObject.cpp
      qtscript_QAccessibleObjectEx.cpp
      qtscript_QAccessiblePlugin.cpp
      qtscript_QAccessibleTableInterface.cpp
      qtscript_QAccessibleWidget.cpp
      qtscript_QAccessibleWidgetEx.cpp
      qtscript_QAction.cpp
      qtscript_QActionEvent.cpp
      qtscript_QActionGroup.cpp
      qtscript_QApplication.cpp
      qtscript_QBitmap.cpp
      qtscript_QBoxLayout.cpp
      qtscript_QBrush.cpp
      qtscript_QButtonGroup.cpp
      qtscript_QCDEStyle.cpp
      qtscript_QCalendarWidget.cpp
      qtscript_QCheckBox.cpp
      qtscript_QCleanlooksStyle.cpp
      qtscript_QClipboard.cpp
      qtscript_QClipboardEvent.cpp
      qtscript_QCloseEvent.cpp
      qtscript_QColor.cpp
      qtscript_QColorDialog.cpp
      qtscript_QColumnView.cpp
      qtscript_QComboBox.cpp
      qtscript_QCommandLinkButton.cpp
      qtscript_QCommonStyle.cpp
      qtscript_QCompleter.cpp
      qtscript_QConicalGradient.cpp
      qtscript_QContextMenuEvent.cpp
      qtscript_QCursor.cpp
      qtscript_QDataWidgetMapper.cpp
      qtscript_QDateEdit.cpp
      qtscript_QDateTimeEdit.cpp
      qtscript_QDesktopServices.cpp
      qtscript_QDesktopWidget.cpp
      qtscript_QDial.cpp
      qtscript_QDialog.cpp
      qtscript_QDialogButtonBox.cpp
      qtscript_QDockWidget.cpp
      qtscript_QDoubleSpinBox.cpp
      qtscript_QDoubleValidator.cpp
      qtscript_QDragEnterEvent.cpp
      qtscript_QDragLeaveEvent.cpp
      qtscript_QDragMoveEvent.cpp
      qtscript_QDragResponseEvent.cpp
      qtscript_QErrorMessage.cpp
      qtscript_QFileDialog.cpp
      qtscript_QFileIconProvider.cpp
      qtscript_QFileOpenEvent.cpp
      qtscript_QFocusEvent.cpp
      qtscript_QFocusFrame.cpp
      qtscript_QFont.cpp
      qtscript_QFontComboBox.cpp
      qtscript_QFontDialog.cpp
      qtscript_QFontInfo.cpp
      qtscript_QFontMetrics.cpp
      qtscript_QFontMetricsF.cpp
      qtscript_QFormLayout.cpp
      qtscript_QFrame.cpp
      qtscript_QGradient.cpp
      qtscript_QGraphicsEllipseItem.cpp
      qtscript_QGraphicsGridLayout.cpp
      qtscript_QGraphicsItem.cpp
      qtscript_QGraphicsItemAnimation.cpp
      qtscript_QGraphicsItemGroup.cpp
      qtscript_QGraphicsLayout.cpp
      qtscript_QGraphicsLayoutItem.cpp
      qtscript_QGraphicsLineItem.cpp
      qtscript_QGraphicsLinearLayout.cpp
      qtscript_QGraphicsPathItem.cpp
      qtscript_QGraphicsPixmapItem.cpp
      qtscript_QGraphicsPolygonItem.cpp
      qtscript_QGraphicsProxyWidget.cpp
      qtscript_QGraphicsRectItem.cpp
      qtscript_QGraphicsScene.cpp
      qtscript_QGraphicsSceneContextMenuEvent.cpp
      qtscript_QGraphicsSceneEvent.cpp
      qtscript_QGraphicsSceneHelpEvent.cpp
      qtscript_QGraphicsSceneHoverEvent.cpp
      qtscript_QGraphicsSceneMouseEvent.cpp
      qtscript_QGraphicsSceneMoveEvent.cpp
      qtscript_QGraphicsSceneResizeEvent.cpp
      qtscript_QGraphicsSceneWheelEvent.cpp
      qtscript_QGraphicsSimpleTextItem.cpp
      qtscript_QGraphicsTextItem.cpp
      qtscript_QGraphicsView.cpp
      qtscript_QGraphicsWidget.cpp
      qtscript_QGridLayout.cpp
      qtscript_QGroupBox.cpp
      qtscript_QHBoxLayout.cpp
      qtscript_QHeaderView.cpp
      qtscript_QHelpEvent.cpp
      qtscript_QHideEvent.cpp
      qtscript_QHoverEvent.cpp
      qtscript_QIcon.cpp
      qtscript_QIconDragEvent.cpp
      qtscript_QIconEngine.cpp
      qtscript_QIconEnginePluginV2.cpp
      qtscript_QImage.cpp
      qtscript_QImageIOHandler.cpp
      qtscript_QImageIOPlugin.cpp
      qtscript_QImageReader.cpp
      qtscript_QImageWriter.cpp
      qtscript_QInputContext.cpp
      qtscript_QInputContextFactory.cpp
      qtscript_QInputContextPlugin.cpp
      qtscript_QInputDialog.cpp
      qtscript_QInputEvent.cpp
      qtscript_QIntValidator.cpp
      qtscript_QItemDelegate.cpp
      qtscript_QItemEditorCreatorBase.cpp
      qtscript_QItemEditorFactory.cpp
      qtscript_QItemSelection.cpp
      qtscript_QKeyEvent.cpp
      qtscript_QKeySequence.cpp
      qtscript_QLCDNumber.cpp
      qtscript_QLabel.cpp
      qtscript_QLayout.cpp
      qtscript_QLayoutItem.cpp
      qtscript_QLine.cpp
      qtscript_QLineEdit.cpp
      qtscript_QLineF.cpp
      qtscript_QLinearGradient.cpp
      qtscript_QListView.cpp
      qtscript_QListWidget.cpp
      qtscript_QListWidgetItem.cpp
      qtscript_QMainWindow.cpp
      qtscript_QMatrix.cpp
      qtscript_QMdiArea.cpp
      qtscript_QMdiSubWindow.cpp
      qtscript_QMenu.cpp
      qtscript_QMenuBar.cpp
      qtscript_QMessageBox.cpp
      qtscript_QMotifStyle.cpp
      qtscript_QMouseEvent.cpp
      qtscript_QMoveEvent.cpp
      qtscript_QMovie.cpp
      qtscript_QPageSetupDialog.cpp
      qtscript_QPaintDevice.cpp
      qtscript_QPaintEngine.cpp
      qtscript_QPaintEngineState.cpp
      qtscript_QPaintEvent.cpp
      qtscript_QPainter.cpp
      qtscript_QPainterPath.cpp
      qtscript_QPainterPathStroker.cpp
      qtscript_QPalette.cpp
      qtscript_QPen.cpp
      qtscript_QPicture.cpp
      qtscript_QPictureFormatPlugin.cpp
      qtscript_QPictureIO.cpp
      qtscript_QPixmap.cpp
      qtscript_QPixmapCache.cpp
      qtscript_QPlainTextDocumentLayout.cpp
      qtscript_QPlainTextEdit.cpp
      qtscript_QPlastiqueStyle.cpp
      qtscript_QPolygon.cpp
      qtscript_QPolygonF.cpp
      qtscript_QPrintDialog.cpp
      qtscript_QPrintEngine.cpp
      qtscript_QPrintPreviewDialog.cpp
      qtscript_QPrintPreviewWidget.cpp
      qtscript_QPrinter.cpp
      qtscript_QProgressBar.cpp
      qtscript_QProgressDialog.cpp
      qtscript_QPushButton.cpp
      qtscript_QRadialGradient.cpp
      qtscript_QRadioButton.cpp
      qtscript_QReadWriteLock.cpp
      qtscript_QRegExpValidator.cpp
      qtscript_QRegion.cpp
      qtscript_QResizeEvent.cpp
      qtscript_QRubberBand.cpp
      qtscript_QScrollArea.cpp
      qtscript_QScrollBar.cpp
      qtscript_QSessionManager.cpp
      qtscript_QShortcut.cpp
      qtscript_QShortcutEvent.cpp
      qtscript_QShowEvent.cpp
      qtscript_QSizeGrip.cpp
      qtscript_QSizePolicy.cpp
      qtscript_QSlider.cpp
      qtscript_QSound.cpp
      qtscript_QSpacerItem.cpp
      qtscript_QSpinBox.cpp
      qtscript_QSplashScreen.cpp
      qtscript_QSplitter.cpp
      qtscript_QSplitterHandle.cpp
      qtscript_QStackedLayout.cpp
      qtscript_QStackedWidget.cpp
      qtscript_QStandardItem.cpp
      qtscript_QStandardItemModel.cpp
      qtscript_QStatusBar.cpp
      qtscript_QStatusTipEvent.cpp
      qtscript_QStringListModel.cpp
      qtscript_QStyle.cpp
      qtscript_QStyleFactory.cpp
      qtscript_QStyleHintReturn.cpp
      qtscript_QStyleHintReturnMask.cpp
      qtscript_QStyleHintReturnVariant.cpp
      qtscript_QStyleOption.cpp
      qtscript_QStyleOptionButton.cpp
      qtscript_QStyleOptionComboBox.cpp
      qtscript_QStyleOptionComplex.cpp
      qtscript_QStyleOptionDockWidget.cpp
      qtscript_QStyleOptionDockWidgetV2.cpp
      qtscript_QStyleOptionFocusRect.cpp
      qtscript_QStyleOptionFrame.cpp
      qtscript_QStyleOptionFrameV2.cpp
      qtscript_QStyleOptionGraphicsItem.cpp
      qtscript_QStyleOptionGroupBox.cpp
      qtscript_QStyleOptionHeader.cpp
      qtscript_QStyleOptionMenuItem.cpp
      qtscript_QStyleOptionProgressBar.cpp
      qtscript_QStyleOptionProgressBarV2.cpp
      qtscript_QStyleOptionRubberBand.cpp
      qtscript_QStyleOptionSizeGrip.cpp
      qtscript_QStyleOptionSlider.cpp
      qtscript_QStyleOptionSpinBox.cpp
      qtscript_QStyleOptionTab.cpp
      qtscript_QStyleOptionTabBarBase.cpp
      qtscript_QStyleOptionTabV2.cpp
      qtscript_QStyleOptionTabWidgetFrame.cpp
      qtscript_QStyleOptionTitleBar.cpp
      qtscript_QStyleOptionToolBar.cpp
      qtscript_QStyleOptionToolBox.cpp
      qtscript_QStyleOptionToolBoxV2.cpp
      qtscript_QStyleOptionToolButton.cpp
      qtscript_QStyleOptionViewItem.cpp
      qtscript_QStyleOptionViewItemV2.cpp
      qtscript_QStyleOptionViewItemV3.cpp
      qtscript_QStyleOptionViewItemV4.cpp
      qtscript_QStylePainter.cpp
      qtscript_QStylePlugin.cpp
      qtscript_QStyledItemDelegate.cpp
      qtscript_QSyntaxHighlighter.cpp
      qtscript_QSystemTrayIcon.cpp
      qtscript_QTabBar.cpp
      qtscript_QTabWidget.cpp
      qtscript_QTableView.cpp
      qtscript_QTableWidget.cpp
      qtscript_QTableWidgetItem.cpp
      qtscript_QTableWidgetSelectionRange.cpp
      qtscript_QTabletEvent.cpp
      qtscript_QTextBlock.cpp
      qtscript_QTextBlockFormat.cpp
      qtscript_QTextBlockGroup.cpp
      qtscript_QTextBlockUserData.cpp
      qtscript_QTextBrowser.cpp
      qtscript_QTextCharFormat.cpp
      qtscript_QTextCursor.cpp
      qtscript_QTextDocument.cpp
      qtscript_QTextDocumentFragment.cpp
      qtscript_QTextEdit.cpp
      qtscript_QTextFormat.cpp
      qtscript_QTextFragment.cpp
      qtscript_QTextFrame.cpp
      qtscript_QTextFrameFormat.cpp
      qtscript_QTextImageFormat.cpp
      qtscript_QTextInlineObject.cpp
      qtscript_QTextItem.cpp
      qtscript_QTextLayout.cpp
      qtscript_QTextLength.cpp
      qtscript_QTextLine.cpp
      qtscript_QTextList.cpp
      qtscript_QTextListFormat.cpp
      qtscript_QTextObject.cpp
      qtscript_QTextObjectInterface.cpp
      qtscript_QTextTable.cpp
      qtscript_QTextTableCell.cpp
      qtscript_QTextTableCellFormat.cpp
      qtscript_QTextTableFormat.cpp
      qtscript_QTimeEdit.cpp
      qtscript_QToolBar.cpp
      qtscript_QToolBarChangeEvent.cpp
      qtscript_QToolBox.cpp
      qtscript_QToolButton.cpp
      qtscript_QToolTip.cpp
      qtscript_QTransform.cpp
      qtscript_QTreeView.cpp
      qtscript_QTreeWidget.cpp
      qtscript_QTreeWidgetItem.cpp
      qtscript_QUndoCommand.cpp
      qtscript_QUndoGroup.cpp
      qtscript_QUndoStack.cpp
      qtscript_QUndoView.cpp
      qtscript_QVBoxLayout.cpp
      qtscript_QValidator.cpp
      qtscript_QWhatsThis.cpp
      qtscript_QWhatsThisClickedEvent.cpp
      qtscript_QWheelEvent.cpp
      qtscript_QWidget.cpp
      qtscript_QWidgetAction.cpp
      qtscript_QWidgetItem.cpp
      qtscript_QWindowStateChangeEvent.cpp
      qtscript_QWindowsStyle.cpp
      qtscript_QWizard.cpp
      qtscript_QWizardPage.cpp
      qtscript_QWorkspace.cpp
      qtscriptshell_QAbstractButton.cpp
      qtscriptshell_QAbstractGraphicsShapeItem.cpp
      qtscriptshell_QAbstractItemDelegate.cpp
      qtscriptshell_QAbstractItemView.cpp
      qtscriptshell_QAbstractPageSetupDialog.cpp
      qtscriptshell_QAbstractPrintDialog.cpp
      qtscriptshell_QAbstractScrollArea.cpp
      qtscriptshell_QAbstractSlider.cpp
      qtscriptshell_QAbstractSpinBox.cpp
      qtscriptshell_QAccessible.cpp
      qtscriptshell_QAccessible2Interface.cpp
      qtscriptshell_QAccessibleBridge.cpp
      qtscriptshell_QAccessibleInterface.cpp
      qtscriptshell_QAccessibleInterfaceEx.cpp
      qtscriptshell_QAccessibleObject.cpp
      qtscriptshell_QAccessibleObjectEx.cpp
      qtscriptshell_QAccessiblePlugin.cpp
      qtscriptshell_QAccessibleTableInterface.cpp
      qtscriptshell_QAccessibleWidget.cpp
      qtscriptshell_QAccessibleWidgetEx.cpp
      qtscriptshell_QAction.cpp
      qtscriptshell_QActionGroup.cpp
      qtscriptshell_QApplication.cpp
      qtscriptshell_QBitmap.cpp
      qtscriptshell_QBoxLayout.cpp
      qtscriptshell_QButtonGroup.cpp
      qtscriptshell_QCDEStyle.cpp
      qtscriptshell_QCalendarWidget.cpp
      qtscriptshell_QCheckBox.cpp
      qtscriptshell_QCleanlooksStyle.cpp
      qtscriptshell_QColumnView.cpp
      qtscriptshell_QComboBox.cpp
      qtscriptshell_QCommandLinkButton.cpp
      qtscriptshell_QCommonStyle.cpp
      qtscriptshell_QCompleter.cpp
      qtscriptshell_QContextMenuEvent.cpp
      qtscriptshell_QDataWidgetMapper.cpp
      qtscriptshell_QDateEdit.cpp
      qtscriptshell_QDateTimeEdit.cpp
      qtscriptshell_QDesktopServices.cpp
      qtscriptshell_QDesktopWidget.cpp
      qtscriptshell_QDial.cpp
      qtscriptshell_QDialog.cpp
      qtscriptshell_QDialogButtonBox.cpp
      qtscriptshell_QDockWidget.cpp
      qtscriptshell_QDoubleSpinBox.cpp
      qtscriptshell_QDoubleValidator.cpp
      qtscriptshell_QDragMoveEvent.cpp
      qtscriptshell_QDragResponseEvent.cpp
      qtscriptshell_QErrorMessage.cpp
      qtscriptshell_QFileDialog.cpp
      qtscriptshell_QFileIconProvider.cpp
      qtscriptshell_QFocusFrame.cpp
      qtscriptshell_QFontComboBox.cpp
      qtscriptshell_QFormLayout.cpp
      qtscriptshell_QFrame.cpp
      qtscriptshell_QGraphicsEllipseItem.cpp
      qtscriptshell_QGraphicsGridLayout.cpp
      qtscriptshell_QGraphicsItem.cpp
      qtscriptshell_QGraphicsItemAnimation.cpp
      qtscriptshell_QGraphicsItemGroup.cpp
      qtscriptshell_QGraphicsLayout.cpp
      qtscriptshell_QGraphicsLayoutItem.cpp
      qtscriptshell_QGraphicsLineItem.cpp
      qtscriptshell_QGraphicsLinearLayout.cpp
      qtscriptshell_QGraphicsPathItem.cpp
      qtscriptshell_QGraphicsPixmapItem.cpp
      qtscriptshell_QGraphicsPolygonItem.cpp
      qtscriptshell_QGraphicsProxyWidget.cpp
      qtscriptshell_QGraphicsRectItem.cpp
      qtscriptshell_QGraphicsScene.cpp
      qtscriptshell_QGraphicsSimpleTextItem.cpp
      qtscriptshell_QGraphicsTextItem.cpp
      qtscriptshell_QGraphicsView.cpp
      qtscriptshell_QGraphicsWidget.cpp
      qtscriptshell_QGridLayout.cpp
      qtscriptshell_QGroupBox.cpp
      qtscriptshell_QHBoxLayout.cpp
      qtscriptshell_QHeaderView.cpp
      qtscriptshell_QHoverEvent.cpp
      qtscriptshell_QIconEngine.cpp
      qtscriptshell_QIconEnginePluginV2.cpp
      qtscriptshell_QImage.cpp
      qtscriptshell_QImageIOHandler.cpp
      qtscriptshell_QImageIOPlugin.cpp
      qtscriptshell_QInputContext.cpp
      qtscriptshell_QInputContextFactory.cpp
      qtscriptshell_QInputContextPlugin.cpp
      qtscriptshell_QInputEvent.cpp
      qtscriptshell_QIntValidator.cpp
      qtscriptshell_QItemDelegate.cpp
      qtscriptshell_QItemEditorCreatorBase.cpp
      qtscriptshell_QItemEditorFactory.cpp
      qtscriptshell_QKeyEvent.cpp
      qtscriptshell_QLCDNumber.cpp
      qtscriptshell_QLabel.cpp
      qtscriptshell_QLayout.cpp
      qtscriptshell_QLayoutItem.cpp
      qtscriptshell_QLineEdit.cpp
      qtscriptshell_QListView.cpp
      qtscriptshell_QListWidget.cpp
      qtscriptshell_QListWidgetItem.cpp
      qtscriptshell_QMainWindow.cpp
      qtscriptshell_QMdiArea.cpp
      qtscriptshell_QMdiSubWindow.cpp
      qtscriptshell_QMenu.cpp
      qtscriptshell_QMenuBar.cpp
      qtscriptshell_QMessageBox.cpp
      qtscriptshell_QMotifStyle.cpp
      qtscriptshell_QMouseEvent.cpp
      qtscriptshell_QMoveEvent.cpp
      qtscriptshell_QMovie.cpp
      qtscriptshell_QPageSetupDialog.cpp
      qtscriptshell_QPaintDevice.cpp
      qtscriptshell_QPaintEngine.cpp
      qtscriptshell_QPaintEngineState.cpp
      qtscriptshell_QPaintEvent.cpp
      qtscriptshell_QPicture.cpp
      qtscriptshell_QPictureFormatPlugin.cpp
      qtscriptshell_QPixmap.cpp
      qtscriptshell_QPixmapCache.cpp
      qtscriptshell_QPlainTextDocumentLayout.cpp
      qtscriptshell_QPlainTextEdit.cpp
      qtscriptshell_QPlastiqueStyle.cpp
      qtscriptshell_QPrintDialog.cpp
      qtscriptshell_QPrintEngine.cpp
      qtscriptshell_QPrintPreviewDialog.cpp
      qtscriptshell_QPrintPreviewWidget.cpp
      qtscriptshell_QPrinter.cpp
      qtscriptshell_QProgressBar.cpp
      qtscriptshell_QProgressDialog.cpp
      qtscriptshell_QPushButton.cpp
      qtscriptshell_QRadioButton.cpp
      qtscriptshell_QRegExpValidator.cpp
      qtscriptshell_QResizeEvent.cpp
      qtscriptshell_QRubberBand.cpp
      qtscriptshell_QScrollArea.cpp
      qtscriptshell_QScrollBar.cpp
      qtscriptshell_QShortcut.cpp
      qtscriptshell_QShortcutEvent.cpp
      qtscriptshell_QSizeGrip.cpp
      qtscriptshell_QSlider.cpp
      qtscriptshell_QSound.cpp
      qtscriptshell_QSpacerItem.cpp
      qtscriptshell_QSpinBox.cpp
      qtscriptshell_QSplashScreen.cpp
      qtscriptshell_QSplitter.cpp
      qtscriptshell_QSplitterHandle.cpp
      qtscriptshell_QStackedLayout.cpp
      qtscriptshell_QStackedWidget.cpp
      qtscriptshell_QStandardItem.cpp
      qtscriptshell_QStandardItemModel.cpp
      qtscriptshell_QStatusBar.cpp
      qtscriptshell_QStyle.cpp
      qtscriptshell_QStyleFactory.cpp
      qtscriptshell_QStyleHintReturn.cpp
      qtscriptshell_QStyleHintReturnMask.cpp
      qtscriptshell_QStyleHintReturnVariant.cpp
      qtscriptshell_QStyleOption.cpp
      qtscriptshell_QStyleOptionButton.cpp
      qtscriptshell_QStyleOptionComboBox.cpp
      qtscriptshell_QStyleOptionComplex.cpp
      qtscriptshell_QStyleOptionDockWidget.cpp
      qtscriptshell_QStyleOptionDockWidgetV2.cpp
      qtscriptshell_QStyleOptionFocusRect.cpp
      qtscriptshell_QStyleOptionFrame.cpp
      qtscriptshell_QStyleOptionFrameV2.cpp
      qtscriptshell_QStyleOptionGraphicsItem.cpp
      qtscriptshell_QStyleOptionGroupBox.cpp
      qtscriptshell_QStyleOptionHeader.cpp
      qtscriptshell_QStyleOptionMenuItem.cpp
      qtscriptshell_QStyleOptionProgressBar.cpp
      qtscriptshell_QStyleOptionProgressBarV2.cpp
      qtscriptshell_QStyleOptionRubberBand.cpp
      qtscriptshell_QStyleOptionSizeGrip.cpp
      qtscriptshell_QStyleOptionSlider.cpp
      qtscriptshell_QStyleOptionSpinBox.cpp
      qtscriptshell_QStyleOptionTab.cpp
      qtscriptshell_QStyleOptionTabBarBase.cpp
      qtscriptshell_QStyleOptionTabV2.cpp
      qtscriptshell_QStyleOptionTabWidgetFrame.cpp
      qtscriptshell_QStyleOptionTitleBar.cpp
      qtscriptshell_QStyleOptionToolBar.cpp
      qtscriptshell_QStyleOptionToolBox.cpp
      qtscriptshell_QStyleOptionToolBoxV2.cpp
      qtscriptshell_QStyleOptionToolButton.cpp
      qtscriptshell_QStyleOptionViewItem.cpp
      qtscriptshell_QStyleOptionViewItemV2.cpp
      qtscriptshell_QStyleOptionViewItemV3.cpp
      qtscriptshell_QStyleOptionViewItemV4.cpp
      qtscriptshell_QStylePlugin.cpp
      qtscriptshell_QStyledItemDelegate.cpp
      qtscriptshell_QSyntaxHighlighter.cpp
      qtscriptshell_QSystemTrayIcon.cpp
      qtscriptshell_QTabBar.cpp
      qtscriptshell_QTabWidget.cpp
      qtscriptshell_QTableView.cpp
      qtscriptshell_QTableWidget.cpp
      qtscriptshell_QTableWidgetItem.cpp
      qtscriptshell_QTabletEvent.cpp
      qtscriptshell_QTextBlockFormat.cpp
      qtscriptshell_QTextBlockGroup.cpp
      qtscriptshell_QTextBlockUserData.cpp
      qtscriptshell_QTextBrowser.cpp
      qtscriptshell_QTextCharFormat.cpp
      qtscriptshell_QTextDocument.cpp
      qtscriptshell_QTextEdit.cpp
      qtscriptshell_QTextFrame.cpp
      qtscriptshell_QTextFrameFormat.cpp
      qtscriptshell_QTextImageFormat.cpp
      qtscriptshell_QTextItem.cpp
      qtscriptshell_QTextList.cpp
      qtscriptshell_QTextListFormat.cpp
      qtscriptshell_QTextObject.cpp
      qtscriptshell_QTextObjectInterface.cpp
      qtscriptshell_QTextTable.cpp
      qtscriptshell_QTextTableCellFormat.cpp
      qtscriptshell_QTextTableFormat.cpp
      qtscriptshell_QTimeEdit.cpp
      qtscriptshell_QToolBar.cpp
      qtscriptshell_QToolBox.cpp
      qtscriptshell_QToolButton.cpp
      qtscriptshell_QTreeView.cpp
      qtscriptshell_QTreeWidget.cpp
      qtscriptshell_QTreeWidgetItem.cpp
      qtscriptshell_QUndoCommand.cpp
      qtscriptshell_QUndoGroup.cpp
      qtscriptshell_QUndoStack.cpp
      qtscriptshell_QUndoView.cpp
      qtscriptshell_QVBoxLayout.cpp
      qtscriptshell_QValidator.cpp
      qtscriptshell_QWheelEvent.cpp
      qtscriptshell_QWidget.cpp
      qtscriptshell_QWidgetAction.cpp
      qtscriptshell_QWidgetItem.cpp
      qtscriptshell_QWindowsStyle.cpp
      qtscriptshell_QWizard.cpp
      qtscriptshell_QWizardPage.cpp
      qtscriptshell_QWorkspace.cpp
      qtscript_QItemSelectionModel.cpp
      qtscript_QItemSelectionRange.cpp
      qtscript_QDropEvent.cpp
      qtscript_QDrag.cpp
      qtscriptshell_QColorDialog.cpp
      qtscriptshell_QStringListModel.cpp
      qtscriptshell_QItemSelectionModel.cpp
      qtscriptshell_QInputDialog.cpp
      qtscriptshell_QFontDialog.cpp
      qtscriptshell_QDropEvent.cpp
      qtscriptshell_QDrag.cpp
      )

set_target_properties(qtscript_gui
      PROPERTIES
      COMPILE_FLAGS
         "-D_GNU_SOURCE -D_REENTRANT -DHAVE_CONFIG_H -DQT_PLUGIN -DQT_NO_DEBUG -include ${PROJECT_SOURCE_DIR}/all.h"
      LINK_FLAGS "-L${QT_LIBRARY_DIR}"
      )

if (STATIC_SCRIPT_BINDINGS)
else (STATIC_SCRIPT_BINDINGS)
   if (MINGW)
      target_link_libraries(
         qtscript_gui
         ${QT_mingw_LIBRARIES}
         )
      install( TARGETS qtscript_gui DESTINATION bin/script/ )
   else(MINGW)
      install( TARGETS qtscript_gui DESTINATION ${QT_PLUGINS_DIR}/script/ )
   endif(MINGW)
endif (STATIC_SCRIPT_BINDINGS)


