gn: Optionally disable optimizations and HLSL
authorShahbaz Youssefi <ShabbyX@gmail.com>
Fri, 3 Jul 2020 16:34:06 +0000 (12:34 -0400)
committerShahbaz Youssefi <ShabbyX@gmail.com>
Fri, 3 Jul 2020 19:06:19 +0000 (15:06 -0400)
commit8f8f1bc518eded7df1b6676551981ec9be30dc98
tree3b0afc9435737552a9b16f9f211fa8eba613de4f
parent4728509962e673ed06fefc27632baeca20f1158a
gn: Optionally disable optimizations and HLSL

To reduce the binary size of ANGLE, a gn override is added
(glslang_angle) which:

- Controls whether ENABLE_OPT=1 is set
- Customizes the build for the Vulkan backend of ANGLE.  As a first
  step, this removes HLSL functionality which together with no
  optimization shave ~2.5MB off of ANGLE's binary size.

Upcoming changes will add a macro for GLSLANG_ANGLE similar to
GLSLANG_WEB that will strip features from glslang to support only what
ANGLE needs.

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
BUILD.gn