tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

linux32.py (1283B)


      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 
      7 import mozharness
      8 
      9 external_tools_path = os.path.join(
     10    os.path.abspath(os.path.dirname(os.path.dirname(mozharness.__file__))),
     11    "external_tools",
     12 )
     13 
     14 config = {
     15    "exes": {
     16        "gittool.py": [os.path.join(external_tools_path, "gittool.py")],
     17        "python3": "python3",
     18    },
     19    "dump_syms_binary": "{}/dump_syms/dump_syms".format(os.environ["MOZ_FETCHES_DIR"]),
     20    "arch": "x86",
     21    "operating_system": "linux",
     22    "partial_env": {
     23        "CXXFLAGS": (
     24            "--sysroot {MOZ_FETCHES_DIR}/sysroot-i686-linux-gnu".format(
     25                MOZ_FETCHES_DIR=os.environ["MOZ_FETCHES_DIR"]
     26            )
     27        ),
     28        "LDFLAGS": (
     29            "--sysroot {MOZ_FETCHES_DIR}/sysroot-i686-linux-gnu".format(
     30                MOZ_FETCHES_DIR=os.environ["MOZ_FETCHES_DIR"]
     31            )
     32        ),
     33        "PATH": (
     34            "{MOZ_FETCHES_DIR}/clang/bin:"
     35            "{MOZ_FETCHES_DIR}/binutils/bin:"
     36            "{MOZ_FETCHES_DIR}/nasm:%(PATH)s".format(
     37                MOZ_FETCHES_DIR=os.environ["MOZ_FETCHES_DIR"]
     38            )
     39        ),
     40    },
     41 }