Граф коммитов

52 Коммитов

Автор SHA1 Сообщение Дата
sreten.kovacevic 99466ee9da Add support for building v8 on mips and mips64 using GN.
BUG=616017
R=machenbach@chromium.org, dpranke@chromium.org, brettw@chromium.org, ivica.bogosavljevic@imgtec.com

Review-Url: https://codereview.chromium.org/2875553003
Cr-Original-Commit-Position: refs/heads/master@{#475506}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4ba1f2ad0e20e132f082222ebcc53f1bf870a42d
2017-05-30 12:57:49 +00:00
scottmg b4a28668a1 Config changes to support target_os="fuchsia"
Fuchsia support has been upstreamed into Clang, so the existing
Linux-hosted Clang toolchain binaries in third_party with the correct
--target are sufficient.  Fuchsia is POSIXy so a lot of things will just
work, but some places will require different implementations, so this CL
adds support for is_fuchsia as well as a basic implementation of the
toolchain config.

The SDK (headers, sysroot, etc.) is currently available at
go/fuchsia-sdk until a standard location for it is decided upon.

The near term goal behind this CL is to bring up base/ and net/ on an
fyi bot running Fuchsia.

BUG=706592

Review-Url: https://codereview.chromium.org/2784063002
Cr-Original-Commit-Position: refs/heads/master@{#471360}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2f97ee120e2d83a87e36e50432b58e790db160ff
2017-05-12 17:50:37 +00:00
rayb 5be6ed1a48 For building v8 using gn on aix_ppc64, linux_s390x and linux_ppc64(both LE and BE).
Also add support for host_byteorder logic which is used in the following v8 and icu issues respectively -
https://codereview.chromium.org/2809963004/
https://codereview.chromium.org/2812173002/

R=machenbach@chromium.org, dpranke@chromium.org, adamk@chromium.org
BUG=706728

Review-Url: https://codereview.chromium.org/2815453004
Cr-Original-Commit-Position: refs/heads/master@{#470463}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 367a04209fcb6c3700daee65511945da7dd31f20
2017-05-10 04:55:56 +00:00
sbc deed2da4bf Refactor target_sysroot_dir gn argument
This change was motivated by the need to remove the
references to wheezy.  I noticed that the target_sysroot_dir
argument could be generalized which avoids the extra
conditional in sysroot.gni.

BUG=697494

Review-Url: https://codereview.chromium.org/2810633004
Cr-Original-Commit-Position: refs/heads/master@{#463368}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 75cc3b096e245801afa0607dc4f8adc03566ae16
2017-04-10 19:44:17 +00:00
thomasanderson 9fd03dc810 Allow building with is_clang=false, use_sysroot=true
Building with the wheezy sysroot and is_clang=false results in errors
like this:

../../base/process/process_iterator.h:12:16: fatal error: list: No
such file or directory
 #include <list>

[1] added a restriction that use_sysroot must be false when building
with is_clang=false.  However, as of [2], the wheezy sysroot has been
removed, and these compilation errors are not present on the Jessie
sysroot.  This CL removes the restriction added by [1].

[1] https://codereview.chromium.org/1476923005
[2] https://codereview.chromium.org/2597523003

BUG=575778
R=dpranke@chromium.org

Review-Url: https://codereview.chromium.org/2804633005
Cr-Original-Commit-Position: refs/heads/master@{#462343}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c2c8a4d94797d67f76e061be40cfed0378eccd81
2017-04-06 03:31:22 +00:00
thakis 2b76f608a8 Use new jessie sysroot for cros-desktop builds too.
BUG=706006,598033

Review-Url: https://codereview.chromium.org/2772403002
Cr-Original-Commit-Position: refs/heads/master@{#461095}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 17498ec3190acff0ae88d3083543a50da9d0af83
2017-03-31 11:09:13 +00:00
thakis edb8be2cdc Reland of "Update linux sysroot from Wheezy to Jessie" (patchset #1 id:1 of https://codereview.chromium.org/2780763002/ )
Reason for revert:
V8 bots are upgraded.

Original issue's description:
> Revert of "Update linux sysroot from Wheezy to Jessie" (patchset #2 id:240001 of https://codereview.chromium.org/2776773002/ )
>
> Reason for revert:
> Breaks V8 perf testing:
> http://crbug.com/705870
>
> Original issue's description:
> > Reland of "Update linux sysroot from Wheezy to Jessie" (patchset #1 id:1 of https://codereview.chromium.org/2772113002/ )
> >
> > Reason for revert:
> > Relanding with fixed deps
> >
> > Original issue's description:
> > > Revert of "Update linux sysroot from Wheezy to Jessie" (patchset #1 id:1 of https://codereview.chromium.org/2772503005/ )
> > >
> > > Reason for revert:
> > > expected_deps_x64_jessie changes are causing a failure on the official builder
> > >
> > > https://luci-logdog.appspot.com/v/?s=chromium%2Fbb%2Fchromium.chrome%2FGoogle_Chrome_Linux_x64%2F16997%2F%2B%2Frecipes%2Fsteps%2Fcompile%2F0%2Fstdout
> > >
> > > Original issue's description:
> > > > Reland of "Update linux sysroot from Wheezy to Jessie"
> > > >
> > > > The last version of this change was:
> > > > https://codereview.chromium.org/2748183005
> > > >
> > > > Which was reverted in:
> > > > https://codereview.chromium.org/2776503002
> > > >
> > > > I've updated the expected package deps again, this
> > > > time being sure to use is_chrome_branded=true when
> > > > testing (which oddly seems to effect the deps).
> > > >
> > > > TBR=thestig (since this is effectively a reland)
> > > > BUG=701894
> > > >
> > > > Review-Url: https://codereview.chromium.org/2772503005
> > > > Cr-Commit-Position: refs/heads/master@{#459492}
> > > > Committed: 7f43e46a78
> > >
> > > TBR=thakis@chromium.org,dpranke@chromium.org,thestig@chromium.org,sbc@chromium.org
> > > # Skipping CQ checks because original CL landed less than 1 days ago.
> > > NOPRESUBMIT=true
> > > NOTREECHECKS=true
> > > NOTRY=true
> > > BUG=701894
> > >
> > > Review-Url: https://codereview.chromium.org/2772113002
> > > Cr-Commit-Position: refs/heads/master@{#459553}
> > > Committed: f2296e4fca
> >
> > TBR=thakis@chromium.org,dpranke@chromium.org,thestig@chromium.org,thomasanderson@chromium.org
> > # Skipping CQ checks because original CL landed less than 1 days ago.
> > NOPRESUBMIT=true
> > NOTREECHECKS=true
> > NOTRY=true
> > BUG=701894
> >
> > Review-Url: https://codereview.chromium.org/2776773002
> > Cr-Commit-Position: refs/heads/master@{#459584}
> > Committed: b0d4ad8b38
>
> TBR=thakis@chromium.org,dpranke@chromium.org,thestig@chromium.org,thomasanderson@chromium.org,thomasanderson@google.com,sbc@chromium.org
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=701894
>
> Review-Url: https://codereview.chromium.org/2780763002
> Cr-Commit-Position: refs/heads/master@{#460070}
> Committed: 75a1434be0

TBR=dpranke@chromium.org,thestig@chromium.org,thomasanderson@chromium.org,thomasanderson@google.com,sbc@chromium.org,machenbach@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=701894

Review-Url: https://codereview.chromium.org/2783193002
Cr-Original-Commit-Position: refs/heads/master@{#460795}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2183884b24334db9eb57f544388c963dd2694f8e
2017-03-30 16:50:47 +00:00
machenbach a58c37fd20 Revert of "Update linux sysroot from Wheezy to Jessie" (patchset #2 id:240001 of https://codereview.chromium.org/2776773002/ )
Reason for revert:
Breaks V8 perf testing:
http://crbug.com/705870

Original issue's description:
> Reland of "Update linux sysroot from Wheezy to Jessie" (patchset #1 id:1 of https://codereview.chromium.org/2772113002/ )
>
> Reason for revert:
> Relanding with fixed deps
>
> Original issue's description:
> > Revert of "Update linux sysroot from Wheezy to Jessie" (patchset #1 id:1 of https://codereview.chromium.org/2772503005/ )
> >
> > Reason for revert:
> > expected_deps_x64_jessie changes are causing a failure on the official builder
> >
> > https://luci-logdog.appspot.com/v/?s=chromium%2Fbb%2Fchromium.chrome%2FGoogle_Chrome_Linux_x64%2F16997%2F%2B%2Frecipes%2Fsteps%2Fcompile%2F0%2Fstdout
> >
> > Original issue's description:
> > > Reland of "Update linux sysroot from Wheezy to Jessie"
> > >
> > > The last version of this change was:
> > > https://codereview.chromium.org/2748183005
> > >
> > > Which was reverted in:
> > > https://codereview.chromium.org/2776503002
> > >
> > > I've updated the expected package deps again, this
> > > time being sure to use is_chrome_branded=true when
> > > testing (which oddly seems to effect the deps).
> > >
> > > TBR=thestig (since this is effectively a reland)
> > > BUG=701894
> > >
> > > Review-Url: https://codereview.chromium.org/2772503005
> > > Cr-Commit-Position: refs/heads/master@{#459492}
> > > Committed: 7f43e46a78
> >
> > TBR=thakis@chromium.org,dpranke@chromium.org,thestig@chromium.org,sbc@chromium.org
> > # Skipping CQ checks because original CL landed less than 1 days ago.
> > NOPRESUBMIT=true
> > NOTREECHECKS=true
> > NOTRY=true
> > BUG=701894
> >
> > Review-Url: https://codereview.chromium.org/2772113002
> > Cr-Commit-Position: refs/heads/master@{#459553}
> > Committed: f2296e4fca
>
> TBR=thakis@chromium.org,dpranke@chromium.org,thestig@chromium.org,thomasanderson@chromium.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=701894
>
> Review-Url: https://codereview.chromium.org/2776773002
> Cr-Commit-Position: refs/heads/master@{#459584}
> Committed: b0d4ad8b38

TBR=thakis@chromium.org,dpranke@chromium.org,thestig@chromium.org,thomasanderson@chromium.org,thomasanderson@google.com,sbc@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=701894

Review-Url: https://codereview.chromium.org/2780763002
Cr-Original-Commit-Position: refs/heads/master@{#460070}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 75a1434be05f2ef09c307f7b70713385232a5b84
2017-03-28 12:43:32 +00:00
sbc 3fc61c9b14 Reland of "Update linux sysroot from Wheezy to Jessie" (patchset #1 id:1 of https://codereview.chromium.org/2772113002/ )
Reason for revert:
Relanding with fixed deps

Original issue's description:
> Revert of "Update linux sysroot from Wheezy to Jessie" (patchset #1 id:1 of https://codereview.chromium.org/2772503005/ )
>
> Reason for revert:
> expected_deps_x64_jessie changes are causing a failure on the official builder
>
> https://luci-logdog.appspot.com/v/?s=chromium%2Fbb%2Fchromium.chrome%2FGoogle_Chrome_Linux_x64%2F16997%2F%2B%2Frecipes%2Fsteps%2Fcompile%2F0%2Fstdout
>
> Original issue's description:
> > Reland of "Update linux sysroot from Wheezy to Jessie"
> >
> > The last version of this change was:
> > https://codereview.chromium.org/2748183005
> >
> > Which was reverted in:
> > https://codereview.chromium.org/2776503002
> >
> > I've updated the expected package deps again, this
> > time being sure to use is_chrome_branded=true when
> > testing (which oddly seems to effect the deps).
> >
> > TBR=thestig (since this is effectively a reland)
> > BUG=701894
> >
> > Review-Url: https://codereview.chromium.org/2772503005
> > Cr-Commit-Position: refs/heads/master@{#459492}
> > Committed: 7f43e46a78
>
> TBR=thakis@chromium.org,dpranke@chromium.org,thestig@chromium.org,sbc@chromium.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=701894
>
> Review-Url: https://codereview.chromium.org/2772113002
> Cr-Commit-Position: refs/heads/master@{#459553}
> Committed: f2296e4fca

TBR=thakis@chromium.org,dpranke@chromium.org,thestig@chromium.org,thomasanderson@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=701894

Review-Url: https://codereview.chromium.org/2776773002
Cr-Original-Commit-Position: refs/heads/master@{#459584}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b0d4ad8b38bfaf4c66ab07fdbe892aee8d207bed
2017-03-24 22:50:06 +00:00
thomasanderson 5434f3c02d Revert of "Update linux sysroot from Wheezy to Jessie" (patchset #1 id:1 of https://codereview.chromium.org/2772503005/ )
Reason for revert:
expected_deps_x64_jessie changes are causing a failure on the official builder

https://luci-logdog.appspot.com/v/?s=chromium%2Fbb%2Fchromium.chrome%2FGoogle_Chrome_Linux_x64%2F16997%2F%2B%2Frecipes%2Fsteps%2Fcompile%2F0%2Fstdout

Original issue's description:
> Reland of "Update linux sysroot from Wheezy to Jessie"
>
> The last version of this change was:
> https://codereview.chromium.org/2748183005
>
> Which was reverted in:
> https://codereview.chromium.org/2776503002
>
> I've updated the expected package deps again, this
> time being sure to use is_chrome_branded=true when
> testing (which oddly seems to effect the deps).
>
> TBR=thestig (since this is effectively a reland)
> BUG=701894
>
> Review-Url: https://codereview.chromium.org/2772503005
> Cr-Commit-Position: refs/heads/master@{#459492}
> Committed: 7f43e46a78

TBR=thakis@chromium.org,dpranke@chromium.org,thestig@chromium.org,sbc@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=701894

Review-Url: https://codereview.chromium.org/2772113002
Cr-Original-Commit-Position: refs/heads/master@{#459553}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f2296e4fcaef7fdced40ebf3ca736d5dc58c66cd
2017-03-24 21:16:03 +00:00
sbc ab5bc5821c Reland of "Update linux sysroot from Wheezy to Jessie"
The last version of this change was:
https://codereview.chromium.org/2748183005

Which was reverted in:
https://codereview.chromium.org/2776503002

I've updated the expected package deps again, this
time being sure to use is_chrome_branded=true when
testing (which oddly seems to effect the deps).

TBR=thestig (since this is effectively a reland)
BUG=701894

Review-Url: https://codereview.chromium.org/2772503005
Cr-Original-Commit-Position: refs/heads/master@{#459492}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7f43e46a7830cb92c08b8245f7f48f0d3a2fab47
2017-03-24 18:45:44 +00:00
wittman 853ebed1b0 Revert of Update linux sysroot from Wheezy to Jessie (patchset #3 id:40001 of https://codereview.chromium.org/2748183005/ )
Reason for revert:
Breaks the Official Linux build. Expected deps aren't matching up:

[30924/30936] ACTION //chrome/installer/linux:stable_rpm(//build/toolchain/linux:clang_x64)
FAILED: google-chrome-stable_59.0.3050.0-1.x86_64.rpm
python ../../chrome/installer/linux/flock_make_package.py linux_package.lock installer/rpm/build.sh -o . -b . -a x64 -c stable -d google_chrome
Staging common install files in '/tmp/rpm.build.PQ88Wk'...
Staging RPM install files in '/tmp/rpm.build.PQ88Wk'...
Packaging x86_64...
--- /b/c/b/Google_Chrome_Linux_x64/src/out/Release/installer/rpm/expected_deps_x86_64	2017-03-23 06:48:22.885425473 -0700
+++ /dev/fd/63	2017-03-23 08:04:33.320136041 -0700
@@ -15,7 +15,9 @@
 libasound.so.2()(64bit)
 libatk-1.0.so.0()(64bit)
 libc.so.6()(64bit)
+libc.so.6(GLIBC_2.11)(64bit)
 libc.so.6(GLIBC_2.14)(64bit)
+libc.so.6(GLIBC_2.15)(64bit)
 libc.so.6(GLIBC_2.2.5)(64bit)
 libc.so.6(GLIBC_2.3)(64bit)
 libc.so.6(GLIBC_2.3.2)(64bit)

ERROR: Shared library dependencies changed!
If this is intentional, please update:
chrome/installer/linux/rpm/expected_deps_i386
chrome/installer/linux/rpm/expected_deps_x86_64

[30925/30936] ACTION //chrome/installer/linux:unstable_deb(//build/toolchain/linux:clang_x64)
FAILED: google-chrome-unstable_59.0.3050.0-1_amd64.deb
python ../../chrome/installer/linux/flock_make_package.py linux_package.lock installer/debian/build.sh -o . -b . -a x64 -c unstable -d google_chrome -s /b/c/b/Google_Chrome_Linux_x64/src/build/linux/debian_jessie_amd64-sysroot
dpkg-shlibdeps: warning: binaries to analyze should already be installed in their package's directory
--- /b/c/b/Google_Chrome_Linux_x64/src/out/Release/installer/debian/expected_deps_x64_jessie	2017-03-23 06:48:22.885425473 -0700
+++ actual	2017-03-23 08:04:37.504250895 -0700
@@ -1,17 +1,17 @@
 gconf-service
 libasound2 (>= 1.0.16)
 libatk1.0-0 (>= 1.12.4)
-libc6 (>= 2.14)
+libc6 (>= 2.15)
 libcairo2 (>= 1.6.0)
 libcups2 (>= 1.4.0)
-libdbus-1-3 (>= 1.2.14)
+libdbus-1-3 (>= 1.1.4)
 libexpat1 (>= 2.0.1)
 libfontconfig1 (>= 2.11)
-libfreetype6 (>= 2.4.2)
+libfreetype6 (>= 2.3.9)
 libgcc1 (>= 1:4.1.1)
 libgconf-2-4 (>= 3.2.5)
 libgdk-pixbuf2.0-0 (>= 2.22.0)
-libglib2.0-0 (>= 2.31.8)
+libglib2.0-0 (>= 2.28.0)
 libgtk-3-0 (>= 3.3.16)
 libnspr4 (>= 2:4.9-2~)
 libnss3 (>= 2:3.13.4-2~)

ERROR: Shared library dependencies changed!
If this is intentional, please update:
chrome/installer/linux/debian/expected_deps_ia32_jessie
chrome/installer/linux/debian/expected_deps_ia32_wheezy
chrome/installer/linux/debian/expected_deps_x64_jessie
chrome/installer/linux/debian/expected_deps_x64_wheezy

Original issue's description:
> Update linux sysroot from Wheezy to Jessie
>
> This is an attempt to reland a change that was attempted
> several times already.  It now includes changes to the
> linux packaging expectations which previously caused
> failed on the official bots.
>
> TESTED=ninja linux_packages_all
> BUG=701894
>
> Review-Url: https://codereview.chromium.org/2748183005
> Cr-Commit-Position: refs/heads/master@{#459062}
> Committed: 94c4fa81c4

TBR=thestig@chromium.org,thomasanderson@chromium.org,dpranke@chromium.org,thakis@chromium.org,sbc@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=701894

Review-Url: https://codereview.chromium.org/2776503002
Cr-Original-Commit-Position: refs/heads/master@{#459128}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2365c833788230fc4e09d563fd2fcd4a80f06a31
2017-03-23 17:24:33 +00:00
sbc 568ed23e5f Update linux sysroot from Wheezy to Jessie
This is an attempt to reland a change that was attempted
several times already.  It now includes changes to the
linux packaging expectations which previously caused
failed on the official bots.

TESTED=ninja linux_packages_all
BUG=701894

Review-Url: https://codereview.chromium.org/2748183005
Cr-Original-Commit-Position: refs/heads/master@{#459062}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 94c4fa81c45284d0fe1e5616f52fcad56745077b
2017-03-23 13:01:18 +00:00
sbc 2744073131 Revert of Update linux sysroot images from debian/wheezy to debian/jessie (patchset #1 id:1 of https://codereview.chromium.org/2755483002/ )
Reason for revert:
Broken the official rpm builders (https://bugs.chromium.org/p/chromium/issues/detail?id=701585) and also causes an apparent regressing in the number of static initializes.

Original issue's description:
> Reland of Update linux sysroot images from debian/wheezy to debian/jessie (patchset #1 id:1 of https://codereview.chromium.org/2743253004/ )
>
> Reason for revert:
> Linux bot has now been upgraded
>
> Original issue's description:
> > Revert of Update linux sysroot images from debian/wheezy to debian/jessie (patchset #8 id:140001 of https://codereview.chromium.org/2361223002/ )
> >
> > Reason for revert:
> > Broke the linux builder which it seems is still on Precise.
> >
> > Original issue's description:
> > > Update linux sysroot images from debian/wheezy to debian/jessie
> > >
> > > BUG=564904
> > >
> > > Review-Url: https://codereview.chromium.org/2361223002
> > > Cr-Commit-Position: refs/heads/master@{#456441}
> > > Committed: 8d4f1d731f
> >
> > TBR=phajdan.jr@chromium.org,thestig@chromium.org,thomasanderson@google.com,dpranke@chromium.org
> > # Skipping CQ checks because original CL landed less than 1 days ago.
> > NOPRESUBMIT=true
> > NOTREECHECKS=true
> > NOTRY=true
> > BUG=564904
> >
> > Review-Url: https://codereview.chromium.org/2743253004
> > Cr-Commit-Position: refs/heads/master@{#456449}
> > Committed: 189891d210
>
> TBR=phajdan.jr@chromium.org,thestig@chromium.org,thomasanderson@google.com,dpranke@chromium.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=564904
>
> Review-Url: https://codereview.chromium.org/2755483002
> Cr-Commit-Position: refs/heads/master@{#456758}
> Committed: 79d4fc169a

TBR=phajdan.jr@chromium.org,thestig@chromium.org,thomasanderson@google.com,dpranke@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=564904

Review-Url: https://codereview.chromium.org/2754443003
Cr-Original-Commit-Position: refs/heads/master@{#456900}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d93f0e0cabc7d2d4570b60d97434e32749c5723f
2017-03-14 23:58:08 +00:00
sbc bc77c14d4e Reland of Update linux sysroot images from debian/wheezy to debian/jessie (patchset #1 id:1 of https://codereview.chromium.org/2743253004/ )
Reason for revert:
Linux bot has now been upgraded

Original issue's description:
> Revert of Update linux sysroot images from debian/wheezy to debian/jessie (patchset #8 id:140001 of https://codereview.chromium.org/2361223002/ )
>
> Reason for revert:
> Broke the linux builder which it seems is still on Precise.
>
> Original issue's description:
> > Update linux sysroot images from debian/wheezy to debian/jessie
> >
> > BUG=564904
> >
> > Review-Url: https://codereview.chromium.org/2361223002
> > Cr-Commit-Position: refs/heads/master@{#456441}
> > Committed: 8d4f1d731f
>
> TBR=phajdan.jr@chromium.org,thestig@chromium.org,thomasanderson@google.com,dpranke@chromium.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=564904
>
> Review-Url: https://codereview.chromium.org/2743253004
> Cr-Commit-Position: refs/heads/master@{#456449}
> Committed: 189891d210

TBR=phajdan.jr@chromium.org,thestig@chromium.org,thomasanderson@google.com,dpranke@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=564904

Review-Url: https://codereview.chromium.org/2755483002
Cr-Original-Commit-Position: refs/heads/master@{#456758}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 79d4fc169a9af62228134cf4c60714dbbe4659dd
2017-03-14 17:59:22 +00:00
sbc 5c1f817ec6 Revert of Update linux sysroot images from debian/wheezy to debian/jessie (patchset #8 id:140001 of https://codereview.chromium.org/2361223002/ )
Reason for revert:
Broke the linux builder which it seems is still on Precise.

Original issue's description:
> Update linux sysroot images from debian/wheezy to debian/jessie
>
> BUG=564904
>
> Review-Url: https://codereview.chromium.org/2361223002
> Cr-Commit-Position: refs/heads/master@{#456441}
> Committed: 8d4f1d731f

TBR=phajdan.jr@chromium.org,thestig@chromium.org,thomasanderson@google.com,dpranke@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=564904

Review-Url: https://codereview.chromium.org/2743253004
Cr-Original-Commit-Position: refs/heads/master@{#456449}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 189891d210bb98c91e155d4794dffa03d95f1e15
2017-03-13 19:07:45 +00:00
sbc 7cebfc7615 Update linux sysroot images from debian/wheezy to debian/jessie
BUG=564904

Review-Url: https://codereview.chromium.org/2361223002
Cr-Original-Commit-Position: refs/heads/master@{#456441}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8d4f1d731faf1e9564985cbec05e840e9207bef9
2017-03-13 18:37:34 +00:00
dpranke 9d467bba90 Add a build arg to control whether to use a jessie sysroot.
We're working on a class of changes in the Linux desktop UI
that won't work on Precise; they need newer Linux versions
that basically amount to needing to link against the Debian
Jessie sysroot instead of the Debian Wheezy sysroot. Previously
we were working around this by checking whether we were building
with ozone + use_kbdcommon, but that caused a dependency inversion
by making //build depend on //ui.

This changes adds a dedicated GN build arg, use_jessie_sysroot,
that we'll explicitly set instead, and that way we can avoid
the dependency inversion.

R=thomasanderson@chromium.org, tonikitoo@igalia.com
BUG=564904

Review-Url: https://codereview.chromium.org/2687203002
Cr-Original-Commit-Position: refs/heads/master@{#449505}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 657454d7091e2d6108703305a6ba1d4904df98a0
2017-02-10 01:27:18 +00:00
tonikitoo b1b83849f4 linux headless trybots keep failing to run gn
Tie the debian/jessie usage to use_xkbcommon rather
than use_ozone for now.

This is more conservative and avoids problems for ozone/headless
and other bots.

BUG=687725

Review-Url: https://codereview.chromium.org/2676643004
Cr-Original-Commit-Position: refs/heads/master@{#448468}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ef8c544029d9e7201b3d24e87af90a97702ed5b4
2017-02-07 00:41:02 +00:00
tonikitoo 5e395842c2 Build ozone/linux_os with jessie sysroot when use_ozone=true
This is needed because Debian/wheezy (currently used) does not support
libxkbcommon0/libxkbcommon-dev packages, needed for keyboard support on
Ozone/Wayland.

BUG=681562

Review-Url: https://codereview.chromium.org/2645523003
Cr-Original-Commit-Position: refs/heads/master@{#446081}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 58f836955cb7ca30cffc60a95bc337a5b6fa092c
2017-01-25 19:24:06 +00:00
thomasanderson 1dd6b18d9c Desktop Chrome OS: Build with precise sysroot
Build and link against the Ubuntu Precise amd64 sysroot on Desktop
Chrome OS instead of always using the system libraries.

BUG=638394

Committed: https://crrev.com/c575bbcd130b38994e36b0a97bfe5ceea954a643
Review-Url: https://codereview.chromium.org/2272273002
Cr-Original-Commit-Position: refs/heads/master@{#414862}
Cr-Original-Original-Commit-Position: refs/heads/master@{#414564}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ec70bbffc5d4ba75ed0f808a0b285236fa54a987
2016-08-26 23:51:13 +00:00
jianli 8e4bff5b44 Revert of Desktop Chrome OS: Build with precise sysroot (patchset #2 id:40001 of https://codereview.chromium.org/2272273002/ )
Reason for revert:
Caused webview_licenses failure:
https://build.chromium.org/p/chromium.linux/builders/Android%20Tests/builds/31063

Original issue's description:
> Desktop Chrome OS: Build with precise sysroot
>
> Build and link against the Ubuntu Precise amd64 sysroot on Desktop
> Chrome OS instead of always using the system libraries.
>
> BUG=638394
>
> Committed: https://crrev.com/c575bbcd130b38994e36b0a97bfe5ceea954a643
> Cr-Commit-Position: refs/heads/master@{#414564}

TBR=dpranke@chromium.org,thomasanderson@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=638394

Review-Url: https://codereview.chromium.org/2285563002
Cr-Original-Commit-Position: refs/heads/master@{#414594}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: faa5e808ff90870b5b5b35c65e931eec5d6285cc
2016-08-26 00:30:32 +00:00
thomasanderson 199c869b73 Desktop Chrome OS: Build with precise sysroot
Build and link against the Ubuntu Precise amd64 sysroot on Desktop
Chrome OS instead of always using the system libraries.

BUG=638394

Review-Url: https://codereview.chromium.org/2272273002
Cr-Original-Commit-Position: refs/heads/master@{#414564}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c575bbcd130b38994e36b0a97bfe5ceea954a643
2016-08-25 22:45:58 +00:00
ckulakowski 164a828694 Fix for cross compiling 32bit linux on 64bit host machine
Right now when custom sysroot is provided as gn parameter (target_sysroot)
only 32 bit custom sysroot will be used. 64 bit sysroot (which is also needed
by 32 bit build by - for example - protobuf) is expected to be found in default
location. This change adds possibility to provide path to directory containing
both sysroots for linux (32 bit and 64 bit).

BUG=622616

Review-Url: https://codereview.chromium.org/2096323002
Cr-Original-Commit-Position: refs/heads/master@{#402742}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 16c1060131d3e94aa57a241f3ed33afbdf2f2263
2016-06-29 07:10:12 +00:00
apatole 696616b539 GYP changes for arm64 linux build
This change adds support for cross compiling chrome on ARM64 linux.
Temporarily disabled nacl and tcmalloc to fix compilation errors.

BUG=613452

Review-Url: https://codereview.chromium.org/2001523002
Cr-Original-Commit-Position: refs/heads/master@{#399766}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3026e6886f052160a3ff594801d5b4dbe8a20753
2016-06-14 19:43:43 +00:00
Gordana.Cmiljanovic df4a2c58e4 MIPS64: Fix MIPS64 related issues in GN files
Sets sysroot and few missing files for MIPS64 Android.

BUG=sysroot is an empty string
TEST=gn gen out-gn/mips64-android --args="is_debug=false target_os=\"android\" target_cpu=\"mips64el\" chrome_public_apk_use_chromium_linker=false"
     ninja -C out-gn/mips64-android system_webview_apk chrome_public_apk

Review-Url: https://codereview.chromium.org/1984303002
Cr-Original-Commit-Position: refs/heads/master@{#394379}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: be0e03709bbdb62d6c8585c2a191502a41ea756f
2016-05-18 10:49:24 +00:00
hashimoto cbd03dfa59 Use target_sysroot when building for target OS on target CPU
nacl's bootstrap toolchain should also use target_sysroot.

Nacl side change: https://codereview.chromium.org/1902683004/

BUG=604971
TEST=Remove build/linux/debian_wheezy_arm-sysroot, enter chrome-sdk with an arm board, gn gen --args=$GN_ARGS out/gn && ninja -C out/gn

Review URL: https://codereview.chromium.org/1901353002

Cr-Original-Commit-Position: refs/heads/master@{#388668}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3a1ce21a7cc8c9301173b595764b6545785804e8
2016-04-21 03:05:19 +00:00
zforman 31d7d1b4ed Reverts fdca07 and makes it possible to force absolute paths.
Explicitly: This reverts the patch that reverted the patch that
removed the majority of absolute paths from linux builds, and makes
it possible to use an absolute path by setting dont_embed_build_metadata
to false.

In conjunction with codereview.chromium.org/1642193002 that modifies the codesearch
buildbot to use dont_embed_build_metadata = false, this CL should allow
codesearch to continue working, and all other buildbots and users
to gain the benefits of not requiring absolute paths.

BUG=580103

Review URL: https://codereview.chromium.org/1643523004

Cr-Original-Commit-Position: refs/heads/master@{#373432}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4b6f030a35226c0d6e412b1025e791e5391b1455
2016-02-04 02:24:31 +00:00
dsansome ac259f6da2 Revert "clang: Makes builds with clang less dependent on absolute file path"
This reverts commit fdca0741b22a4dddbf1808b8d0081651662b22c5.

This seems to break codesearch grok indexing.

BUG=580103
TBR=brettw

Review URL: https://codereview.chromium.org/1620583002

Cr-Original-Commit-Position: refs/heads/master@{#370919}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f6ea5e493b26f559ee94fcdd5b7e9a4727c62587
2016-01-22 07:22:18 +00:00
zforman 41a6d7b815 clang: Makes builds with clang less dependent on absolute file path
[Note: Dependency claims are only valid on Linux builds]

This change removes absolute file paths from several locations in
produced binaries, reducing the total number of files containing
absolute file paths from ~30k to ~4k.

Specifically, this removes absolute paths from:
.rodata (sysroot based)
.debug_str, .debug_info (debug prefix based)
.debug_line (debug prefix and sysroot based)

.debug_info still contains (on Linux) 22 absolute paths, but
as discussed below, this is most likely simple to resolve.

This can be measured by using
$ find out/Default/ -type f | grep -v ninja | xargs -I '{}' grep -l \
  'absolute-path-component' '{}' | wc -l

Before: 30420
After: 3917 (https://gist.github.com/anonymous/fd870076c990fcf792c7)

The remaining instances mostly originate from NaCL not
having the flag enabled. Enabling requires updating the
toolchain's version of clang to newer than release 3.8

Generated ninja files still have some absolute file paths. At
the very least, they contain -fdebug-prefix-map=/ABSOLUTE/PATH/TO/DIR.
This will be removed later.

BUG=439949

Review URL: https://codereview.chromium.org/1556923002

Cr-Original-Commit-Position: refs/heads/master@{#370320}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fdca0741b22a4dddbf1808b8d0081651662b22c5
2016-01-20 05:20:27 +00:00
sbc 5ef8d3ef31 GN: error out if attempting to use_sysroot with gcc
Currently out sysroots are not gcc compatible (except
for gcc 4.6 which isn't capable of building chromium).

BUG=567206

Review URL: https://codereview.chromium.org/1516483004

Cr-Original-Commit-Position: refs/heads/master@{#364131}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3e86f046bdf3df1b37189a7204095ddfa837963f
2015-12-09 19:51:18 +00:00
agrieve 937eb12d7e GN: Add an assert that sysroot exists
BUG=564869

Review URL: https://codereview.chromium.org/1493043002

Cr-Original-Commit-Position: refs/heads/master@{#363053}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 45c8e9fdd57960affdfc7712faad605920eed3be
2015-12-03 20:57:48 +00:00
brucedawson 7ddbf55277 Revert of Only build against prebuilt sysroot when using clang (patchset #3 id:40001 of https://codereview.chromium.org/1476923005/ )
Reason for revert:
Speculative revert to fix:

FAILED: cd ../../chrome; flock -- /tmp/linux_package_lock bash ../out/Release/installer/debian/build.sh -o../out/Release -b ../out/Release -a ia32 -d google_chrome -c beta
dpkg-shlibdeps: warning: binaries to analyze should already be installed in their package's directory.
4c4
< libc6 (>= 2.11)
---
> libc6 (>= 2.15)

https://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Linux/builds/43856/steps/compile/logs/stdio

Original issue's description:
> Only build against prebuilt sysroot when using clang
>
> Its is not currently possible to use gcc with the sysroot
> since the sysroot only contains C++ headers for gcc 4.6
> and gcc 4.8 is required to build chromium.  Luckily clang
> is more flexible and able to detect and work with the 4.6
> headers in the sysroot.
>
> BUG=504446
>
> Committed: https://crrev.com/ccc8c1e14c155255a8ef844704d97fa8e7d0dac2
> Cr-Commit-Position: refs/heads/master@{#361905}

TBR=dpranke@chromium.org,sbc@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=504446

Review URL: https://codereview.chromium.org/1483433002

Cr-Original-Commit-Position: refs/heads/master@{#361916}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 10c8cbc6c725a8aee45a539e0e5acefbd027e011
2015-11-26 19:28:29 +00:00
sbc 76ce1e741b Only build against prebuilt sysroot when using clang
Its is not currently possible to use gcc with the sysroot
since the sysroot only contains C++ headers for gcc 4.6
and gcc 4.8 is required to build chromium.  Luckily clang
is more flexible and able to detect and work with the 4.6
headers in the sysroot.

BUG=504446

Review URL: https://codereview.chromium.org/1476923005

Cr-Original-Commit-Position: refs/heads/master@{#361905}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ccc8c1e14c155255a8ef844704d97fa8e7d0dac2
2015-11-26 16:42:28 +00:00
sbc a2120825d2 Reland of Use sysroot by default for all linux builds (patchset #1 id:1 of https://codereview.chromium.org/1473363002/ )
Reason for revert:
Couldn't reproduce the failure.

Original issue's description:
> Revert of Use sysroot by default for all linux builds (patchset #7 id:120001 of https://codereview.chromium.org/1464983003/ )
>
> Reason for revert:
> Seems to have caused issues with goma: https://code.google.com/p/chromium/issues/detail?id=560973
>
> Original issue's description:
> > Use sysroot by default for all linux builds
> >
> > Using a sysroot was already the default for official
> > build and when cross compiling (e.g. arm, mips, x86-32).
> > This change makes it the default in all cases.
> >
> > The old behavior of building against local
> > system libraries can still be achieved by
> > setting use_sysroot=0
> >
> > BUG=504446
> >
> > Committed: https://crrev.com/a931efd5dc8d8783ce73a64fc641627866b6869d
> > Cr-Commit-Position: refs/heads/master@{#361197}
>
> TBR=dpranke@chromium.org,thestig@chromium.org,thakis@chromium.org
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=504446
>
> Committed: https://crrev.com/05373dc078f0d5d3f2fb1398db9a4008a55d9016
> Cr-Commit-Position: refs/heads/master@{#361405}

TBR=dpranke@chromium.org,thestig@chromium.org,thakis@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=504446

Review URL: https://codereview.chromium.org/1472873004

Cr-Original-Commit-Position: refs/heads/master@{#361411}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 964155752e49f75260e86ba824fcec81b3fd4c3d
2015-11-24 19:30:44 +00:00
sbc b56953cd85 Revert of Use sysroot by default for all linux builds (patchset #7 id:120001 of https://codereview.chromium.org/1464983003/ )
Reason for revert:
Seems to have caused issues with goma: https://code.google.com/p/chromium/issues/detail?id=560973

Original issue's description:
> Use sysroot by default for all linux builds
>
> Using a sysroot was already the default for official
> build and when cross compiling (e.g. arm, mips, x86-32).
> This change makes it the default in all cases.
>
> The old behavior of building against local
> system libraries can still be achieved by
> setting use_sysroot=0
>
> BUG=504446
>
> Committed: https://crrev.com/a931efd5dc8d8783ce73a64fc641627866b6869d
> Cr-Commit-Position: refs/heads/master@{#361197}

TBR=dpranke@chromium.org,thestig@chromium.org,thakis@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=504446

Review URL: https://codereview.chromium.org/1473363002

Cr-Original-Commit-Position: refs/heads/master@{#361405}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 05373dc078f0d5d3f2fb1398db9a4008a55d9016
2015-11-24 18:57:23 +00:00
sbc b5a398ffa0 Use sysroot by default for all linux builds
Using a sysroot was already the default for official
build and when cross compiling (e.g. arm, mips, x86-32).
This change makes it the default in all cases.

The old behavior of building against local
system libraries can still be achieved by
setting use_sysroot=0

BUG=504446

Review URL: https://codereview.chromium.org/1464983003

Cr-Original-Commit-Position: refs/heads/master@{#361197}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a931efd5dc8d8783ce73a64fc641627866b6869d
2015-11-23 21:56:06 +00:00
mcgrathr 17a2e29f3f GN: Harmonize ARM compiler settings with GYP
This changes various defaults about the ARM compiler setup so
that GN matches what GYP does today:
* Prefix for cross tools is arm-linux-gnueabihf- not arm-linux-gnueabi-
* arm_float_abi defaults to hard for non-Android ARMv7
* Non-CrOS ARM builds use the ARM sysroot by default
  (the one installed by install-build-deps.sh --arm)
* Define a clang_arm toolchain, pass it the -no-integrated and
  -target arm-linux-gnueabihf and switches as GYP does

R=dpranke@chromium.org, sbc@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1352313002

Cr-Original-Commit-Position: refs/heads/master@{#350100}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cc3a331e1bc91166a5d51fc1fa44fba49d1fb461
2015-09-22 03:26:20 +00:00
sbc 6f0307c00e Move linux sysroots from chrome/installer/linux to build/linux
The sysroot are generally useful (for example when
cross compiling) and not limited to use in the installer
or official releases.

Another reason to move this is that it would allow other
projects to more easily share chromium's build setup
without depending on chrome/.

Also, rename the install script to simply install-sysroot.
This way the script can keep the same name and support
multiple different debian releases without needing
to duplicate the script (e.g. when we switch to jessie).

BUG=504446
TEST=cross build chromium for arm and ia32

Review URL: https://codereview.chromium.org/1141003002

Cr-Original-Commit-Position: refs/heads/master@{#336843}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8208b4d81396c11e1f8ca8f6ffe52b9fcea87d05
2015-06-30 19:15:31 +00:00
brettw 6a9e7271f7 Add a GN flag for the Windows multi-dll build.
The first pass of moving the other Chrome-specific build flags out of the root build config file and into the new one. This requires both ffmpeg and Blink changes to finish landing.

Originally landed as https://codereview.chromium.org/1120803003/
TBR=scottmg@chromium.org
TBR=ddorwin@chromium.org (widevine)
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg

Review URL: https://codereview.chromium.org/1123433002

Cr-Original-Commit-Position: refs/heads/master@{#327998}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2b2364bb2c6fbb88e6a4550abeb9141bc7cb949c
2015-05-01 22:36:58 +00:00
rickyz c06bc70a26 Revert of Add a GN flag for the Windows multi-dll build. (patchset #3 id:40001 of https://codereview.chromium.org/1120803003/)
Reason for revert:
May have caused some link errors on windows: https://build.chromium.org/p/chromium.win/builders/Win%20x64%20GN/builds/814

Original issue's description:
> Add a GN flag for the Windows multi-dll build.
>
> The first pass of moving the other Chrome-specific build flags out of the root build config file and into the new one. This requires both ffmpeg and Blink changes to finish landing.
>
> R=scottmg@chromium.org
> TBR=ddorwin@chromium.org (widevine)
>
> Committed: https://crrev.com/edff53a35780ba2f515c7e8d4f7131c91151e1a3
> Cr-Commit-Position: refs/heads/master@{#327854}

TBR=scottmg@chromium.org,brettw@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

Review URL: https://codereview.chromium.org/1117063004

Cr-Original-Commit-Position: refs/heads/master@{#327861}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e203954b33d80072a7c8d256ffdc69fa42262765
2015-05-01 01:45:41 +00:00
brettw 8b84afe088 Add a GN flag for the Windows multi-dll build.
The first pass of moving the other Chrome-specific build flags out of the root build config file and into the new one. This requires both ffmpeg and Blink changes to finish landing.

R=scottmg@chromium.org
TBR=ddorwin@chromium.org (widevine)

Review URL: https://codereview.chromium.org/1120803003

Cr-Original-Commit-Position: refs/heads/master@{#327854}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: edff53a35780ba2f515c7e8d4f7131c91151e1a3
2015-05-01 01:10:14 +00:00
torne 1f6e035226 Remove most android_webview_build conditions from build.
Remove most references to android_webview_build from the build directory
now that we no longer support that build configuration. Fold conditions
into their parents where appropriate. Leave the variable itself defined
to 0 as not all uses in the tree have been removed yet.

A few references are left alone here and will be removed separately in
later changes that will be larger refactorings to eliminate other
variables.

BUG=440793

Review URL: https://codereview.chromium.org/1043913002

Cr-Original-Commit-Position: refs/heads/master@{#323013}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c6fe7a775af41cd98533e89a902b8b67044caa87
2015-03-31 11:51:32 +00:00
dpranke 6b94cd7a12 Update Chomium's build files to work w/ latest GN binaries.
The latest GN binaries rename cpu_arch to current_cpu and/or target_cpu
as appropriate, build_cpu_arch to host_cpu, and os to current_os and target_os as appropriate.

R=brettw@chromium.org
TBR=ddorwin@chromium.org
EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg
BUG=344767

Review URL: https://codereview.chromium.org/913373002

Cr-Original-Commit-Position: refs/heads/master@{#317223}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4327621a322c964a8bc6d1ef5a4534f0f877d63e
2015-02-20 02:56:07 +00:00
halton.huo ecccd44736 Add GN build support for Android 64-bit platforms.
gn now run with arg target_arch = "x64", arm64 and mips64el
releated changes are added as well but not verified.

BUG=none

Review URL: https://codereview.chromium.org/864173006

Cr-Original-Commit-Position: refs/heads/master@{#315680}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 98de73d11797b1b0ac7ac0b2f4234cb8f57bd2fc
2015-02-11 00:09:18 +00:00
benchan 0666f08b6b Allow sysroot to be overridden via GN arguments when using target toolchain.
The GYP flow allows 'sysroot' to be overridden via GYP_DEFINES, which is needed
in some scenarios such as building for Chrome OS. This CL declares
'target_sysroot' as a GN argument, which can be used to override the default
sysroot when compiling using the target toolchain via the GN flow.

BUG=427726
TEST=Verify that sysroot is overridden via `gn gen --args='target_sysroot=...' ...`

Review URL: https://codereview.chromium.org/683063005

Cr-Original-Commit-Position: refs/heads/master@{#301868}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4a8f241213d5618a152bc00cc4eaeb556b63d765
2014-10-29 17:37:05 +00:00
brettw@chromium.org f3470d3d53 Make GN Android build link executables.
Some minor tweaks in STL usage in GN itself to enable it to compile using the Android version of the STL. Enable this in the build (not so much because we need a GN binary on Android, but for build verification purposes).

Moved the executable_ldconfig config from the linux file to the gcc one since its shared between the Linux and Android builds. Added "-Bdynamic" and "-Wl,-z,nocopyreloc" to this on Android.

Moved some sysroot path components from sysroot.gni to android/config.gni (which sysroot uses) so it can be shared with the toolchain definitions.

Added the android_full_debug build flag. Made the "optimize off" mode of the build match the GYP build's "light optimization" on Android contingent on this flag.

Pulls out the optimize and optimize_max shared flags into one list to avoid duplication.

Adds a bunch of linker optimization flags that should be passed on non-Mac Posix platforms, and turns on dead code stripping for Mac builds.

Adds functionality to the gcc toolchain template to be able to insert strings before and after the libs. Adds a wrapper template for android toolchains that sets these accordingly to get the gross Android crtbegin/end files inserted in the right place on the linker line.

Made the android_ndk_root variable relative to the source root rather than the system root. Uses of this now rebase according to their own needs which makes some of the arguments a lot easier to follow.

Build file updates for base and libevent for Android. Implement ashmem library.

The only change on desktop linux is the addition of -Wl,--fatal-warnings to the linker line.

R=ajwong@chromium.org, cjhopman@chromium.org, scottmg@chromium.org

Review URL: https://codereview.chromium.org/275703003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@270138 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-05-13 17:41:06 +00:00
brettw@chromium.org d80b402bc9 Pull GN @ 252040, update calls
Updates all rebase_path calls to use the new parameter ordering.

Use the new getenv function and delete the Python script we had to get the home directory.

Takes advantage of the new ability to have the default value of declare_args blocks be dependent on other values. This simplifies some code.

R=scottmg@chromium.org

Review URL: https://codereview.chromium.org/164773005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@252065 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-19 20:31:52 +00:00
brettw@chromium.org a561545dc2 GN build fixes, mostly for Mac.
This hooks up detection for the "-arch" flag on Mac to set the GYP "ARCH" xcode variable. GN then removes the -arch argument from the compiler args, since GYP will then re-add it based on the ARCH value. Previously, not doing this resulting in mutliple "-arch" arguments to the compiler since GYP would always insert its own.

Disables some warnings on Windows for the re2 target to match the GYP build. The third warning (4018) that the GYP build sets is disabled globally so there's no need to do it for this target.

Hooks up some iOS SDK stuff.
BUG=336667
TBR=thakis@chromium.org

Review URL: https://codereview.chromium.org/141433015

git-svn-id: http://src.chromium.org/svn/trunk/src/build@247206 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-27 07:41:23 +00:00
petarj@mips.com 750c628744 [MIPS] Set make_global_settings correctly for MIPS-Linux
Fix build regression for MIPS Linux that came with r245563.

BUG= build regression for MIPS Linux
TEST= build Chromium for MIPS Linux

Review URL: https://codereview.chromium.org/143963006

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246300 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-01-22 11:41:53 +00:00