1. 29 Jun, 2020 1 commit
    • Dirk Pranke's avatar
      Add a Str() function to gclient for use in DEPS files. · c7eed83f
      Dirk Pranke authored
      gclient's existing functionality for handling variables is
      ambiguous: the value of a variable can either be a string literal
      or an expression fragment. The implementation is required to
      parse a value as an expression, and, if it is legal, treat it
      as an expression instead of a literal. This means that
      
        gclient_gn_args_file = 'src/build/args.gni'
        gclient_gn_args = ['xcode_version']
        vars = {
          'xcode_version': 'xcode-12'
        }
      
      would cause a problem because gclient would try to parse the
      variable as an expression, and 'xcode' would not be defined.
      
      This patch adds a workaround for this, where you can instead
      use the Str() function to explicitly tell gclient to treat the
      value as a string and not a potential expression.
      
      The above example would be changed to:
      
        gclient_gn_args_file = 'src/build/args.gni'
        gclient_gn_args = ['xcode_version']
        vars = {
          'xcode_version': Str('xcode-12')
        }
      
      The variable may still be used in every context where it was legal
      to be used before.
      
      Bug: 1099242
      
      Change-Id: Ic2a17eea5f7098113bdba0557fe29e1a931a74b8
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2268406Reviewed-by: 's avatarBen Pastene <bpastene@chromium.org>
      Reviewed-by: 's avatarEdward Lesmes <ehmaldonado@chromium.org>
      Commit-Queue: Dirk Pranke <dpranke@google.com>
      c7eed83f
  2. 27 Jun, 2020 1 commit
  3. 26 Jun, 2020 2 commits
  4. 25 Jun, 2020 2 commits
  5. 24 Jun, 2020 1 commit
  6. 23 Jun, 2020 3 commits
  7. 22 Jun, 2020 5 commits
  8. 20 Jun, 2020 1 commit
  9. 19 Jun, 2020 4 commits
  10. 18 Jun, 2020 7 commits
  11. 17 Jun, 2020 7 commits
  12. 16 Jun, 2020 5 commits
  13. 15 Jun, 2020 1 commit