Debian Codegraph @

testing/mozharness/configs/openh264/win64.py

raw
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5 import os
6 import sys
7
8 import mozharness
9
10 external_tools_path = os.path.join(
11 os.path.abspath(os.path.dirname(os.path.dirname(mozharness.__file__))),
12 "external_tools",
13 )
14
15 VSPATH = "%(abs_work_dir)s\\vs2017_15.8.4"
16 config = {
17 "tooltool_manifest_file": "win.manifest",
18 "exes": {
19 "gittool.py": [sys.executable, os.path.join(external_tools_path, "gittool.py")],
20 "python3": "c:\\mozilla-build\\python\\python3.exe",
21 },
22 "dump_syms_binary": "{}/dump_syms/dump_syms.exe".format(
23 os.environ["MOZ_FETCHES_DIR"]
24 ),
25 "arch": "x64",
26 "partial_env": {
27 "PATH": (
28 "{MOZ_FETCHES_DIR}\\clang\\bin\\;"
29 "{MOZ_FETCHES_DIR}\\nasm;"
30 "{_VSPATH}\\VC\\bin\\Hostx64\\x64;%(PATH)s;"
31 # 32-bit redist here for our dump_syms.exe
32 "{_VSPATH}/VC/redist/x86/Microsoft.VC141.CRT;"
33 "{_VSPATH}/SDK/Redist/ucrt/DLLs/x86;"
34 "{_VSPATH}/DIA SDK/bin"
35 ).format(_VSPATH=VSPATH, MOZ_FETCHES_DIR=os.environ["MOZ_FETCHES_DIR"]),
36 "INCLUDES": (
37 f"-I{VSPATH}\\VC\\include "
38 f"-I{VSPATH}\\VC\\atlmfc\\include "
39 f"-I{VSPATH}\\SDK\\Include\\10.0.17134.0\\ucrt "
40 f"-I{VSPATH}\\SDK\\Include\\10.0.17134.0\\shared "
41 f"-I{VSPATH}\\SDK\\Include\\10.0.17134.0\\um "
42 f"-I{VSPATH}\\SDK\\Include\\10.0.17134.0\\winrt "
43 ),
44 "LIB": (
45 f"{VSPATH}/VC/lib/x64;"
46 f"{VSPATH}/VC/atlmfc/lib/x64;"
47 f"{VSPATH}/SDK/lib/10.0.17134.0/ucrt/x64;"
48 f"{VSPATH}/SDK/lib/10.0.17134.0/um/x64;"
49 ),
50 },
51 }