Commit 1c50cc0b authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Switch to autotools

parent 48fc7ecf
......@@ -3,7 +3,6 @@
/debug
/patches
/qtc-gdbmacros
Makefile*
/include
/win32
......
#
# VLMC build system
# Authors: Rohit Yadav <rohityadav89@gmail.com>
# Ludovic Fauvet <etix@vlmc.org>
# Hugo Beauzée-Luyssen <hugo@beauzee.fr>
#
cmake_minimum_required(VERSION 3.1)
# Set path to additional CMake modules
SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
include(git-version)
# Project Info
SET(PROJECT_NAME_SHORT "VLMC")
SET(PROJECT_NAME_LONG "VideoLAN Movie Creator")
SET(PROJECT_DESCRIPTION "VLMC (VideoLAN Movie Creator) is a cross-platform, non-linear video editing software based on the VLC Media Player.")
string(TIMESTAMP CURRENT_YEAR "%Y")
SET(PROJECT_COPYRIGHT "Copyright (C) 2008-${CURRENT_YEAR} VideoLAN")
SET(PROJECT_CONTACT "vlmc-devel@videolan.org")
SET(PROJECT_VENDOR "VLMC Team")
SET(ORG_WEBSITE "videolan.org")
# Configuring build type
IF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
FORCE)
MESSAGE("Setting build type to '${CMAKE_BUILD_TYPE}'")
ELSE(NOT CMAKE_BUILD_TYPE)
MESSAGE("Build type set to '${CMAKE_BUILD_TYPE}'")
ENDIF(NOT CMAKE_BUILD_TYPE)
IF(WIN32)
# Building in release for WIN32
SET(CMAKE_BUILD_TYPE "Release")
SET_PROPERTY(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_RELEASE QT_NO_DEBUG)
# Use mingw's sprintf instead of windows's
ADD_DEFINITIONS( -D__USE_MINGW_ANSI_STDIO=1 )
ENDIF(WIN32)
# version: 0.2.x
STRING(TOLOWER ${PROJECT_NAME_SHORT} PROJECT_NAME_SHORT_LOWER)
PROJECT(${PROJECT_NAME_SHORT_LOWER} VERSION 0.2.0)
append_git_version()
MESSAGE(STATUS "VLMC Version: ${CPACK_PACKAGE_VERSION}")
SET(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
SET(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
SET(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
# Codename of the Project :-)
SET(CODENAME "alpha")
# System Information
SITE_NAME(HOSTNAME)
SET(SYSNAME ${CMAKE_SYSTEM}-${CMAKE_SYSTEM_PROCESSOR})
# CMake Settings
SET(CMAKE_COLOR_MAKEFILE ON)
SET(CMAKE_VERBOSE_MAKEFILE OFF)
# Optionally allow embedding libvlc into the binary as
# VLMC requires libVLC
# SET (WITH_LIBVLC FALSE CACHE BOOL "Compile LibVLC in VLMC")
IF (UNIX)
SET(WITH_PROFILING FALSE CACHE BOOL "Build with profiling support" )
SET(CMAKE_INSTALL_PREFIX /usr)
SET(CPACK_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
ENDIF(UNIX)
SET(WITH_GUI TRUE CACHE BOOL "Enable the VLMC's GUI")
SET(WITH_CRASHBUTTON FALSE CACHE BOOL "Enable the crash button")
SET(WITH_CRASHHANDLER_GUI FALSE CACHE BOOL "Enable the crash handler GUI (with backtrace and restart capabilities)")
SET(WITH_CRASHHANDLER FALSE CACHE BOOL "Enable the crash handler")
# layout of VLMC installation
# (default values are platform-specific)
SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/effects)
# Copy the sh launcher
IF (NOT WIN32)
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/cmake/vlmc.sh" "${CMAKE_CURRENT_BINARY_DIR}/vlmc" COPYONLY)
ENDIF(NOT WIN32)
# common for MAC and UNIX
SET (DEFAULT_BIN_SUBDIR bin)
SET (DEFAULT_LIB_SUBDIR lib)
SET (DEFAULT_DATA_SUBDIR share)
SET (DEFAULT_SRC_SUBDIR src)
SET (DEFAULT_INCLUDE_SUBDIR include)
SET (VLMC_BIN_SUBDIR "${DEFAULT_BIN_SUBDIR}" CACHE STRING "Subdirectory where executables will be installed")
SET (VLMC_LIB_SUBDIR "${DEFAULT_LIB_SUBDIR}" CACHE STRING "Subdirectory where libraries will be installed")
SET (VLMC_DATA_SUBDIR "${DEFAULT_DATA_SUBDIR}" CACHE STRING "Subdirectory where VLMC data will be installed")
SET (VLMC_SRC_SUBDIR "${DEFAULT_SRC_SUBDIR}" CACHE STRING "Subdirectory where VLMC source is")
SET (VLMC_INCLUDE_SUBDIR "${DEFAULT_INCLUDE_SUBDIR}" CACHE STRING "Subdirectory where header files will be installed")
# full paths for the installation
SET (VLMC_BIN_DIR ${CMAKE_INSTALL_PREFIX}/${VLMC_BIN_SUBDIR})
SET (VLMC_LIB_DIR ${CMAKE_INSTALL_PREFIX}/${VLMC_LIB_SUBDIR})
SET (VLMC_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/${VLMC_INCLUDE_SUBDIR})
SET (VLMC_DATA_DIR ${CMAKE_INSTALL_PREFIX}/${VLMC_DATA_SUBDIR}/vlmc/)
SET (VLMC_DOC_DIR ${CMAKE_INSTALL_PREFIX}/${VLMC_DATA_SUBDIR}/doc/vlmc/)
SET (VLMC_EFFECTS_DIR ${CMAKE_INSTALL_PREFIX}/${VLMC_LIB_SUBDIR}/vlmc/effects/)
SET (VLMC_DESKTOP_DIR ${CMAKE_INSTALL_PREFIX}/${VLMC_DATA_SUBDIR}/applications/)
SET (VLMC_PIXMAPS_DIR ${CMAKE_INSTALL_PREFIX}/${VLMC_DATA_SUBDIR}/pixmaps/)
# manual page - makes sense only on unix systems
IF (UNIX)
SET (DEFAULT_MANUAL_SUBDIR ${VLMC_DATA_SUBDIR}/man)
SET (VLMC_MANUAL_SUBDIR "${DEFAULT_MANUAL_SUBDIR}" CACHE STRING "Subdirectory where manual files will be installed")
MARK_AS_ADVANCED (VLMC_MANUAL_SUBDIR)
SET (VLMC_MANUAL_DIR ${CMAKE_INSTALL_PREFIX}/${VLMC_MANUAL_SUBDIR})
ENDIF (UNIX)
include(ts/translations.cmake)
SUBDIRS(src)
SUBDIRS(nsis)
SUBDIRS(effects)
# Copy stuff to doc subdirectory
INSTALL (FILES AUTHORS COPYING INSTALL.md NEWS README.md THANKS TRANSLATORS
DESTINATION ${VLMC_DOC_DIR})
# Copy .desktop file
INSTALL (FILES share/vlmc.desktop DESTINATION ${VLMC_DESKTOP_DIR})
# Copy the VLMC pixmap
INSTALL (FILES share/vlmc.png DESTINATION ${VLMC_PIXMAPS_DIR})
# On UNIX copy the man page
IF (UNIX)
INSTALL (FILES ${CMAKE_SOURCE_DIR}/doc/vlmc.1
DESTINATION ${VLMC_MANUAL_DIR}/man1)
ENDIF (UNIX)
# Copy the share directory (TODO: add checks if the dir is empty, don't install)
# INSTALL (DIRECTORY share/ DESTINATION ${VLMC_DATA_DIR}
# PATTERN "*.desktop" EXCLUDE
# PATTERN "*.ico" EXCLUDE
# PATTERN "*.icns" EXCLUDE
# PATTERN "vlmc.png" EXCLUDE)
#############################################################
# Package Settings
INCLUDE(InstallRequiredSystemLibraries)
SET(CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME})
SET(CPACK_PACKAGE_NAME ${PROJECT_NAME_SHORT})
SET(CPACK_PACKAGE_DESCRIPTION ${PROJECT_NAME_LONG})
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PROJECT_NAME_SHORT} \n ${PROJECT_DESCRIPTION}")
SET(CPACK_PACKAGE_VENDOR ${PROJECT_VENDOR})
SET(CPACK_PACKAGE_CONTACT ${PROJECT_CONTACT})
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md")
SET(CPACK_RESOURCE_FILE_README ${CMAKE_SOURCE_DIR}/README.md)
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
# Force Package Name
SET(CPACK_PACKAGE_FILE_NAME ${PROJECT_NAME}${GIT_PATCH}-${CPACK_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR})
# NSIS Windows Installer
IF(WIN32 AND NOT UNIX)
# There is a bug in NSI that does not handle full unix paths properly. Make
# sure there is at least one set of four (4) backslashes.
SET(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/share\\\\vlmc.png")
SET(CPACK_NSIS_INSTALLED_ICON_NAME "\\\\vlmc.exe")
SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} VLMC")
SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\vlmc.org")
SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\vlmc.org")
SET(CPACK_NSIS_CONTACT ${PROJECT_CONTACT})
SET(CPACK_NSIS_MODIFY_PATH ON)
ELSE(WIN32 AND NOT UNIX)
#SET(CPACK_STRIP_FILES "VLMC")
#SET(CPACK_SOURCE_STRIP_FILES "")
ENDIF(WIN32 AND NOT UNIX)
# RPM packages
INCLUDE ( ${CMAKE_MODULE_PATH}/RpmBuild.cmake )
IF ( RPMBUILD_FOUND AND NOT WIN32 )
SET(CPACK_GENERATOR "RPM")
SET(CPACK_RPM_PACKAGE_SUMMARY ${CPACK_PACKAGE_DESCRIPTION_SUMMARY})
SET(CPACK_RPM_PACKAGE_NAME ${CPACK_PACKAGE_NAME})
SET(CPACK_RPM_PACKAGE_VERSION ${PROJECT_VERSION})
SET(CPACK_RPM_PACKAGE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
SET(CPACK_RPM_PACKAGE_GROUP ${PROJECT_VENDOR})
SET(CPACK_RPM_PACKAGE_VENDOR ${PROJECT_VENDOR})
SET(CPACK_RPM_PACKAGE_DESCRIPTION ${PROJECT_DESCRIPTION})
SET(CPACK_RPM_PACKAGE_ARCHITECTURE i386) # Change to your architecture here
SET(CPACK_RPM_PACKAGE_DEPENDS "qt ( >= 4.6 ), qt-x11 ( >= 4.6 )") # Specify dependencies here
SET(CPACK_SET_DESTDIR TRUE)
ENDIF ( RPMBUILD_FOUND AND NOT WIN32 )
# Debian packages
INCLUDE ( ${CMAKE_MODULE_PATH}/DpkgBuild.cmake )
IF ( DPKG_FOUND AND NOT WIN32 )
SET(CPACK_GENERATOR "DEB")
SET(CPACK_DEBIAN_PACKAGE_NAME ${CPACK_PACKAGE_NAME})
SET(CPACK_DEBIAN_PACKAGE_VERSION ${PROJECT_VERSION})
SET(CPACK_DEBIAN_PACKAGE_DESCRIPTION ${CPACK_PACKAGE_DESCRIPTION_SUMMARY})
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "${CPACK_PACKAGE_VENDOR} <${CPACK_PACKAGE_CONTACT}>")
SET(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
SET(CPACK_DEBIAN_PACKAGE_DEBUG ON)
SET(CPACK_DEBIAN_PACKAGE_DEPENDS ${PACKAGE_REQUIRES})
SET(CPACK_SET_DESTDIR TRUE)
ENDIF ( DPKG_FOUND AND NOT WIN32 )
# Mac Bundle
IF( APPLE )
SET(CPACK_GENERATOR "DragNDrop")
#Libraries are bundled directly
SET(CPACK_COMPONENT_LIBRARIES_HIDDEN TRUE)
# Bundle Properties
SET(MACOSX_BUNDLE_BUNDLE_NAME VLMC)
SET(MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION})
SET(MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION})
SET(MACOSX_BUNDLE_LONG_VERSION_STRING "Version ${PROJECT_VERSION}")
#SET(CPACK_STRIP_FILES TRUE)
ENDIF( APPLE )
SET(CPACK_PACKAGE_EXECUTABLES "vlmc" "VLMC")
INCLUDE(CPack)
......@@ -280,7 +280,7 @@ Use simple aggregation to embed a Qt UI into your class.
Example:
| #include "ui_MyWidget.h"
| #include "ui/MyWidget.h"
|
| class MyWidget : public QFrame
| {
......
ACLOCAL_AMFLAGS = -I m4
bin_PROGRAMS = vlmc
SUFFIXES = .ui .h .moc.cpp
vlmc_SOURCES = \
src/Commands/Commands.cpp \
src/Backend/MLT/MLTBackend.cpp \
src/Backend/MLT/MLTOutput.cpp \
src/Backend/MLT/MLTInput.cpp \
src/Backend/MLT/MLTTrack.cpp \
src/Backend/MLT/MLTService.cpp \
src/Backend/MLT/MLTProfile.cpp \
src/Backend/MLT/MLTFilter.cpp \
src/Backend/MLT/MLTTransition.cpp \
src/Backend/MLT/MLTMultiTrack.cpp \
src/EffectsEngine/EffectHelper.cpp \
src/Library/Library.cpp \
src/Library/MediaContainer.cpp \
src/Main/Core.cpp \
src/Main/main.cpp \
src/Media/Clip.cpp \
src/Media/Media.cpp \
src/Project/Project.cpp \
src/Project/Workspace.cpp \
src/Project/WorkspaceWorker.cpp \
src/Project/RecentProjects.cpp \
src/Renderer/AbstractRenderer.cpp \
src/Services/UploaderIODevice.cpp \
src/Settings/Settings.cpp \
src/Settings/SettingValue.cpp \
src/Tools/ErrorHandler.cpp \
src/Tools/RendererEventWatcher.cpp \
src/Tools/OutputEventWatcher.cpp \
src/Tools/VlmcLogger.cpp \
src/Workflow/Helper.cpp \
src/Workflow/MainWorkflow.cpp \
src/Workflow/TrackWorkflow.cpp \
$(NULL)
vlmc_SOURCES += \
src/Project/Workspace.h \
src/Project/WorkspaceWorker.h \
src/Project/Project.h \
src/Project/RecentProjects.h \
src/Commands/Commands.h \
src/Commands/AbstractUndoStack.h \
src/Commands/KeyboardShortcutHelper.h \
src/Tools/RendererEventWatcher.h \
src/Tools/VlmcDebug.h \
src/Tools/ErrorHandler.h \
src/Tools/BacktraceGenerator.h \
src/Tools/mdate.h \
src/Tools/VlmcLogger.h \
src/Tools/OutputEventWatcher.h \
src/Tools/Singleton.hpp \
src/Renderer/ClipRenderer.h \
src/Renderer/ConsoleRenderer.h \
src/Renderer/AbstractRenderer.h \
src/Services/UploaderIODevice.h \
src/Services/AbstractSharingService.h \
src/Services/YouTube/YouTubeUploader.h \
src/Services/YouTube/YouTubeCommon.h \
src/Services/YouTube/YouTubeAuthenticator.h \
src/Services/YouTube/YouTubeService.h \
src/Services/YouTube/YouTubeFeedParser.h \
src/EffectsEngine/EffectHelper.h \
src/Media/Transcoder.h \
src/Media/Media.h \
src/Media/Clip.h \
src/Settings/Settings.h \
src/Settings/SettingValue.h \
src/vlmc.h \
src/Backend/ITrack.h \
src/Backend/ITransition.h \
src/Backend/IFilter.h \
src/Backend/IInput.h \
src/Backend/IOutput.h \
src/Backend/MLT/MLTTransition.h \
src/Backend/MLT/MLTFilter.h \
src/Backend/MLT/MLTProfile.h \
src/Backend/MLT/MLTTrack.h \
src/Backend/MLT/MLTBackend.h \
src/Backend/MLT/MLTService.h \
src/Backend/MLT/MLTInput.h \
src/Backend/MLT/MLTMultiTrack.h \
src/Backend/MLT/MLTOutput.h \
src/Backend/IBackend.h \
src/Backend/IProfile.h \
src/Backend/IMultiTrack.h \
src/Main/Core.h \
src/Library/Library.h \
src/Library/MediaContainer.h \
src/Workflow/TrackWorkflow.h \
src/Workflow/Helper.h \
src/Workflow/Types.h \
src/Workflow/MainWorkflow.h \
$(NULL)
nodist_vlmc_SOURCES = \
src/Media/Clip.moc.cpp \
src/Workflow/TrackWorkflow.moc.cpp \
src/Services/YouTube/YouTubeService.moc.cpp \
src/EffectsEngine/EffectHelper.moc.cpp \
src/Workflow/Helper.moc.cpp \
src/Tools/RendererEventWatcher.moc.cpp \
src/Project/Workspace.moc.cpp \
src/Services/YouTube/YouTubeUploader.moc.cpp \
src/Tools/VlmcLogger.moc.cpp \
src/Settings/Settings.moc.cpp \
src/Media/Media.moc.cpp \
src/Renderer/AbstractRenderer.moc.cpp \
src/Project/WorkspaceWorker.moc.cpp \
src/Commands/KeyboardShortcutHelper.moc.cpp \
src/Services/AbstractSharingService.moc.cpp \
src/Workflow/MainWorkflow.moc.cpp \
src/Project/RecentProjects.moc.cpp \
src/Library/MediaContainer.moc.cpp \
src/Commands/Commands.moc.cpp \
src/Renderer/ClipRenderer.moc.cpp \
src/Project/Project.moc.cpp \
src/Services/YouTube/YouTubeAuthenticator.moc.cpp \
src/Settings/SettingValue.moc.cpp \
src/Tools/OutputEventWatcher.moc.cpp \
src/Services/UploaderIODevice.moc.cpp \
src/Library/Library.moc.cpp \
$(NULL)
vlmc_RC = \
resources.qrc \
src/Gui/timeline/resources-timeline.qrc \
$(NULL)
EXTRA_DIST = $(vlmc_RC)
if HAVE_WIN32
vlmc_SOURCES += src/Main/winvlmc.cpp
vlmc_RC += resources/styles.qrc
else
vlmc_SOURCES += src/Main/vlmc.cpp
endif
vlmc_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(QT_CFLAGS) \
$(MLT_CFLAGS) \
$(LIBVLCPP_CFLAGS) \
-I$(top_srcdir)/src \
$(NULL)
vlmc_CXXFLAGS = \
$(AM_CXXFLAGS) \
$(NULL)
vlmc_LDADD = \
$(QT_LIBS) \
$(MLT_LIBS) \
$(MLTPP_LIBS) \
$(NULL)
if HAVE_GUI
vlmc_SOURCES += \
src/Commands/KeyboardShortcutHelper.cpp \
src/Renderer/ClipRenderer.cpp \
src/Services/YouTube/YouTubeAuthenticator.cpp \
src/Services/YouTube/YouTubeFeedParser.cpp \
src/Services/YouTube/YouTubeService.cpp \
src/Services/YouTube/YouTubeUploader.cpp \
src/Gui/About.cpp \
src/Gui/ClipProperty.cpp \
src/Gui/IntroDialog.cpp \
src/Gui/LanguageHelper.cpp \
src/Gui/MainWindow.cpp \
src/Gui/WorkflowFileRendererDialog.cpp \
src/Gui/effectsengine/EffectInstanceWidget.cpp \
src/Gui/effectsengine/EffectInstanceListModel.cpp \
src/Gui/effectsengine/EffectsListView.cpp \
src/Gui/effectsengine/EffectStack.cpp \
src/Gui/effectsengine/EffectWidget.cpp \
src/Gui/export/RendererSettings.cpp \
src/Gui/export/ShareOnInternet.cpp \
src/Gui/import/ImportController.cpp \
src/Gui/import/TagWidget.cpp \
src/Gui/library/ListViewController.cpp \
src/Gui/library/MediaCellView.cpp \
src/Gui/library/MediaLibrary.cpp \
src/Gui/library/MediaListView.cpp \
src/Gui/library/StackViewController.cpp \
src/Gui/library/StackViewNavController.cpp \
src/Gui/media/ClipMetadataDisplayer.cpp \
src/Gui/preview/LCDTimecode.cpp \
src/Gui/preview/PreviewRuler.cpp \
src/Gui/preview/PreviewWidget.cpp \
src/Gui/settings/BoolWidget.cpp \
src/Gui/settings/ColorWidget.cpp \
src/Gui/settings/DoubleWidget.cpp \
src/Gui/settings/DoubleSliderWidget.cpp \
src/Gui/settings/IntWidget.cpp \
src/Gui/settings/KeyboardShortcut.cpp \
src/Gui/settings/KeyboardShortcutInput.cpp \
src/Gui/settings/LanguageWidget.cpp \
src/Gui/settings/Panel.cpp \
src/Gui/settings/PathWidget.cpp \
src/Gui/settings/PreferenceWidget.cpp \
src/Gui/settings/SettingsDialog.cpp \
src/Gui/settings/StringWidget.cpp \
src/Gui/timeline/Timeline.cpp \
src/Gui/widgets/ExtendedLabel.cpp \
src/Gui/widgets/FramelessButton.cpp \
src/Gui/widgets/NotificationZone.cpp \
src/Gui/widgets/SearchLineEdit.cpp \
src/Gui/wizard/GeneralPage.cpp \
src/Gui/wizard/OpenPage.cpp \
src/Gui/wizard/ProjectWizard.cpp \
src/Gui/wizard/VideoPage.cpp \
src/Gui/wizard/WelcomePage.cpp \
src/Gui/wizard/firstlaunch/FirstLaunchWizard.cpp \
src/Gui/wizard/firstlaunch/FirstLaunchPage.cpp \
src/Gui/wizard/firstlaunch/WorkspaceLocation.cpp \
src/Gui/wizard/firstlaunch/Done.cpp \
$(NULL)
vlmc_SOURCES += \
src/Gui/ClipProperty.h \
src/Gui/WorkflowFileRendererDialog.h \
src/Gui/widgets/FramelessButton.h \
src/Gui/widgets/ExtendedLabel.h \
src/Gui/widgets/SearchLineEdit.h \
src/Gui/widgets/CrashHandler.h \
src/Gui/widgets/NotificationZone.h \
src/Gui/MainWindow.h \
src/Gui/wizard/ProjectWizard.h \
src/Gui/wizard/GeneralPage.h \
src/Gui/wizard/PageFactory.h \
src/Gui/wizard/WelcomePage.h \
src/Gui/wizard/VideoPage.h \
src/Gui/wizard/firstlaunch/FirstLaunchWizard.h \
src/Gui/wizard/firstlaunch/FirstLaunchPage.h \
src/Gui/wizard/firstlaunch/WorkspaceLocation.h \
src/Gui/wizard/firstlaunch/Done.h \
src/Gui/wizard/OpenPage.h \
src/Gui/timeline/Timeline.h \
src/Gui/About.h \
src/Gui/LanguageHelper.h \
src/Gui/library/ListViewController.h \
src/Gui/library/StackViewController.h \
src/Gui/library/MediaListView.h \
src/Gui/library/MediaLibrary.h \
src/Gui/library/MediaCellView.h \
src/Gui/library/StackViewNavController.h \
src/Gui/library/ViewController.h \
src/Gui/media/ClipMetadataDisplayer.h \
src/Gui/preview/RenderWidget.h \
src/Gui/preview/PreviewRuler.h \
src/Gui/preview/PreviewWidget.h \
src/Gui/preview/LCDTimecode.h \
src/Gui/settings/DoubleWidget.h \
src/Gui/settings/KeyboardShortcut.h \
src/Gui/settings/StringWidget.h \
src/Gui/settings/KeyboardShortcutInput.h \
src/Gui/settings/SettingsDialog.h \
src/Gui/settings/DoubleSliderWidget.h \
src/Gui/settings/ColorWidget.h \
src/Gui/settings/IntWidget.h \
src/Gui/settings/ISettingsCategoryWidget.h \
src/Gui/settings/PathWidget.h \
src/Gui/settings/BoolWidget.h \
src/Gui/settings/LanguageWidget.h \
src/Gui/settings/Panel.h \
src/Gui/settings/PreferenceWidget.h \
src/Gui/import/ImportController.h \
src/Gui/import/TagWidget.h \
src/Gui/effectsengine/EffectStack.h \
src/Gui/effectsengine/EffectWidget.h \
src/Gui/effectsengine/EffectsListView.h \
src/Gui/effectsengine/EffectInstanceWidget.h \
src/Gui/effectsengine/EffectInstanceListModel.h \
src/Gui/export/RendererSettings.h \
src/Gui/export/ShareOnInternet.h \
src/Gui/IntroDialog.h \
$(NULL)
nodist_vlmc_SOURCES += \
src/Gui/wizard/WelcomePage.moc.cpp \
src/Gui/library/ListViewController.moc.cpp \
src/Gui/settings/SettingsDialog.moc.cpp \
src/Gui/export/ShareOnInternet.moc.cpp \
src/Gui/widgets/FramelessButton.moc.cpp \
src/Gui/wizard/OpenPage.moc.cpp \
src/Gui/settings/ColorWidget.moc.cpp \
src/Gui/import/ImportController.moc.cpp \
src/Gui/library/StackViewController.moc.cpp \
src/Gui/library/MediaLibrary.moc.cpp \
src/Gui/wizard/firstlaunch/FirstLaunchPage.moc.cpp \
src/Gui/settings/Panel.moc.cpp \
src/Gui/preview/RenderWidget.moc.cpp \
src/Gui/settings/BoolWidget.moc.cpp \
src/Gui/WorkflowFileRendererDialog.moc.cpp \
src/Gui/library/MediaListView.moc.cpp \
src/Gui/wizard/firstlaunch/Done.moc.cpp \
src/Gui/wizard/VideoPage.moc.cpp \
src/Gui/settings/ISettingsCategoryWidget.moc.cpp \
src/Gui/wizard/GeneralPage.moc.cpp \
src/Gui/library/MediaCellView.moc.cpp \
src/Gui/MainWindow.moc.cpp \
src/Gui/settings/KeyboardShortcut.moc.cpp \
src/Gui/preview/PreviewWidget.moc.cpp \
src/Gui/preview/PreviewRuler.moc.cpp \
src/Gui/settings/PreferenceWidget.moc.cpp \
src/Gui/timeline/Timeline.moc.cpp \
src/Gui/settings/LanguageWidget.moc.cpp \
src/Gui/import/TagWidget.moc.cpp \
src/Gui/widgets/NotificationZone.moc.cpp \
src/Gui/settings/DoubleSliderWidget.moc.cpp \
src/Gui/widgets/ExtendedLabel.moc.cpp \
src/Gui/About.moc.cpp \
src/Gui/LanguageHelper.moc.cpp \
src/Gui/ClipProperty.moc.cpp \
src/Gui/library/ViewController.moc.cpp \
src/Gui/export/RendererSettings.moc.cpp \
src/Gui/media/ClipMetadataDisplayer.moc.cpp \
src/Gui/effectsengine/EffectWidget.moc.cpp \
src/Gui/effectsengine/EffectInstanceWidget.moc.cpp \
src/Gui/preview/LCDTimecode.moc.cpp \
src/Gui/effectsengine/EffectStack.moc.cpp \
src/Gui/wizard/firstlaunch/WorkspaceLocation.moc.cpp \
src/Gui/settings/DoubleWidget.moc.cpp \
src/Gui/wizard/ProjectWizard.moc.cpp \
src/Gui/IntroDialog.moc.cpp \
src/Gui/settings/KeyboardShortcutInput.moc.cpp \
src/Gui/widgets/SearchLineEdit.moc.cpp \
src/Gui/library/StackViewNavController.moc.cpp \
src/Gui/settings/PathWidget.moc.cpp \
src/Gui/settings/IntWidget.moc.cpp \
src/Gui/settings/StringWidget.moc.cpp \
src/Gui/effectsengine/EffectsListView.moc.cpp \
$(NULL)
vlmc_UI = \
src/Gui/ui/EffectInstanceWidget.ui \
src/Gui/ui/EffectStack.ui \
src/Gui/ui/EffectWidget.ui \
src/Gui/ui/RendererSettings.ui \
src/Gui/ui/ShareOnInternet.ui \
src/Gui/ui/ImportController.ui \
src/Gui/ui/TagWidget.ui \
src/Gui/ui/MediaCellView.ui \
src/Gui/ui/MediaLibrary.ui \
src/Gui/ui/StackViewNavController.ui \
src/Gui/ui/ClipMetadataDisplayer.ui \
src/Gui/ui/PreviewWidget.ui \
src/Gui/ui/About.ui \
src/Gui/ui/ClipProperty.ui \
src/Gui/ui/IntroDialog.ui \
src/Gui/ui/MainWindow.ui \
src/Gui/ui/Timeline.ui \
src/Gui/ui/WorkflowFileRendererDialog.ui \
src/Gui/ui/NotificationZone.ui \
src/Gui/ui/GeneralPage.ui \
src/Gui/ui/OpenPage.ui \
src/Gui/ui/VideoPage.ui \
src/Gui/ui/WelcomePage.ui \
src/Gui/ui/FirstLaunchPage.ui \
src/Gui/ui/WorkspaceLocation.ui \
src/Gui/ui/Done.ui \
$(NULL)
if HAVE_CRASHHANDLER
vlmc_UI += src/Gui/ui/CrashHandler.ui
vlmc_SOURCES += src/Gui/widgets/CrashHandler.cpp
if HAVE_WIN32
vlmc_SOURCES += src/Tools/Win32BacktraceGenerator.cpp
else
vlmc_SOURCES += src/Tools/UnixBacktraceGenerator.cpp
endif
endif
EXTRA_DIST += $(vlmc_UI)
vlmc_CPPFLAGS += -Isrc/Gui/ -I$(top_srcdir)/src/Gui
nodist_vlmc_SOURCES += $(vlmc_UI:.ui=.h)
#nodist_vlmc_SOURCES +=
endif
resources.cpp: $(vlmc_RC)
$(RCC) -o $@ $<
moc_verbose = $(moc_verbose_$(V))
moc_verbose_ = $(moc_verbose__$(AM_DEFAULT_VERBOSITY))
moc_verbose_0 = @echo " MOC " $@;
moc_verbose__0 = $(moc_verbose_0)
.h.moc.cpp:
$(moc_verbose)$(MOC) -o $@ $<
uic_verbose = $(uic_verbose_$(V))
uic_verbose_ = $(uic_verbose__$(AM_DEFAULT_VERBOSITY))
uic_verbose_0 = @echo " UIC " $@;
uic_verbose__0 = $(uic_verbose_0)
%.h: %.ui
$(AM_V_at)mkdir -p $(@D)
$(uic_verbose)$(UIC) -p $< -o $@
BUILT_SOURCES = $(nodist_vlmc_SOURCES)
CLEANFILES = $(BUILT_SOURCES)
#! /bin/sh
set -x
cd "$(dirname "$0")"
autoreconf -fis
#
# VLMC DPKG Finder
# Authors: Rohit Yadav <rohityadav89@gmail.com>
#
FIND_PROGRAM(DPKG
NAMES dpkg-deb
PATHS "/usr/bin") #Add paths here
IF ( DPKG )
GET_FILENAME_COMPONENT(DPKG_PATH ${DPKG} ABSOLUTE)
MESSAGE(STATUS "Found dpkg-deb : ${DPKG_PATH}")
SET(DPKG_FOUND "YES")
ELSE ( DPKG )
MESSAGE(STATUS "dpkg-deb NOT found. deb generation will not be available")
SET(DPKG_FOUND "NO")
ENDIF ( DPKG )
# CMake module to search for frei0r
# Author: Rohit Yadav <rohityadav89@gmail.com>
#
# If it's found it sets FREI0R_FOUND to TRUE
# and following variables are set:
# FREI0R_INCLUDE_DIR
# Put here path to custom location
# example: /home/username/frei0r/include etc..
FIND_PATH( FREI0R_INCLUDE_DIR NAMES frei0r.h
PATHS
"$ENV{LIB_DIR}/include"
"/usr/include"
"/usr/include/frei0r"
"/usr/local/include"
"/usr/local/include/frei0r"
# Mac OS
"${CMAKE_CURRENT_SOURCE_DIR}/contribs/include"
# MingW
c:/msys/local/include
)
FIND_PATH(FREI0R_INCLUDE_DIR PATHS "${CMAKE_INCLUDE_PATH}" NAMES frei0r.h)
# TODO: If required, add code to link to some library
IF (FREI0R_INCLUDE_DIR)
SET(FREI0R_FOUND TRUE)
ENDIF (FREI0R_INCLUDE_DIR)
IF (FREI0R_FOUND)
IF (NOT FREI0R_FIND_QUIETLY)
MESSAGE(STATUS "Found frei0r include-dir path: ${FREI0R_INCLUDE_DIR}")
ENDIF (NOT FREI0R_FIND_QUIETLY)
ELSE (FREI0R_FOUND)
IF (FREI0R_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find frei0r")
ENDIF (FREI0R_FIND_REQUIRED)
ENDIF (FREI0R_FOUND)
#!/bin/bash
if [ $# -lt 2 ] ; then
echo "Usage: $0 <vlmc_binary_path> <libvlc_dir>"
exit 1
fi
VLMC_BIN_DIR=$1
VLMC_BIN="$VLMC_BIN_DIR/vlmc"
LIBVLC_DIR=$2
install_name_tool -change @loader_path/lib/libvlc.5.dylib @executable_path/lib/libvlc.5.dylib $VLMC_BIN
install_name_tool -change @loader_path/lib/libvlccore.7.dylib @executable_path/lib/libvlccore.7.dylib $VLMC_BIN
ln -Fs $LIBVLC_DIR/../lib $VLMC_BIN_DIR