tor-browser

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

moz.build (1451B)


      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.intl += [
      8     "FileSource.h",
      9     "FluentBindings.h",
     10     "FluentBundle.h",
     11     "FluentResource.h",
     12     "L10nRegistry.h",
     13     "Localization.h",
     14     "LocalizationBindings.h",
     15     "RegistryBindings.h",
     16 ]
     17 
     18 UNIFIED_SOURCES += [
     19     "FileSource.cpp",
     20     "FluentBundle.cpp",
     21     "FluentResource.cpp",
     22     "L10nRegistry.cpp",
     23     "Localization.cpp",
     24 ]
     25 
     26 TEST_DIRS += [
     27     "rust/gtest",
     28     "test/gtest",
     29 ]
     30 
     31 include("/ipc/chromium/chromium-config.mozbuild")
     32 
     33 USE_LIBS += ["intlcomponents"]
     34 
     35 if CONFIG["COMPILE_ENVIRONMENT"]:
     36     CbindgenHeader("fluent_ffi_generated.h", inputs=["/intl/l10n/rust/fluent-ffi"])
     37 
     38     CbindgenHeader(
     39         "l10nregistry_ffi_generated.h", inputs=["/intl/l10n/rust/l10nregistry-ffi"]
     40     )
     41 
     42     CbindgenHeader(
     43         "localization_ffi_generated.h", inputs=["/intl/l10n/rust/localization-ffi"]
     44     )
     45 
     46     EXPORTS.mozilla.intl += [
     47         "!fluent_ffi_generated.h",
     48         "!l10nregistry_ffi_generated.h",
     49         "!localization_ffi_generated.h",
     50     ]
     51 
     52 XPCSHELL_TESTS_MANIFESTS += ["test/xpcshell.toml"]
     53 MOCHITEST_CHROME_MANIFESTS += ["test/mochitest/chrome.toml"]
     54 
     55 SPHINX_TREES["/l10n"] = "docs"
     56 
     57 FINAL_LIBRARY = "xul"