Commit 4db2960c authored by coppro's avatar coppro

Compatibility updates; Boost Regex is now statically linked, changed to <hunspell/hunspell.hxx>

parent 2112c8df
...@@ -13,7 +13,9 @@ AUTOMAKE_OPTIONS = subdir-objects ...@@ -13,7 +13,9 @@ AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS = magicseteditor bin_PROGRAMS = magicseteditor
AM_CXXFLAGS = @WX_CXXFLAGS@ \$(BOOST_CXXFLAGS) -DUNICODE -I . -Wall AM_CXXFLAGS = @WX_CXXFLAGS@ \$(BOOST_CXXFLAGS) -DUNICODE -I . -Wall
AM_LDFLAGS = @WX_LIBS@ \$(BOOST_LDFLAGS) \$(BOOST_REGEX_LIB) AM_LDFLAGS = @WX_LIBS@ \$(BOOST_LDFLAGS)
magicseteditor_LDADD = \$(BOOST_REGEX_LIB)
magicseteditor_SOURCES = magicseteditor_SOURCES =
......
...@@ -205,7 +205,8 @@ am_magicseteditor_OBJECTS = ./src/util/version.$(OBJEXT) \ ...@@ -205,7 +205,8 @@ am_magicseteditor_OBJECTS = ./src/util/version.$(OBJEXT) \
./src/cli/text_io_handler.$(OBJEXT) \ ./src/cli/text_io_handler.$(OBJEXT) \
./src/code_template.$(OBJEXT) ./src/code_template.$(OBJEXT)
magicseteditor_OBJECTS = $(am_magicseteditor_OBJECTS) magicseteditor_OBJECTS = $(am_magicseteditor_OBJECTS)
magicseteditor_LDADD = $(LDADD) am__DEPENDENCIES_1 =
magicseteditor_DEPENDENCIES = $(am__DEPENDENCIES_1)
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src
depcomp = $(SHELL) $(top_srcdir)/depcomp depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles am__depfiles_maybe = depfiles
...@@ -334,7 +335,8 @@ top_srcdir = @top_srcdir@ ...@@ -334,7 +335,8 @@ top_srcdir = @top_srcdir@
# This flag allows us to use subdirectories: # This flag allows us to use subdirectories:
AUTOMAKE_OPTIONS = subdir-objects AUTOMAKE_OPTIONS = subdir-objects
AM_CXXFLAGS = @WX_CXXFLAGS@ $(BOOST_CXXFLAGS) -DUNICODE -I . -Wall AM_CXXFLAGS = @WX_CXXFLAGS@ $(BOOST_CXXFLAGS) -DUNICODE -I . -Wall
AM_LDFLAGS = @WX_LIBS@ $(BOOST_LDFLAGS) $(BOOST_REGEX_LIB) AM_LDFLAGS = @WX_LIBS@ $(BOOST_LDFLAGS)
magicseteditor_LDADD = $(BOOST_REGEX_LIB)
# The script used to generate is MakeAM.sh # The script used to generate is MakeAM.sh
magicseteditor_SOURCES = ./src/util/version.cpp \ magicseteditor_SOURCES = ./src/util/version.cpp \
......
This diff is collapsed.
...@@ -18,10 +18,12 @@ AC_PROG_CXX ...@@ -18,10 +18,12 @@ AC_PROG_CXX
# Do not pass -O2, because that causes failures for now. # Do not pass -O2, because that causes failures for now.
CXXFLAGS=-g CXXFLAGS=-g
# Checks for libraries. # Checks for libraries.
AC_CHECK_LIB([hunspell],[Hunspell_create])
# Check for Boost # Check for Boost
AX_BOOST_BASE([1.36.0]) AX_BOOST_BASE([1.37.0])
AX_BOOST_REGEX AX_BOOST_REGEX
BOOST_REGEX_LIB="-Wl,-Bstatic $BOOST_REGEX_LIB -Wl,-Bdynamic"
# Check for wxWidgets # Check for wxWidgets
AM_OPTIONS_WXCONFIG AM_OPTIONS_WXCONFIG
......
...@@ -13,7 +13,9 @@ ...@@ -13,7 +13,9 @@
#include <script/script.hpp> #include <script/script.hpp>
#include <script/context.hpp> #include <script/context.hpp>
#ifndef USE_SCRIPT_PROFILING
#define USE_SCRIPT_PROFILING 1 #define USE_SCRIPT_PROFILING 1
#endif
#if USE_SCRIPT_PROFILING #if USE_SCRIPT_PROFILING
...@@ -34,6 +36,10 @@ DECLARE_POINTER_TYPE(FunctionProfile); ...@@ -34,6 +36,10 @@ DECLARE_POINTER_TYPE(FunctionProfile);
QueryPerformanceFrequency(&i); QueryPerformanceFrequency(&i);
return i.QuadPart; return i.QuadPart;
} }
inline const char * mangled_name(const type_info& t) {
return t.raw_name();
}
#else #else
// clock() has nanosecond resolution on Linux // clock() has nanosecond resolution on Linux
// on any other platform, stil the best way. // on any other platform, stil the best way.
...@@ -45,6 +51,10 @@ DECLARE_POINTER_TYPE(FunctionProfile); ...@@ -45,6 +51,10 @@ DECLARE_POINTER_TYPE(FunctionProfile);
inline ProfileTime timer_resolution() { inline ProfileTime timer_resolution() {
return CLOCKS_PER_SEC; return CLOCKS_PER_SEC;
} }
inline const char * mangled_name(const type_info& t) {
return t.name();
}
#endif #endif
/// Simple execution timer /// Simple execution timer
......
...@@ -282,7 +282,7 @@ class ScriptObject : public ScriptValue { ...@@ -282,7 +282,7 @@ class ScriptObject : public ScriptValue {
virtual ScriptValueP getMember(const String& name) const { virtual ScriptValueP getMember(const String& name) const {
#if USE_SCRIPT_PROFILING #if USE_SCRIPT_PROFILING
Timer t; Timer t;
Profiler prof(t, (void*)typeid(T).raw_name(), _("get member of ") + type_name(*value)); Profiler prof(t, (void*)mangled_name(typeid(T)), _("get member of ") + type_name(*value));
#endif #endif
GetMember gm(name); GetMember gm(name);
gm.handle(*value); gm.handle(*value);
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
// ----------------------------------------------------------------------------- : Includes // ----------------------------------------------------------------------------- : Includes
#include <util/prec.hpp> #include <util/prec.hpp>
#include "hunspell.hxx" #include "hunspell/hunspell.hxx"
DECLARE_POINTER_TYPE(SpellChecker); DECLARE_POINTER_TYPE(SpellChecker);
......
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