+ allow configure BIGINT support (default: yes)
This commit is contained in:
parent
bba0b61dfc
commit
8da2158781
2 changed files with 6 additions and 3 deletions
|
@ -366,6 +366,7 @@ opts.AddVariables(
|
|||
BoolVariable('PGSQL2SQLITE', 'Compile and install a utility to convert postgres tables to sqlite', 'False'),
|
||||
BoolVariable('COLOR_PRINT', 'Print build status information in color', 'True'),
|
||||
BoolVariable('SAMPLE_INPUT_PLUGINS', 'Compile and install sample plugins', 'False'),
|
||||
BoolVariable('BIGINT', 'Compile support for 64-bit integers in mapnik::value', 'True'),
|
||||
)
|
||||
|
||||
# variables to pickle after successful configure step
|
||||
|
@ -429,7 +430,8 @@ pickle_store = [# Scons internal variables
|
|||
'CAIROMM_CPPPATHS',
|
||||
'SVG_RENDERER',
|
||||
'SQLITE_LINKFLAGS',
|
||||
'BOOST_LIB_VERSION_FROM_HEADER'
|
||||
'BOOST_LIB_VERSION_FROM_HEADER',
|
||||
'BIGINT'
|
||||
]
|
||||
|
||||
# Add all other user configurable options to pickle pickle_store
|
||||
|
@ -1115,6 +1117,9 @@ if not preconfigured:
|
|||
# expression_string.cpp and map.cpp use fromUTF* function only available in >= ICU 4.2
|
||||
env['MISSING_DEPS'].append(env['ICU_LIB_NAME'])
|
||||
|
||||
if env['BIGINT']:
|
||||
env.Append(CXXFLAGS = '-DBIGINT')
|
||||
|
||||
if env['THREADING'] == 'multi':
|
||||
thread_flag = thread_suffix
|
||||
else:
|
||||
|
|
|
@ -107,8 +107,6 @@ struct value_null
|
|||
}
|
||||
};
|
||||
|
||||
#define BIGINT
|
||||
|
||||
#ifdef BIGINT
|
||||
typedef long long value_integer;
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue