mirror of https://gitee.com/bigwinds/arangodb
73 lines
2.3 KiB
Plaintext
73 lines
2.3 KiB
Plaintext
dnl -*- mode: Autoconf; -*-
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl --SECTION-- V8
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
V8_CPPFLAGS="-I${srcdir}/3rdParty/V8/include"
|
|
V8_LDFLAGS=""
|
|
V8_TARGET="native"
|
|
|
|
if test x$tr_ARM == xyes; then
|
|
V8_TARGET="arm.release"
|
|
|
|
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_nosnapshot.a"
|
|
elif test x$tr_DARWIN == xyes; then
|
|
if test "x$tr_BITS" == x64; then
|
|
V8_TARGET="x64.release"
|
|
else
|
|
V8_TARGET="ia32.release"
|
|
fi
|
|
|
|
V8_LIBS="${srcdir}/3rdParty/V8/out/$V8_TARGET/libv8_base.a ${srcdir}/3rdParty/V8/out/$V8_TARGET/libv8_nosnapshot.a"
|
|
else
|
|
if test "x$tr_BITS" == x64; then
|
|
V8_TARGET="x64.release"
|
|
else
|
|
V8_TARGET="ia32.release"
|
|
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_nosnapshot.a"
|
|
fi
|
|
|
|
TRI_V8_VERSION="3.16.14"
|
|
|
|
if test "x$tr_FREEBSD" == xyes; then
|
|
V8_LIBS="$V8_LIBS -lexecinfo"
|
|
fi
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl add substitutions
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
AC_SUBST(V8_CPPFLAGS)
|
|
AC_SUBST(V8_LDFLAGS)
|
|
AC_SUBST(V8_LIBS)
|
|
AC_SUBST(V8_TARGET)
|
|
|
|
V8_CPPFLAGS="${V8_CPPFLAGS} -DTRI_V8_VERSION='\"${TRI_V8_VERSION}\"'"
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl informational output
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
LIB_INFO="$LIB_INFO|V8: 3rdParty version"
|
|
LIB_INFO="$LIB_INFO|V8 VERSION: ${TRI_V8_VERSION}"
|
|
|
|
LIB_INFO="$LIB_INFO|V8_TARGET: ${V8_TARGET}"
|
|
|
|
LIB_INFO="$LIB_INFO|V8_CPPFLAGS: ${V8_CPPFLAGS}"
|
|
LIB_INFO="$LIB_INFO|V8_LDFLAGS: ${V8_LDFLAGS}"
|
|
LIB_INFO="$LIB_INFO|V8_LIBS: ${V8_LIBS}"
|
|
|
|
dnl LIB_INFO="$LIB_INFO|."
|
|
|
|
dnl ----------------------------------------------------------------------------
|
|
dnl --SECTION-- END-OF-FILE
|
|
dnl ----------------------------------------------------------------------------
|
|
|
|
dnl Local Variables:
|
|
dnl mode: outline-minor
|
|
dnl outline-regexp: "^\\(dnl --SECTION--\\)"
|
|
dnl End:
|