Corentin Wallez
48a1923afb
Revert "Create new src/tests BUILD.gn file."
...
This reverts commit 672d29d14c .
Reason for revert: https://bugs.chromium.org/p/chromium/issues/detail?id=913171
Original change's description:
> Create new src/tests BUILD.gn file.
>
> Move all test-related build stuff into its own BUILD.gn file. This
> required moving the dawn_generator template into a common file, so it
> can be called by both BUILD.gn and src/tests/BUILD.gn.
>
> [This is a reland of https://dawn-review.googlesource.com/c/dawn/+/2940
> with a fix for mock_dawn.]
>
> Bug: dawn:61
> Change-Id: Id1e6d0c2b07caa2610cebe206511e972ac18fe8d
> Reviewed-on: https://dawn-review.googlesource.com/c/3020
> Reviewed-by: Kai Ninomiya <kainino@chromium.org >
> Reviewed-by: Corentin Wallez <cwallez@chromium.org >
> Commit-Queue: Stephen White <senorblanco@chromium.org >
TBR=cwallez@chromium.org ,kainino@chromium.org ,senorblanco@chromium.org
Change-Id: I54cdc558b128935dc8a8d22ec2b5e879271c35ae
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: dawn:61
Reviewed-on: https://dawn-review.googlesource.com/c/3080
Reviewed-by: Corentin Wallez <cwallez@chromium.org >
Commit-Queue: Corentin Wallez <cwallez@chromium.org >
2018-12-08 10:35:53 +00:00
Stephen White
672d29d14c
Create new src/tests BUILD.gn file.
...
Move all test-related build stuff into its own BUILD.gn file. This
required moving the dawn_generator template into a common file, so it
can be called by both BUILD.gn and src/tests/BUILD.gn.
[This is a reland of https://dawn-review.googlesource.com/c/dawn/+/2940
with a fix for mock_dawn.]
Bug: dawn:61
Change-Id: Id1e6d0c2b07caa2610cebe206511e972ac18fe8d
Reviewed-on: https://dawn-review.googlesource.com/c/3020
Reviewed-by: Kai Ninomiya <kainino@chromium.org >
Reviewed-by: Corentin Wallez <cwallez@chromium.org >
Commit-Queue: Stephen White <senorblanco@chromium.org >
2018-12-07 21:54:48 +00:00
Kai Ninomiya
bdd887fce7
Revert "Create new src/tests BUILD.gn file."
...
This reverts commit 0a7ddd43d7 .
Reason for revert: Broke compile in https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/linux-rel/12314
See also: https://chromium-review.googlesource.com/c/chromium/src/+/1364694
Original change's description:
> Create new src/tests BUILD.gn file.
>
> Move all test-related build stuff into its own BUILD.gn file. This
> required moving the dawn_generator template into a common file, so it
> can be called by both BUILD.gn and src/tests/BUILD.gn.
>
> Bug: dawn:61
>
> Change-Id: Icaa459270bdaa60306e053b93835812e70dba6f5
> Reviewed-on: https://dawn-review.googlesource.com/c/2940
> Reviewed-by: Kai Ninomiya <kainino@chromium.org >
> Reviewed-by: Stephen White <senorblanco@chromium.org >
TBR=cwallez@chromium.org ,kainino@chromium.org ,senorblanco@chromium.org
Change-Id: If6d8c759f63c12b244471016f10e92c07299303f
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: dawn:61
Reviewed-on: https://dawn-review.googlesource.com/c/3000
Reviewed-by: Kai Ninomiya <kainino@chromium.org >
Commit-Queue: Kai Ninomiya <kainino@chromium.org >
2018-12-06 06:41:59 +00:00
Stephen White
0a7ddd43d7
Create new src/tests BUILD.gn file.
...
Move all test-related build stuff into its own BUILD.gn file. This
required moving the dawn_generator template into a common file, so it
can be called by both BUILD.gn and src/tests/BUILD.gn.
Bug: dawn:61
Change-Id: Icaa459270bdaa60306e053b93835812e70dba6f5
Reviewed-on: https://dawn-review.googlesource.com/c/2940
Reviewed-by: Kai Ninomiya <kainino@chromium.org >
Reviewed-by: Stephen White <senorblanco@chromium.org >
2018-12-05 22:42:23 +00:00
Corentin Wallez
16092faa16
Roll shaderc and glslang and use their BUILD.gn
...
This rolls glslang and shaderc to be able to use their BUILD.gn files,
and also rolls SPIRV-Tools and spirv-headers to have compatible
versions.
BUG=chromium:870747
Change-Id: I13c615f6f3d148c9b69f06547992bf5910e04e62
Reviewed-on: https://dawn-review.googlesource.com/c/1680
Reviewed-by: Kai Ninomiya <kainino@chromium.org >
Commit-Queue: Corentin Wallez <cwallez@chromium.org >
2018-10-04 17:17:57 +00:00
James Darpinian
f168c57694
Add new dependencies to gitignore and fix gclient url.
...
BUG=
Change-Id: I7c89038d0da127dec92813b3b597153ff8a534c9
Reviewed-on: https://dawn-review.googlesource.com/1701
Reviewed-by: Kai Ninomiya <kainino@chromium.org >
Reviewed-by: Corentin Wallez <cwallez@chromium.org >
Commit-Queue: James Darpinian <jdarpinian@google.com >
2018-10-01 18:02:04 +00:00
Corentin Wallez
76664ed8d0
BUILD.gn: Make dawn_standalone default to false
...
BUG=chromium:870747
Change-Id: I9d80bb8a73227a9a9e5a7c466ac5b40a10fc0106
Reviewed-on: https://dawn-review.googlesource.com/1641
Reviewed-by: Kai Ninomiya <kainino@chromium.org >
Commit-Queue: Corentin Wallez <cwallez@chromium.org >
2018-09-25 21:52:44 +00:00
Corentin Wallez
4c35101b9c
PRESUBMIT.py: Add formatting checks.
...
GN files are checked using the canned presubmit check but we cannot do
the same for C/C++ files: the canned check uses git cl format which can
only use clang-format 5.0 and requires formatting of all the source
code.
Instead we write our own clang-format check, reusing the script that
checks formatting on Travis. To have a recent version of clang-format we
import one from a helper repo.
This also fix a formatting error in .gn and adds licenses to the
clang-format linting scripts.
Change-Id: I4d8208472a8a6bd32ae3ef41c3145abf270a4c37
2018-09-11 08:06:36 -04:00
Corentin Wallez
3bb0bb940e
Generator,BUILD.gn: add optional python path, use it for Jinja2
...
This makes the Jinja2 (and MarkupSafe) installation hermetic by
adding it to the DEPS and making the code generator add them in the
first spot of the python path.
2018-08-14 21:42:32 +02:00
Corentin Wallez
c28936043a
Add a .gclient file to be copied to boostrap a dawn checkout.
2018-08-14 14:33:19 +02:00
Corentin Wallez
f5f7ab128f
BUILD.gn: Move last third_party deps to third_party/BUILD.gn
2018-08-14 14:33:19 +02:00
Corentin Wallez
649e2feda4
Add GN build for tests and their third party deps.
2018-08-09 20:54:43 +02:00
Corentin Wallez
ff9626c751
travis_lint_format: skip deleted files
2018-07-25 11:27:55 +02:00
Stephen White
1ec5782bff
Fix travis lint script (again).
...
Don't error out if there are no files to format.
2018-04-28 00:03:53 -04:00
Stephen White
6d90e01858
Expand allowable formats for color attachments.
...
Don't assert on color formats which can be cleared with a
floating-point clear value.
So far, these are { unorm } x { r, rg, rgba, bgra }.
Fix linter error when no files to check.
2018-04-13 11:53:12 -04:00
Corentin Wallez
8828f2ad82
Don't check formatting on generator/
2018-04-06 16:03:57 -04:00
Corentin Wallez
234111c379
Give up on formatting tests and examples
...
clang-format really doesn't like the builder pattern. We can re-enable
it when we get rid of it.
2018-02-12 15:19:11 -05:00
Corentin Wallez
e3b1f51c04
Add travis hook to check formatting
2017-11-28 16:18:39 -05:00