libattr: remove libattr because it is clashing with udev/attr and is not used by...
[openembedded.git] / recipes / chromium / chromium_svn.bb
bloba71f947525d25ce7b5066d619ca19a01881e9043
1 DESCRIPTION = "Google Chrome browser"
2 LICENSE = "BSD"
4 DEPENDS = "xextproto cairo nss"
6 SRCREV = "34027"
7 PV = "0.1+svnr${SRCREV}"
8 PR = "r1"
10 SRC_URI = "svn://src.chromium.org/svn/trunk/;module=src;proto=http \
11 git://git.chromium.org/cros.git;protocol=git;rev=07f1fc0ce7a4bbd57f6b057435ad86f0a98e073d\
12 http://src.chromium.org/svn/trunk/tools/depot_tools.tar.gz;name=depot \
13 file://include.gypi \
14 file://gypi.patch \
17 SRC_URI[depot.md5sum] = "0d0f198a2b3c5495f75d95b867ae89b4"
18 SRC_URI[depot.sha256sum] = "1ad32db3b1028da622dae6be76564e4c926647d7f839d808897a9b33a1709b68"
20 S = "${WORKDIR}/src"
22 custom_cached_svn() {
23 oenote "Dealing with ${1}"
24 localpath="${DL_DIR}/chromium_`echo ${1} | sed -e 's|\/|\.|g'`_${3}.tbz2"
25 mkdir -p ${2}
26 if [ -f ${localpath} ]; then
27 oenote "Extracting ${localpath}"
28 tar -xpf ${localpath} -C ${2}
29 else
30 oenote "checkout and creating ${localpath}"
31 svn checkout http://${1} ${2} --revision ${3}
32 cd ${2}
33 tar -cjpf ${localpath} .
37 do_fetch_post() {
38 custom_cached_svn "google-breakpad.googlecode.com/svn/trunk/src" "${S}/breakpad/src" 432
39 custom_cached_svn "src.chromium.org/svn/trunk/deps/support" "${S}/build/util/support" 20411
40 custom_cached_svn "svn.webkit.org/repository/webkit/trunk/LayoutTests/fast/events" "${S}/chrome/test/data/layout_tests/LayoutTests/fast/events" 51794
41 custom_cached_svn "svn.webkit.org/repository/webkit/trunk/LayoutTests/fast/js/resources" "${S}/chrome/test/data/layout_tests/LayoutTests/fast/js/resources" 51794
42 custom_cached_svn "svn.webkit.org/repository/webkit/trunk/LayoutTests/fast/workers" "${S}/chrome/test/data/layout_tests/LayoutTests/fast/workers" 51794
43 custom_cached_svn "svn.webkit.org/repository/webkit/trunk/LayoutTests/http/tests/resources" "${S}/chrome/test/data/layout_tests/LayoutTests/http/tests/resources" 51794
44 custom_cached_svn "svn.webkit.org/repository/webkit/trunk/LayoutTests/http/tests/workers" "${S}/chrome/test/data/layout_tests/LayoutTests/http/tests/workers" 51794
45 custom_cached_svn "svn.webkit.org/repository/webkit/trunk/LayoutTests/http/tests/xmlhttprequest" "${S}/chrome/test/data/layout_tests/LayoutTests/http/tests/xmlhttprequest" 51794
46 custom_cached_svn "svn.webkit.org/repository/webkit/trunk/LayoutTests/storage/domstorage" "${S}/chrome/test/data/layout_tests/LayoutTests/storage/domstorage" 51794
47 custom_cached_svn "src.chromium.org/svn/trunk/deps/reference_builds" "${S}/chrome/tools/test/reference_build" 33840
48 custom_cached_svn "google-url.googlecode.com/svn/trunk" "${S}/googleurl" 121
49 custom_cached_svn "nativeclient.googlecode.com/svn/trunk/src/native_client" "${S}/native_client" 1067
50 custom_cached_svn "open-vcdiff.googlecode.com/svn/trunk" "${S}/sdch/open-vcdiff" 28
51 custom_cached_svn "googletest.googlecode.com/svn/trunk" "${S}/testing/gtest" 336
52 custom_cached_svn "src.chromium.org/svn/trunk/deps/third_party/WebKit" "${S}/third_party/WebKit" 33467
53 custom_cached_svn "svn.webkit.org/repository/webkit/trunk/JavaScriptCore" "${S}/third_party/WebKit/JavaScriptCore" 51794
54 custom_cached_svn "svn.webkit.org/repository/webkit/trunk/LayoutTests" "${S}/third_party/WebKit/LayoutTests" 51794
55 custom_cached_svn "svn.webkit.org/repository/webkit/trunk/WebCore" "${S}/third_party/WebKit/WebCore" 51794
56 custom_cached_svn "svn.webkit.org/repository/webkit/trunk/WebKit/chromium" "${S}/third_party/WebKit/WebKit/chromium" 51794
57 custom_cached_svn "svn.webkit.org/repository/webkit/trunk/WebKitTools/pywebsocket" "${S}/third_party/WebKit/WebKitTools/pywebsocket" 57720
58 # custom_cached_svn "src.chromium.org/svn/trunk/deps/third_party/ffmpeg/binaries/linux" "${S}/third_party/ffmpeg/binaries/chromium/linux/ia32" 33521
59 # custom_cached_svn "src.chromium.org/svn/trunk/deps/third_party/ffmpeg/binaries/linux_dbg" "${S}/third_party/ffmpeg/binaries/chromium/linux/ia32_dbg" 33521
60 # custom_cached_svn "src.chromium.org/svn/trunk/deps/third_party/ffmpeg/binaries/linux_64" "${S}/third_party/ffmpeg/binaries/chromium/linux/x64" 33521
61 # custom_cached_svn "src.chromium.org/svn/trunk/deps/third_party/ffmpeg/binaries/linux_64_dbg" "${S}/third_party/ffmpeg/binaries/chromium/linux/x64_dbg" 33521
62 custom_cached_svn "src.chromium.org/svn/trunk/deps/third_party/ffmpeg/patched-ffmpeg-mt" "${S}/third_party/ffmpeg/source/patched-ffmpeg-mt" 44766
63 custom_cached_svn "src.chromium.org/svn/trunk/deps/third_party/hunspell128" "${S}/third_party/hunspell" 30191
64 custom_cached_svn "src.chromium.org/svn/trunk/deps/third_party/icu42" "${S}/third_party/icu" 33767
65 custom_cached_svn "ots.googlecode.com/svn/trunk" "${S}/third_party/ots" 23
66 custom_cached_svn "protobuf.googlecode.com/svn/trunk" "${S}/third_party/protobuf2/src" 219
67 custom_cached_svn "skia.googlecode.com/svn/trunk/include" "${S}/third_party/skia/include" 451
68 custom_cached_svn "skia.googlecode.com/svn/trunk/src" "${S}/third_party/skia/src" 451
69 custom_cached_svn "src.chromium.org/svn/trunk/deps/third_party/xdg-utils" "${S}/third_party/xdg-utils" 29103
70 custom_cached_svn "src.chromium.org/svn/trunk/deps/third_party/yasm/patched-yasm" "${S}/third_party/yasm/source/patched-yasm" 29937
71 custom_cached_svn "gyp.googlecode.com/svn/trunk" "${S}/tools/gyp" 766
72 custom_cached_svn "src.chromium.org/svn/trunk/deps/page_cycler/acid3" "${S}/tools/page_cycler/acid3" 19546
73 custom_cached_svn "v8.googlecode.com/svn/trunk" "${S}/v8" 3431
76 addtask fetch_post before do_unpack after do_fetch
78 do_configure() {
79 if [ ! -e ${S}/third_party/cros ] ; then
80 mv ${WORKDIR}/git ${S}/third_party/cros/
82 cd ${WORKDIR}
83 export GYP_GENERATORS=make
84 export PATH=${WORKDIR}/depot_tools:"$PATH"
86 rm -f ${S}/tools/gyp/pylib/gyp/__init__.pyc
87 rm -f ${S}/tools/gyp/pylib/gyp/__init__.pyo
88 sed -e 's|__PATH__TO_BE_REPLACED__|"${WORKDIR}/include.gypi"|' -i ${S}/tools/gyp/pylib/gyp/__init__.py
89 sed -e "s|__PATH__TO_BE_REPLACED__||" -i ${WORKDIR}/include.gypi
91 if [ ! -e ${WORKDIR}/.gclient ] ; then
92 depot_tools/gclient config http://src.chromium.org/svn/trunk/src
94 # This is the command lines to download everything but it's done in do_fetch_post
95 #depot_tools/gclient sync --revision src@${SRCREV} --force --verbose
96 depot_tools/gclient runhooks --force
99 TARGET_CC_ARCH += "${LDFLAGS}"
101 do_compile() {
102 cd ${S}
103 export CROSSTOOL=${CROSS_DIR}/bin/${TARGET_PREFIX}
104 export AR=${CROSSTOOL}ar
105 export AS=${CROSSTOOL}as
106 export RANLIB=${CROSSTOOL}ranlib
107 oe_runmake -r ${PARALLEL_MAKE} V=1 BUILDTYPE=Release chrome
110 do_install() {
111 install -d ${D}${bindir}
112 install -d ${D}${bindir}/chrome/
113 install -m 0755 ${S}/out/Release/chrome ${D}${bindir}/chrome/
114 install -m 0644 ${S}/out/Release/chrome.pak ${D}${bindir}/chrome/
115 install -m 0644 ${S}/out/Release/product_logo_48.png ${D}${bindir}/chrome/
116 install -d ${D}${bindir}/chrome/locales/
117 install -m 0644 ${S}/out/Release/locales/en-US.pak ${D}${bindir}/chrome/locales
118 cp -a ${S}/out/Release/obj ${D}${bindir}/chrome/
119 cp -a ${S}/out/Release/obj.target ${D}${bindir}/chrome/
120 cp -a ${S}/out/Release/resources ${D}${bindir}/chrome/
122 find ${D}${bindir}/chrome/ -name "*.d" -delete
123 find ${D}${bindir}/chrome/ -name "*.o" -delete
124 find ${D}${bindir}/chrome/ -name "*.a" -delete
125 find ${D}${bindir}/chrome/ -name "*.cpp" -delete
126 find ${D}${bindir}/chrome/ -name "*.h" -delete
127 find ${D}${bindir}/chrome/ -name "*.cc" -delete
130 FILES_${PN} = "/usr/bin/chrome/"
131 FILES_${PN}-dbg = "/usr/bin/chrome/.debug/"