Commit 37c73dc5 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Define WITH_CRASHHANDLER using config.h

parent d8ee3e89
#ifndef CONFIG_H
#define CONFIG_H
/* With crash handler */
#cmakedefine WITH_CRASHHANDLER
/* Absolute path to plugins */
#cmakedefine VLMC_EFFECTS_DIR "@VLMC_EFFECTS_DIR@"
......
......@@ -252,10 +252,6 @@ QT4_WRAP_UI(VLMC_UIS_H ${VLMC_UIS})
QT4_ADD_RESOURCES(VLMC_RCC_SRCS ${VLMC_RCC})
QT4_WRAP_CPP(VLMC_MOC_SRCS ${VLMC_HDRS})
IF(WITH_CRASHHANDLER)
ADD_DEFINITIONS(-DDEBUG_CRASHHANDLER)
ENDIF(WITH_CRASHHANDLER)
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/cmake/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
ADD_EXECUTABLE(vlmc ${VLMC_SRCS} ${VLMC_MOC_SRCS} ${VLMC_UIS_H} ${VLMC_RCC_SRCS})
......
......@@ -31,6 +31,7 @@
#include <QSettings>
#include "MainWindow.h"
#include "config.h"
#include "Library.h"
#include "About.h"
#include "ProjectManager.h"
......@@ -90,7 +91,7 @@ MainWindow::MainWindow( QWidget *parent ) :
createGlobalPreferences();
createProjectPreferences();
initializeMenuKeyboardShortcut();
#ifdef DEBUG_CRASHHANDLER
#ifdef WITH_CRASHHANDLER
setupCrashTester();
#endif
......@@ -595,7 +596,7 @@ void MainWindow::canRedoChanged( bool canRedo )
m_ui.actionRedo->setEnabled( canRedo );
}
#ifdef DEBUG_CRASHHANDLER
#ifdef WITH_CRASHHANDLER
void MainWindow::setupCrashTester()
{
QAction* actionCrash = new QAction( this );
......
......@@ -29,6 +29,7 @@
#include <QButtonGroup>
#include "vlmc.h"
#include "config.h"
#include "ui_MainWindow.h"
class Timeline;
......@@ -65,7 +66,7 @@ private:
void createGlobalPreferences();
void createProjectPreferences();
void initializeMenuKeyboardShortcut();
#ifdef DEBUG_CRASHHANDLER
#ifdef WITH_CRASHHANDLER
void setupCrashTester();
#endif
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment