tor-browser

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

moz.build (2180B)


      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 XPCSHELL_TESTS_MANIFESTS += ["tests/unit/xpcshell.toml"]
      8 
      9 TESTING_JS_MODULES += [
     10     "tests/LangPackMatcherTestUtils.sys.mjs",
     11 ]
     12 
     13 toolkit = CONFIG["MOZ_WIDGET_TOOLKIT"]
     14 
     15 if toolkit == "windows":
     16     DIRS += ["windows"]
     17 elif toolkit in ("cocoa", "uikit"):
     18     DIRS += ["mac"]
     19 elif toolkit == "gtk":
     20     DIRS += ["gtk"]
     21 elif toolkit == "android":
     22     DIRS += ["android"]
     23 
     24 XPIDL_SOURCES += [
     25     "mozILocaleService.idl",
     26     "mozIOSPreferences.idl",
     27 ]
     28 
     29 XPIDL_MODULE = "locale"
     30 
     31 EXPORTS += [
     32     "nsLanguageAtomService.h",
     33     "nsUConvPropertySearch.h",
     34 ]
     35 
     36 EXPORTS.mozilla.intl += [
     37     "AppDateTimeFormat.h",
     38     "EncodingToLang.h",
     39     "LocaleService.h",
     40     "MozLocaleBindings.h",
     41     "OSPreferences.h",
     42     "Quotes.h",
     43 ]
     44 
     45 UNIFIED_SOURCES += [
     46     "AppDateTimeFormat.cpp",
     47     "EncodingToLang.cpp",
     48     "LocaleService.cpp",
     49     "nsLanguageAtomService.cpp",
     50     "nsUConvPropertySearch.cpp",
     51     "OSPreferences.cpp",
     52     "Quotes.cpp",
     53 ]
     54 
     55 EXTRA_JS_MODULES += [
     56     "LangPackMatcher.sys.mjs",
     57 ]
     58 
     59 XPCOM_MANIFESTS += [
     60     "components.conf",
     61 ]
     62 
     63 FINAL_LIBRARY = "xul"
     64 
     65 LOCAL_INCLUDES += [
     66     "/intl/uconv",
     67 ]
     68 
     69 RESOURCE_FILES += [
     70     "language.properties",
     71 ]
     72 
     73 TEST_DIRS += ["tests/gtest"]
     74 
     75 if CONFIG["COMPILE_ENVIRONMENT"]:
     76     CbindgenHeader(
     77         "fluent_langneg_ffi_generated.h",
     78         inputs=["/intl/locale/rust/fluent-langneg-ffi"],
     79     )
     80     CbindgenHeader(
     81         "locale_service_glue_generated.h",
     82         inputs=["/intl/locale/rust/locale_service_glue"],
     83     )
     84     CbindgenHeader(
     85         "oxilangtag_ffi_generated.h", inputs=["/intl/locale/rust/oxilangtag-ffi"]
     86     )
     87     CbindgenHeader(
     88         "unic_langid_ffi_generated.h", inputs=["/intl/locale/rust/unic-langid-ffi"]
     89     )
     90 
     91     EXPORTS.mozilla.intl += [
     92         "!fluent_langneg_ffi_generated.h",
     93         "!locale_service_glue_generated.h",
     94         "!oxilangtag_ffi_generated.h",
     95         "!unic_langid_ffi_generated.h",
     96     ]