tor-browser

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

moz.build (1070B)


      1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
      2 # vim: set filetype=python:
      3 # This Source Code Form is subject to the terms of the Mozilla Public
      4 # License, v. 2.0. If a copy of the MPL was not distributed with this
      5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      6 
      7 EXPORTS.mozilla.htmlaccel += [
      8     "htmlaccel.h",
      9     "htmlaccelEnabled.h",
     10     "htmlaccelNotInline.h",
     11 ]
     12 
     13 # Make sure the result is consistent with mozilla::htmlaccel::htmlaccelEnabled().
     14 #
     15 # Due to https://github.com/llvm/llvm-project/issues/160886, the entry points
     16 # need to be _not_ inline and, therefore, need a compilation unit. This should
     17 # go away once the LLVM bug is fixed.
     18 
     19 if (
     20     (CONFIG["TARGET_CPU"] == "x86_64")
     21     or (CONFIG["TARGET_CPU"] == "aarch64" and CONFIG["TARGET_ENDIANNESS"] == "little")
     22 ) and (CONFIG["CC_TYPE"] != "gcc" or int(CONFIG["CC_VERSION"].split(".")[0]) >= 12):
     23     SOURCES += [
     24         "htmlaccelNotInline.cpp",
     25     ]
     26     SOURCES["htmlaccelNotInline.cpp"].flags += CONFIG["HTML_ACCEL_FLAGS"]
     27 
     28 TEST_DIRS += ["gtest"]
     29 
     30 FINAL_LIBRARY = "xul"