aboutsummaryrefslogtreecommitdiff
path: root/recipes/v8/v8_svn.bb
blob: aab0fc2458685891dfcfc94768eab5b6a941e48f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# v8 OE build file
# Copyright (C) 2005, Advanced Micro Devices, Inc.  All Rights Reserved
# Released under the MIT license (see packages/COPYING)
DESCRIPTION = "V8 is Google's open source JavaScript engine."
HOMEPAGE = "http://code.google.com/p/v8/"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "BSD"
PR = "r0"

PV = "0.0+svnr${SRCPV}"
SRCREV = "3431"

SRC_URI = "svn://v8.googlecode.com/svn/;module=trunk;proto=http;rev=${SRCREV} \
        file://SConstruct.patch \
        file://0004-add-the-install-target.patch \
	 "

S = "${WORKDIR}/trunk"

export V8_TARGET_ARCH_ARM = "\
                 -msoft-float \
                 -fpic \
                 -funwind-tables \
                 -fstack-protector \
                 -fno-short-enums \
                 -fmessage-length=0 \
                 -finline-functions \
                 -fno-inline-functions-called-once \
                 -fgcse-after-reload \
                 -frerun-cse-after-loop \
                 -frename-registers \
                 -fomit-frame-pointer \
                 -fno-strict-aliasing \
                 -finline-limit=64 \
                 -MD \
                 -D__ARM_ARCH_5__ \
                 -D__ARM_ARCH_5T__ \
                 -D__ARM_ARCH_5TE__ \
            "

export LINKFLAGS = "${LDFLAGS}"

SCONS_EXTRA_COMPILE_ARGS = "\
                arch=${TARGET_ARCH} \
                importenv=PATH,LINKFLAGS,V8_TARGET_ARCH_ARM \
                library=shared \
                soname=on \
                shlibtype=hidden \
        "

SCONS_EXTRA_INSTALL_ARGS = "${SCONS_EXTRA_COMPILE_ARGS}"

inherit scons