build_gn.patch 978 B

12345678910111213141516171819202122
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Ales Pergl <[email protected]>
  3. Date: Thu, 20 Sep 2018 17:44:29 -0700
  4. Subject: build_gn.patch
  5. These are variables we add to the root BUILDCONFIG so that they're available
  6. everywhere, without having to import("//electron/.../flags.gni").
  7. diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn
  8. index 26a23e459a62ddb6adff2748a70882aaa091a40a..237827d7a88ace74ec28208b0f879ae8354d7623 100644
  9. --- a/build/config/BUILDCONFIG.gn
  10. +++ b/build/config/BUILDCONFIG.gn
  11. @@ -123,6 +123,9 @@ if (current_os == "") {
  12. # even if the value is overridden, which is wasteful. See first bullet.
  13. declare_args() {
  14. + is_electron_build = false
  15. + is_mas_build = false
  16. +
  17. # Set to enable the official build level of optimization. This has nothing
  18. # to do with branding, but enables an additional level of optimization above
  19. # release (!is_debug). This might be better expressed as a tri-state