Put the crashreporting config in a separate file so we don't have to recompile everything when changing the hostname.

This commit is contained in:
David Sansome 2012-12-30 16:09:52 +11:00
parent 64bae947cc
commit 93199644cc
4 changed files with 26 additions and 2 deletions

View File

@ -1108,6 +1108,9 @@ endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
${CMAKE_CURRENT_BINARY_DIR}/config.h)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/crashreporting_config.h.in
${CMAKE_CURRENT_BINARY_DIR}/crashreporting_config.h)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in
${CMAKE_CURRENT_BINARY_DIR}/version.h)

View File

@ -19,7 +19,6 @@
#define CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}"
#define CMAKE_EXECUTABLE_SUFFIX "${CMAKE_EXECUTABLE_SUFFIX}"
#define CRASHREPORTING_HOSTNAME "${CRASHREPORTING_HOSTNAME}"
#cmakedefine ENABLE_VISUALISATIONS
#cmakedefine HAVE_AUDIOCD

View File

@ -15,7 +15,7 @@
along with Clementine. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include "crashreporting_config.h"
#include "crashsender.h"
#include "version.h"
#include "core/logging.h"

View File

@ -0,0 +1,22 @@
/* This file is part of Clementine.
Clementine is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Clementine 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 Clementine. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CRASHREPORTING_CONFIG_H_IN
#define CRASHREPORTING_CONFIG_H_IN
#define CRASHREPORTING_HOSTNAME "${CRASHREPORTING_HOSTNAME}"
#endif // CRASHREPORTING_CONFIG_H_IN