Commit Graph

17 Commits

Author SHA1 Message Date
David 'Digit' Turner
1f5799c155 BUILD.gn: Fix file for use with Fuchsia platform build.
In order to upgrade the version of glslang used by the
Fuchsia platform source tree, BUILD.gn needs to be
slightly modified to care about the case where it is
not used with the Chromium //build configuration:

- Remove a new compiler warning to ensure proper
  compilation with -Werror (which is the default).

- Add a build target for spirv-remap, which is used
  by Fuchsia at build time to optimize the precompiled
  shaders of some of its graphics libraries.
2019-06-21 16:00:30 +02:00
Tom Anderson
e10c87a306 Remove non-source sources from binary targets
No behavior changes.  Please see [1] for why this is necessary.

[1] https://bugs.chromium.org/p/chromium/issues/detail?id=964411
2019-05-17 10:54:03 -07:00
Shahbaz Youssefi
741fc4ab77 Build.gn: allow optimization in glslang lib and standalone 2019-05-16 23:53:15 -04:00
John Kessenich
bd0f5ad278
Merge pull request #1733 from null77/fix-msvc-warn
Suppress MSVC warning about unused variable.
2019-03-18 23:41:27 +07:00
Jamie Madill
099a80dd76 Suppress MSVC warning about unused variable.
One variable was only used in an 'assert' call. MSVC flagged this
as unused in Release. Suppress the warning and also add a static
cast to void so the variable becomes referenced.
2019-03-18 11:38:53 -04:00
Jamie Madill
e880e96f4d GN: Make glslang_validator an executable.
The target was accidentally listed as a source_set.
2019-03-11 15:45:31 -04:00
Jamie Madill
1a1651c6e9 Disable Clang extra semicolon warning.
Usually this warning is disabled by default. But when turned on Clang
complains about extra semicolons in Glslang headers. Turn this off for
now. See http://crbug.com/926235
2019-01-30 11:37:15 -05:00
Jamie Madill
08fe88a94c Suppress a MSVC cast warning in GN.
Also came up when using the BUILD.gn file with ANGLE.

ANGLE bug: 3088
2019-01-24 10:56:20 -05:00
Jamie Madill
9706106ecd Suppress inconsistent override warning in GN.
This came up when trying to roll the new glslang into Chromium.

ANGLE bug: 3088
2019-01-23 18:58:10 -05:00
Jamie Madill
0ceaebcff9 Fix a few GN build issues.
* adds a source set for default resource limits to mirror CMake
 * adds a target executable for the standalone validator
 * fixes a missing warning

Allows ANGLE to use the integrated BUILD.gn instead of a custom one.

ANGLE bug: 3088
2019-01-18 17:01:46 -05:00
Corentin Wallez
ab5382cf79 BUILD.gn: remove reference to non-existent header 2018-10-30 16:11:46 +01:00
Corentin Wallez
5403f380a4 BUILD.gn: remove the static_library target.
This had no sources and depended on a source_set which is an invalid use
of GN because the source_set gets propagated to dependents of the
static_library instead.
2018-10-17 12:22:28 +02:00
Corentin Wallez
6857c23825 BUILD.gn: glslang_sources need the public config too 2018-10-03 13:15:23 -04:00
Corentin Wallez
a26827adc2 BUILD.gn: only use complete_static_lib on mac 2018-10-02 09:28:15 -04:00
Corentin Wallez
873734dd3f BUILD.gn: make the static_lib complete to fix the build on OSX 2018-09-26 14:51:19 -07:00
Dan Sinclair
b29c58ea45 Review feedback 2018-09-24 18:40:38 -04:00
Dan Sinclair
257b25c81f Add BUILD.gn configuration.
This CL adds the necessary configuration to build glslang inside a
Chromium checkout. Two build warnings were fixed in the process to
make things compile.
2018-09-24 16:57:55 -04:00