tor-browser

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

zucchini.configure (835B)


      1 # -*- Mode: python; c-basic-offset: 4; 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 
      8 @depends(target)
      9 def zucchini_is_available(target):
     10     # Desktop Linux, macOS or Windows: we exclude Android by checking for GNU.
     11     return (target.os, target.kernel) == ("GNU", "Linux") or target.os in (
     12         "OSX",
     13         "WINNT",
     14     )
     15 
     16 
     17 with only_when(zucchini_is_available):
     18     option(
     19         "--disable-zucchini",
     20         help="Disable zucchini support",
     21     )
     22 
     23     set_config("MOZ_ZUCCHINI", True, when="--enable-zucchini")
     24     set_define("MOZ_ZUCCHINI", True, when="--enable-zucchini")