win64-aarch64.py (1956B)
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.9.6" 16 config = { 17 "tooltool_manifest_file": "win64-aarch64.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": "aarch64", 26 "partial_env": { 27 "PATH": ( 28 "%(abs_work_dir)s\\openh264;" 29 "{MOZ_FETCHES_DIR}\\clang\\bin\\;" 30 "{_VSPATH}\\VC\\bin\\Hostx64\\arm64;" 31 "{_VSPATH}\\VC\\bin\\Hostx64\\x64;" 32 # 32-bit redist here for our dump_syms.exe 33 "{_VSPATH}/VC/redist/x86/Microsoft.VC141.CRT;" 34 "{_VSPATH}/SDK/Redist/ucrt/DLLs/x86;" 35 "{_VSPATH}/DIA SDK/bin;%(PATH)s;" 36 ).format(_VSPATH=VSPATH, MOZ_FETCHES_DIR=os.environ["MOZ_FETCHES_DIR"]), 37 "INCLUDES": ( 38 f"-I{VSPATH}\\VC\\include " 39 f"-I{VSPATH}\\VC\\atlmfc\\include " 40 f"-I{VSPATH}\\SDK\\Include\\10.0.17134.0\\ucrt " 41 f"-I{VSPATH}\\SDK\\Include\\10.0.17134.0\\shared " 42 f"-I{VSPATH}\\SDK\\Include\\10.0.17134.0\\um " 43 f"-I{VSPATH}\\SDK\\Include\\10.0.17134.0\\winrt " 44 ), 45 "LIB": ( 46 f"{VSPATH}/VC/lib/arm64;" 47 f"{VSPATH}/VC/atlmfc/lib/arm64;" 48 f"{VSPATH}/SDK/lib/10.0.17134.0/ucrt/arm64;" 49 f"{VSPATH}/SDK/lib/10.0.17134.0/um/arm64;" 50 ), 51 "CFLAGS": ("--target=aarch64-windows-msvc"), 52 }, 53 }