From: johanengelen Date: Mon, 31 Mar 2008 20:45:11 +0000 (+0000) Subject: fix typos in config.h.cmake X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9efa90a14f617d756ada86d166a3509042565469;p=inkscape.git fix typos in config.h.cmake add optional profiling flags --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b3c5ef23..0df1c0e69 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,9 @@ SET(PROJECT_NAME inkscape) SET(CMAKE_BACKWARDS_COMPATIBILITY 2.4) SET(CMAKE_INCLUDE_CURRENT_DIR TRUE) +# Set to true if compiler/linker should enable profiling: +#SET(ENABLE_PROFILING TRUE) + SET(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) SET(CMAKE_SKIP_RPATH:BOOL OFF) SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeScripts) diff --git a/CMakeScripts/ConfigCompileFlags.cmake b/CMakeScripts/ConfigCompileFlags.cmake index f82fd52bb..4e789bc2e 100644 --- a/CMakeScripts/ConfigCompileFlags.cmake +++ b/CMakeScripts/ConfigCompileFlags.cmake @@ -1,7 +1,15 @@ SET(COMPILE_WARNING_FLAGS "-Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch") SET(COMPILE_OPTIMIZATION_FLAGS "-O2") -SET(DEFINE_FLAGS "-DHAVE_CONFIG_H -D_INTL_REDIRECT_INLINE ") +#define the flags for profiling if desired: +IF (ENABLE_PROFILING) + SET(COMPILE_PROFILING_FLAGS "-pg") + SET(LINK_PROFILING_FLAGS "-pg") +ENDIF (ENABLE_PROFILING) + + +SET(DEFINE_FLAGS "${DEFINE_FLAGS} -DVERSION=\\\"${INKSCAPE_VERSION}\\\"") +SET(DEFINE_FLAGS "${DEFINE_FLAGS} -DHAVE_CONFIG_H -D_INTL_REDIRECT_INLINE ") IF (WIN32) SET(DEFINE_FLAGS "${DEFINE_FLAGS} -DXP_WIN") @@ -12,7 +20,7 @@ ENDIF (WIN32) # for Inkboard: SET(DEFINE_FLAGS "${DEFINE_FLAGS} -DHAVE_SSL -DRELAYTOOL_SSL=\"static const int libssl_is_present=1; static int __attribute__((unused)) libssl_symbol_is_present(char *s){ return 1; }\" ") -SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILE_WARNING_FLAGS} ${COMPILE_OPTIMIZATION_FLAGS} ${DEFINE_FLAGS} -DVERSION=\\\"${INKSCAPE_VERSION}\\\" ") +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILE_WARNING_FLAGS} ${COMPILE_OPTIMIZATION_FLAGS} ${DEFINE_FLAGS} ${COMPILE_PROFILING_FLAGS} ") SET(CMAKE_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM} -j2") diff --git a/config.h.cmake b/config.h.cmake index 5d229e686..b21ecf080 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -7,7 +7,7 @@ #endif /* This is for require-config.h */ -#define PACKAGE_TARNAME "$PROJECT_NAME} ${INKSCAPE_VERSION}" +#define PACKAGE_TARNAME "${PROJECT_NAME} ${INKSCAPE_VERSION}" /* Use binreloc thread support? */ #cmakedefine BR_PTHREADS @@ -25,7 +25,7 @@ #cmakedefine ENABLE_OSX_APP_LOCATIONS /* Translation domain used */ -#define GETTEXT_PACKAGE "$PROJECT_NAME}" +#define GETTEXT_PACKAGE "${PROJECT_NAME}" /* Define to 1 if you have the `bind_textdomain_codeset' function. */ #cmakedefine HAVE_BIND_TEXTDOMAIN_CODESET @@ -211,7 +211,7 @@ #cmakedefine NO_MINUS_C_MINUS_O /* Name of package */ -#define PACKAGE "$PROJECT_NAME}" +#define PACKAGE "${PROJECT_NAME}" /* Define to the address where bug reports for this package should be sent. */ #cmakedefine PACKAGE_BUGREPORT @@ -220,10 +220,10 @@ #cmakedefine PACKAGE_LOCALE_DIR /* Define to the full name of this package. */ -#define PACKAGE_NAME "$PROJECT_NAME}" +#define PACKAGE_NAME "${PROJECT_NAME}" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "$PROJECT_NAME} ${INKSCAPE_VERSION}" +#define PACKAGE_STRING "${PROJECT_NAME} ${INKSCAPE_VERSION}" /* Define to the version of this package. */ #define PACKAGE_VERSION "${INKSCAPE_VERSION}"