[M120 Migration][Gamepad]Add gamepad event latency Test code
[platform/framework/web/chromium-efl.git] / build / toolchain / check_rewrapper_cfg.py
1 #!/usr/bin/env python3
2 # Copyright 2023 The Chromium Authors
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import os
7 import sys
8
9
10 def main():
11   if len(sys.argv) != 2:
12     print("This should have a path to reclient config file in its args.",
13           file=sys.stderr)
14     return 1
15
16   # Check path to rbe_cc_cfg_file.
17   if os.path.isfile(sys.argv[1]):
18     return 0
19
20   print("""
21   reclient config file "%s" doesn't exist, you may need to set
22   "download_remoteexec_cfg" in .gclient like
23   ```
24   solutions = [
25     {
26       "name"        : "src",
27       # ...
28       "custom_vars" : {
29         "download_remoteexec_cfg": True,
30       },
31     },
32   ]
33   ```
34   and re-run `gclient sync`.
35
36   Or you may not set appropriate `rbe_cfg_dir` value in args.gn.
37
38   See
39   https://chromium.googlesource.com/chromium/src/+/main/docs/linux/build_instructions.md#use-reclient
40   for more details.
41   """ % (sys.argv[1]),
42         file=sys.stderr)
43
44   return 1
45
46
47 if __name__ == "__main__":
48   sys.exit(main())