mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
This commit is contained in:
commit
b84d513b6b
|
@ -12,6 +12,7 @@
|
||||||
return s.charAt(0).toUpperCase() + s.slice(1).toLowerCase();
|
return s.charAt(0).toUpperCase() + s.slice(1).toLowerCase();
|
||||||
}).join(" ");
|
}).join(" ");
|
||||||
};
|
};
|
||||||
|
var errors = require("internal").errors;
|
||||||
|
|
||||||
window.ApplicationsView = Backbone.View.extend({
|
window.ApplicationsView = Backbone.View.extend({
|
||||||
el: '#content',
|
el: '#content',
|
||||||
|
@ -444,8 +445,8 @@
|
||||||
this.showConfigureDialog(result.configuration, result.name, result.version);
|
this.showConfigureDialog(result.configuration, result.name, result.version);
|
||||||
} else {
|
} else {
|
||||||
switch(result.errorNum) {
|
switch(result.errorNum) {
|
||||||
case 1752:
|
case errors.ERROR_APPLICATION_DOWNLOAD_FAILED.code:
|
||||||
alert("Unable to download application from the given repository");
|
alert("Unable to download application from the given repository.");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
alert("Error: " + result.errorNum + ". " + result.errorMessage);
|
alert("Error: " + result.errorNum + ". " + result.errorMessage);
|
||||||
|
|
|
@ -4,15 +4,15 @@ dnl ----------------------------------------------------------------------------
|
||||||
dnl --SECTION-- V8
|
dnl --SECTION-- V8
|
||||||
dnl ----------------------------------------------------------------------------
|
dnl ----------------------------------------------------------------------------
|
||||||
|
|
||||||
icu_build_dir="${srcdir}/3rdParty/V8/third_party/icu/"
|
icu_build_dir="${V8_DIR}/third_party/icu"
|
||||||
|
|
||||||
if test "x$tr_DARWIN" = xyes; then
|
if test "x$tr_DARWIN" = xyes; then
|
||||||
icu_lib_dir="${srcdir}/3rdParty/V8/out/$V8_TARGET/"
|
icu_lib_dir="${V8_DIR}/out/$V8_TARGET"
|
||||||
else
|
else
|
||||||
icu_lib_dir="${srcdir}/3rdParty/V8/out/$V8_TARGET/obj.target/third_party/icu/"
|
icu_lib_dir="${V8_DIR}/out/$V8_TARGET/obj.target/third_party/icu"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ICU_CPPFLAGS="-D_REENTRANT -I${srcdir}/3rdParty/V8/third_party/icu/source/common -I${srcdir}/3rdParty/V8/third_party/icu/source/i18n/ -I${srcdir}/3rdParty/V8/third_party/icu/source/io/"
|
ICU_CPPFLAGS="-D_REENTRANT -I${V8_DIR}/third_party/icu/source/common -I${V8_DIR}/third_party/icu/source/i18n/ -I${V8_DIR}/third_party/icu/source/io/"
|
||||||
ICU_LDFLAGS=""
|
ICU_LDFLAGS=""
|
||||||
ICU_LIBS=" -ldl -lm ${icu_lib_dir}/libicui18n.a \
|
ICU_LIBS=" -ldl -lm ${icu_lib_dir}/libicui18n.a \
|
||||||
${icu_lib_dir}/libicuuc.a \
|
${icu_lib_dir}/libicuuc.a \
|
||||||
|
|
|
@ -7,11 +7,22 @@ dnl ----------------------------------------------------------------------------
|
||||||
V8_CPPFLAGS="-I${srcdir}/3rdParty/V8/include"
|
V8_CPPFLAGS="-I${srcdir}/3rdParty/V8/include"
|
||||||
V8_LDFLAGS=""
|
V8_LDFLAGS=""
|
||||||
V8_TARGET="native"
|
V8_TARGET="native"
|
||||||
|
local_v8=1
|
||||||
|
|
||||||
|
V8_DIR="${srcdir}/3rdParty/V8"
|
||||||
|
AC_ARG_WITH(v8,
|
||||||
|
AS_HELP_STRING([--with-v8=DIR], [where the v8 library and includes are located]),
|
||||||
|
[
|
||||||
|
V8_DIR="$withval"
|
||||||
|
local_v8=0
|
||||||
|
]
|
||||||
|
)
|
||||||
|
V8_OUTPUT=""
|
||||||
|
|
||||||
if test x$tr_ARM == xyes; then
|
if test x$tr_ARM == xyes; then
|
||||||
V8_TARGET="arm.release"
|
V8_TARGET="arm.release"
|
||||||
|
V8_OUTPUT=${V8_DIR}/out/$V8_TARGET/obj.target/tools/gyp
|
||||||
|
|
||||||
V8_LIBS="${srcdir}/3rdParty/V8/out/$V8_TARGET/obj.target/tools/gyp/libv8_base.a ${srcdir}/3rdParty/V8/out/$V8_TARGET/obj.target/tools/gyp/libv8_libbase.a ${srcdir}/3rdParty/V8/out/$V8_TARGET/obj.target/tools/gyp/libv8_libplatform.a ${srcdir}/3rdParty/V8/out/$V8_TARGET/obj.target/tools/gyp/libv8_nosnapshot.a"
|
|
||||||
elif test x$tr_DARWIN == xyes; then
|
elif test x$tr_DARWIN == xyes; then
|
||||||
if test "x$tr_BITS" == x64; then
|
if test "x$tr_BITS" == x64; then
|
||||||
V8_TARGET="x64.release"
|
V8_TARGET="x64.release"
|
||||||
|
@ -19,7 +30,8 @@ elif test x$tr_DARWIN == xyes; then
|
||||||
V8_TARGET="ia32.release"
|
V8_TARGET="ia32.release"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
V8_LIBS="${srcdir}/3rdParty/V8/out/$V8_TARGET/libv8_base.a ${srcdir}/3rdParty/V8/out/$V8_TARGET/libv8_libbase.a ${srcdir}/3rdParty/V8/out/$V8_TARGET/libv8_libplatform.a ${srcdir}/3rdParty/V8/out/$V8_TARGET/libv8_nosnapshot.a"
|
V8_OUTPUT=${V8_DIR}/out/$V8_TARGET
|
||||||
|
|
||||||
else
|
else
|
||||||
if test "x$tr_BITS" == x64; then
|
if test "x$tr_BITS" == x64; then
|
||||||
V8_TARGET="x64.release"
|
V8_TARGET="x64.release"
|
||||||
|
@ -27,15 +39,23 @@ else
|
||||||
V8_TARGET="ia32.release"
|
V8_TARGET="ia32.release"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
V8_LIBS="${srcdir}/3rdParty/V8/out/$V8_TARGET/obj.target/tools/gyp/libv8_base.a ${srcdir}/3rdParty/V8/out/$V8_TARGET/obj.target/tools/gyp/libv8_libbase.a ${srcdir}/3rdParty/V8/out/$V8_TARGET/obj.target/tools/gyp/libv8_libplatform.a ${srcdir}/3rdParty/V8/out/$V8_TARGET/obj.target/tools/gyp/libv8_nosnapshot.a"
|
V8_OUTPUT=${V8_DIR}/out/$V8_TARGET/obj.target/tools/gyp
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
V8_LIBS="${V8_OUTPUT}/libv8_base.a ${V8_OUTPUT}/libv8_libbase.a ${V8_OUTPUT}/libv8_libplatform.a ${V8_OUTPUT}/libv8_nosnapshot.a"
|
||||||
|
|
||||||
TRI_V8_VERSION="3.29.59"
|
TRI_V8_VERSION="3.29.59"
|
||||||
|
|
||||||
if test "x$tr_FREEBSD" == xyes; then
|
if test "x$tr_FREEBSD" == xyes; then
|
||||||
V8_LIBS="$V8_LIBS -lexecinfo"
|
V8_LIBS="$V8_LIBS -lexecinfo"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test $local_v8 -eq "0"; then
|
||||||
|
touch ${srcdir}/.v8-build-${TRI_BITS}
|
||||||
|
fi
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------------------
|
dnl ----------------------------------------------------------------------------
|
||||||
dnl add substitutions
|
dnl add substitutions
|
||||||
dnl ----------------------------------------------------------------------------
|
dnl ----------------------------------------------------------------------------
|
||||||
|
@ -44,6 +64,7 @@ AC_SUBST(V8_CPPFLAGS)
|
||||||
AC_SUBST(V8_LDFLAGS)
|
AC_SUBST(V8_LDFLAGS)
|
||||||
AC_SUBST(V8_LIBS)
|
AC_SUBST(V8_LIBS)
|
||||||
AC_SUBST(V8_TARGET)
|
AC_SUBST(V8_TARGET)
|
||||||
|
AC_SUBST(V8_DIR)
|
||||||
|
|
||||||
V8_CPPFLAGS="${V8_CPPFLAGS} -DTRI_V8_VERSION='\"${TRI_V8_VERSION}\"'"
|
V8_CPPFLAGS="${V8_CPPFLAGS} -DTRI_V8_VERSION='\"${TRI_V8_VERSION}\"'"
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,8 @@ AC_ARG_WITH(v8,
|
||||||
[V8_CPPFLAGS="-I$withval/include"
|
[V8_CPPFLAGS="-I$withval/include"
|
||||||
V8_LDFLAGS="-L$withval/lib"
|
V8_LDFLAGS="-L$withval/lib"
|
||||||
V8_LIB_PATH="$withval/lib"
|
V8_LIB_PATH="$withval/lib"
|
||||||
|
V8_DIR="$withval"
|
||||||
|
local_v8=0
|
||||||
V8="$withval"]
|
V8="$withval"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue