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

23 Коммитов

Автор SHA1 Сообщение Дата
sbc 5a296ba8f1 Fix arm library path for nacl tests
With this change linux_arm bot now gets past the isolate_tests
phase and fails when trying to run the tests on swarming.

BUG=564059

Review-Url: https://codereview.chromium.org/2550663003
Cr-Original-Commit-Position: refs/heads/master@{#436375}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e1e756db7c44f44ce809170d12865341cb6c1ad5
2016-12-05 19:53:28 +00:00
mcgrathr b9f715e76c GN: Build NaCl tests for x64 too on x86 Windows
x86 Windows builds of Chrome run on both x86 Windows and x64 Windows.
On x64 Windows, only x64 NaCl is supported, so those tests are needed too.

BUG=609684
R=bbudge@chromium.org, dpranke@chromium.org, phosek@chromium.org

Review-Url: https://codereview.chromium.org/1976753002
Cr-Original-Commit-Position: refs/heads/master@{#393433}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a03f119d7af32b119fb755abe3d6a661b55548e8
2016-05-13 02:24:25 +00:00
brettw 41661dd32f GN: forward_variables_from shouldn't clobber vars.
The documentation for forward_variables_from specifies that it will give an error if the variable already exists in the target scope. But this was not implemented. Instead, the value would be silently overwritten.

This change implements the error, and fixes the times this happens in the Linux and Android builds.

Review-Url: https://codereview.chromium.org/1943583002
Cr-Original-Commit-Position: refs/heads/master@{#391136}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0785c950dce7221b10c21e911795e181076b90db
2016-05-03 01:09:10 +00:00
agrieve c0ea73e93d Fix nacl_tuple "Undefined identifier" gn gen failure for arm64
BUG=568883

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

Cr-Original-Commit-Position: refs/heads/master@{#365535}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 40cdc388ef3b07937f4726d85636e74e447e64c9
2015-12-16 15:37:07 +00:00
phosek 0b0c0ef5ab GN: Build PPAPI extensions tests
PPAPI extensions tests use the same structure as NaCl browser tests and
as such can use the same template which was refactored and moved to
a .gni file which is now used by both types of tests.

BUG=462791, 512900

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

Cr-Original-Commit-Position: refs/heads/master@{#365369}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b460625d15a1ea80272d125a63233d823d095a1d
2015-12-15 23:02:18 +00:00
phosek 6d9a36f71d GN: Build Non-SFI version of NaCl browser tests
Non-SFI uses PNaCl toolchain, but pexes need to be pre-translated
for the target platform, and the nmf format is different hence
requiring a different action.

BUG=462791

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

Cr-Original-Commit-Position: refs/heads/master@{#364442}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 92e64362e9e2f615b1aef34c069ce78a3713dfe0
2015-12-10 19:54:42 +00:00
phosek d820fbfe37 GN: Support building liblouis library
This library and the table data is a part of Chrome OS.

BUG=512906

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

Cr-Original-Commit-Position: refs/heads/master@{#362518}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 67643e64039078d54f4b6842369d33b8ba131fc7
2015-12-01 22:09:42 +00:00
phosek ce41dc04a5 Build NaCl browser tests with GN
Support for building NaCl browser tests under GN.

BUG=462791

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

Cr-Original-Commit-Position: refs/heads/master@{#362075}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: aceb9d08d689f31ef987bdc56c5630640807e09a
2015-11-30 01:01:16 +00:00
Gordana.Cmiljanovic 01edeca201 gn: add support for clang for MIPS
This changes enables chrome for MIPS (Linux and Android)
to be compiled with clang when using gn build.

However, there are still few issues for build to complete successfully:

- "treat_warnings_as_errors=false" must be set for both Android and Linux.
- in case of Linux ldflags retreived by 'exec_script("sysroot_ld_path.py",..'
  are ignored by linker, which is causing link failure for 'chrome' target.

BUG=gn gen for MIPS
TEST=gn gen out-gn/mips --args="is_debug=false target_os=\"android\" target_cpu=\"mipsel\" is_clang=true treat_warnings_as_errors=false"
     ninja -C out-gn/mips chrome_public_apk

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

Cr-Original-Commit-Position: refs/heads/master@{#362002}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: af7fa747c3c2e433028103b45173c0275333abc7
2015-11-27 15:06:22 +00:00
phosek 06a3b67c04 GN: Use NaCl's newlib objdump for PNaCl
PNaCl doesn't provide objdump, so use NaCl newlib version when
generating nmf files for PNaCl since the create_nmf.py script requires
objdump to be set.

BUG=462791

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

Cr-Original-Commit-Position: refs/heads/master@{#359970}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 102f32212c2e08281d38f59a802377934318680e
2015-11-17 01:46:21 +00:00
mcgrathr f011fc4d0d GN: Make NaCl toolchains run on Windows host
The toolchain executables have the ".exe" suffix on Windows.  Plumb
through the readelf, nm, and strip tools for NaCl toolchains.  These
were accidentally using default host tools, which happen to work on
other host platforms, but don't exist on Windows.

BUG= 512869
R=dpranke@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#359715}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 34fa90d65772e8b432d5c37cd607ed6d6dcc5ca0
2015-11-14 01:17:54 +00:00
phosek 043a4998cc Factor out nmf generation into a GN template
This change factors out the logic for generating nmf files into a GN
template so that it can be reused across different GN files.

BUG=462791
R=dpranke@chromium.org, brettw@chromium.org, mcgrathr@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#359661}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 998705e6e775b7af409775d980bf237ce3652780
2015-11-13 22:15:03 +00:00
mcgrathr c81c8cf99c GN: Suppress MSVC "const should be initialized" warning in NaCl code
Some of the NaCl code uses a perfectly sensible code pattern that the
MSVC compiler misunderstands and issues a warning for.  Suppress that
warning for NaCl code.

BUG= 512869
R=dpranke@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#356712}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8379ac5916cb0ef3832c1369fca6d547ed07673b
2015-10-29 00:57:45 +00:00
mcgrathr 6354052b17 GN: Add __STDC_LIMIT_MACROS to nacl_defines for Windows
Some of the NaCl trusted code uses <stdint.h> macros, and
these are not available by default on Windows.

BUG= 512869
R=dpranke@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#356648}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 12b5c7822d2be26718a0128886d25a071c958100
2015-10-28 21:19:24 +00:00
mcgrathr 186310f0f9 GN: Strip NaCl IRT and save its .debug file
With a simple tweak, the toolchain already knows how to strip the
nexe and leave the unstripped nexe where it can be found.  After
that, the unstripped nexe can just be copied as the .debug file and
a single objcopy command suffices to annotate the stripped file with
a pointer to the .debug file.

Also factor out computations about toolchain directory names into
//build/config/nacl/config.gni where they can be reused.

BUG= 546352
R=bbudge@chromium.org, dpranke@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#356340}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7a379aa7f9ff6fe49bd441869887c7b517a1a0a0
2015-10-27 18:12:26 +00:00
phosek f27159c662 Build nacl_helper_nonsfi with GN
Support building nacl_helper_nonsfi under GN.

BUG=462791

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

Cr-Original-Commit-Position: refs/heads/master@{#356234}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 636bceb3f0fc3062735203ef149e91736ec89024
2015-10-27 03:37:52 +00:00
mcgrathr 134c3c8746 GN: nacl_defines: Drop _BSD_SOURCE, _DEFAULT_SOURCE; conditionalize on OS
Drop _BSD_SOURCE and _DEFAULT_SOURCE defines, which are redundant with
_GNU_SOURCE on Linux.  This brings the set affecting Linux in line with
the standalone NaCl build.

Conditionalize these defines to affect only Linux, Android, and NaCl
toolchains.  That is, none of these are used on Mac (or Windows).  This
makes the GN build consistent with the GYP and Scons builds.  On Mac,
defining _POSIX_C_SOURCE (without also defining _DARWIN_C_SOURCE) makes
the system headers disable some symbols that NaCl sources need.

BUG=545236
R=dpranke@chromium.org, mseaborn@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#355327}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2640ff9632d74c85964e100b34811f90569fe510
2015-10-21 17:41:20 +00:00
mcgrathr d1723ee66d GN: Don't pass -integrated-as to pnacl-clang
The -integrated-as switch is desireable for nacl-clang, but it is
meaningless for (and not accepted by) pnacl-clang.  So don't treat
the pnacl case the same as the nacl-clang case.

BUG= 531702
R=dpranke@chromium.org, dschuff@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#353467}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8c3671cfb041b9874af8faea6061338c774d2bc3
2015-10-10 18:59:15 +00:00
mcgrathr d0b35241c7 GN: Fix NaCl IRT build options
The NaCl IRT is a special case and needs to be built with specific
code-generation and optimization options (we also always want debug
symbols).  This plumbs through an is_nacl_irt variable that configs
can test, and uses that to make the standard configs do the right
thing.  The resulting compiler and linker flags are a close
approximation of what GYP uses.

BUG= 531702
R=dpranke@chromium.org, dschuff@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#353385}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0b9de3622acdbc1fba625094b369090f65145b78
2015-10-09 21:23:50 +00:00
phosek 15ed185123 Build PPAPI PNaCl Newlib tests with GN
Support building PPAPI NaCl tests with PNaCl/Newlib-based toolchain.

BUG=462791

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

Cr-Original-Commit-Position: refs/heads/master@{#352678}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c635281a6809c3f1547d6819b8a87d94b5bdbefe
2015-10-06 20:35:55 +00:00
phosek 5d6c4d3c61 Build PPAPI NaCl Glibc tests with GN
Support building PPAPI NaCl tests with GCC/Glibc-based toolchain.

BUG=462791

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

Cr-Original-Commit-Position: refs/heads/master@{#350467}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 70a330fb376e614a401e738f6e7442674b0052bd
2015-09-24 03:24:26 +00:00
mseaborn 51689e658e NaCl GN build: Remove some unneeded #defines
This syncs the GN build with Gyp.

The per-OS #defines were removed from Gyp here:
https://codereview.chromium.org/788193003

The per-arch #defines were removed from Gyp here:
https://codereview.chromium.org/902903002

BUG=440012
TEST=build

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

Cr-Original-Commit-Position: refs/heads/master@{#349537}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9ae8d7875f0ad6b8511940131640d920749982ec
2015-09-17 23:30:15 +00:00
dpranke 3d822fcafd Add nacl_toolchain to //build and flip to using it in the GN Build.
With this change, in the Chromium repo NaCl will now be built solely using Chromium's versions of the GN build files, rather than a mixture of chromium and NaCl files.

This will allow us to delete the NaCl versions in a subsequent NaCl-side CL and switch to pulling the chromium versions in via a DEPS entry, and thus "unfork" the build.

R=brettw@chromium.org, ncbray@chromium.org, mcgrathr@chromium.org
BUG=433528

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

Cr-Original-Commit-Position: refs/heads/master@{#346452}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fa6ffe2fb9f488ddb859555f5abc29de72407a62
2015-08-31 20:18:45 +00:00