 Chromium Code Reviews
 Chromium Code Reviews Issue 549603003:
  Create Mojo service for locking/unlocking screen orientation.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 549603003:
  Create Mojo service for locking/unlocking screen orientation.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| OLD | NEW | 
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be | 
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. | 
| 4 | 4 | 
| 5 # Autocompletion config for YouCompleteMe in Chromium. | 5 # Autocompletion config for YouCompleteMe in Chromium. | 
| 6 # | 6 # | 
| 7 # USAGE: | 7 # USAGE: | 
| 8 # | 8 # | 
| 9 # 1. Install YCM [https://github.com/Valloric/YouCompleteMe] | 9 # 1. Install YCM [https://github.com/Valloric/YouCompleteMe] | 
| 10 # (Googlers should check out [go/ycm]) | 10 # (Googlers should check out [go/ycm]) | 
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 77 return os.path.join(curdir, 'src') | 77 return os.path.join(curdir, 'src') | 
| 78 | 78 | 
| 79 | 79 | 
| 80 # Largely copied from ninja-build.vim (guess_configuration) | 80 # Largely copied from ninja-build.vim (guess_configuration) | 
| 81 def GetNinjaOutputDirectory(chrome_root): | 81 def GetNinjaOutputDirectory(chrome_root): | 
| 82 """Returns <chrome_root>/<output_dir>/(Release|Debug). | 82 """Returns <chrome_root>/<output_dir>/(Release|Debug). | 
| 83 | 83 | 
| 84 The configuration chosen is the one most recently generated/built. Detects | 84 The configuration chosen is the one most recently generated/built. Detects | 
| 85 a custom output_dir specified by GYP_GENERATOR_FLAGS.""" | 85 a custom output_dir specified by GYP_GENERATOR_FLAGS.""" | 
| 86 | 86 | 
| 87 output_dir = 'out' | 87 output_dir = 'out_linux' | 
| 
qsr
2014/09/22 13:01:48
I don't think you want to commit that.
 | |
| 88 generator_flags = os.getenv('GYP_GENERATOR_FLAGS', '').split(' ') | 88 generator_flags = os.getenv('GYP_GENERATOR_FLAGS', '').split(' ') | 
| 89 for flag in generator_flags: | 89 for flag in generator_flags: | 
| 90 name_value = flag.split('=', 1) | 90 name_value = flag.split('=', 1) | 
| 91 if len(name_value) == 2 and name_value[0] == 'output_dir': | 91 if len(name_value) == 2 and name_value[0] == 'output_dir': | 
| 92 output_dir = name_value[1] | 92 output_dir = name_value[1] | 
| 93 | 93 | 
| 94 root = os.path.join(chrome_root, output_dir) | 94 root = os.path.join(chrome_root, output_dir) | 
| 95 debug_path = os.path.join(root, 'Debug') | 95 debug_path = os.path.join(root, 'Debug') | 
| 96 release_path = os.path.join(root, 'Release') | 96 release_path = os.path.join(root, 'Release') | 
| 97 | 97 | 
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 225 """ | 225 """ | 
| 226 chrome_root = FindChromeSrcFromFilename(filename) | 226 chrome_root = FindChromeSrcFromFilename(filename) | 
| 227 chrome_flags = GetClangCommandFromNinjaForFilename(chrome_root, | 227 chrome_flags = GetClangCommandFromNinjaForFilename(chrome_root, | 
| 228 filename) | 228 filename) | 
| 229 final_flags = flags + chrome_flags | 229 final_flags = flags + chrome_flags | 
| 230 | 230 | 
| 231 return { | 231 return { | 
| 232 'flags': final_flags, | 232 'flags': final_flags, | 
| 233 'do_cache': True | 233 'do_cache': True | 
| 234 } | 234 } | 
| OLD | NEW |