Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1908|回复: 7
打印 上一主题 下一主题

官方hg下的源码

[复制链接]

1228

主题

1996

帖子

7572

积分

认证用户组

Rank: 5Rank: 5

积分
7572
跳转到指定楼层
楼主
发表于 2020-8-4 15:43:59 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 Qter 于 2020-8-6 11:56 编辑
  1. hg clone https://hg.mozilla.org/mozilla-central source/
  2. cd source/
  3. hg clone https://hg.mozilla.org/comm-central comm/
复制代码
源码目录改变后恢复(在/comm目录下)
  1. hg update --clean
复制代码
在线bug查看
BugZilla


在线问题交流聊天室  Matrix chat rooms
(e.g. #maildev),
we recommend saving your profile name with the current format Firstname Lastname (:username) in order to be easily searchable and allow the Thunderbird team to offer better support.

扩展开发者
https://thunderbird.topicbox.com/groups/addons

在线代码搜索
SearchFox

编译配置参数说明
Configuring build options.
两种编译选项
1.mk
mk_add_options 传送给 client.mk
MOZ_OBJDIR 程序编译生成目录
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
并行编译 -j1 -j2 -j3 -j4
mk_add_options MOZ_MAKE_FLAGS="-j4"
2.configure
ac_add_options 传送给 configure
//debug
ac_add_options --enable-debug
ac_add_options --disable-optimize
ac_add_options --enable-debug-js-modules
//release
ac_add_options --disable-debug
ac_add_options --enable-optimize
//指定要编译的程序
--Firefox
ac_add_options --enable-application=browser
--Thunderbird
ac_add_options --enable-application=comm/mail
--SeaMonkey
ac_add_options --enable-application=suite
--Calendar (Lightning Extension, uses Thunderbird)
ac_add_options --enable-application=comm/mail
ac_add_options --enable-calendar
//编译优化
ac_add_options --enable-optimize
--Microsoft compilers -O1
ac_add_options --enable-optimize=-O2
//扩展Extensions
ac_add_options --enable-extensions=default|all|ext1,ext2,-skipext3
//测试 Tests
ac_add_options --disable-tests
//本地语言设置 Localization
mk_add_options MOZ_CO_LOCALES=ISOcode
ac_add_options --enable-ui-locale=ISOcode
ac_add_options --with-l10n-base=/path/to/base/dir
//其它选项
--帮助选择编译选项??
mk_add_options AUTOCLOBBER=1
--是否支持加密传送邮件
ac_add_options --disable-crypto
ac_add_options --enable-crypto         --默认
--崩溃报告
ac_add_options --enable-crashreporter
./mach run --enable-crash-reporter
--警告为错误
ac_add_options --enable-warnings-as-errors
--加速构建??
ac_add_options --with-ccache=/path/to/.mozbuild/sccache/sccache

//更多配置可参考
comm\mail\config\mozconfigs\ 目录下的文件

通过环境变量指定特定的mozconfig配置文件
env MOZCONFIG=/path/to/mozconfig-dbg ./mach build
env MOZCONFIG=/path/to/mozconfig-dbg ./mach run

export MOZCONFIG=/path/to/mozilla/mozconfig-thunderbird
./mach build

//查看完整的编译选项
./configure --help



Lint and Format Code
For JavaScript code we use both:
命令行
  1. $ ../mach lint path/to/a/file.js --fix
  2. $ ../mach lint path/to/a/directory/ --fix
  3. $ ../mach lint path/to/a/file.js
复制代码
编辑器

eslint plugins for various editors
Prettier plugins for various editors
vs code
Prettier - Code formatter  VS Code plugin by Esben Petersen
ESLint VS Code plugin by Dirk Baeumer


运行测试程序
XPCShell
  1. mach xpcshell-test comm/mail/components/extensions/test/xpcshell
复制代码
Mochitest
  1. mach mochitest mail/components/extensions/test/browser
复制代码


关于编译
mach
  1. $ cd objdir-firefox
  2. $ mach build
复制代码
How to do localization stuff.
https://firefox-source-docs.mozilla.org/build/buildsystem/locales.html
  1. ./mach build
  2. ./mach package
  3. ./mach build installers-zh-CN
复制代码
https://gfritzsche-demo.readthedocs.io/en/latest/build/buildsystem/locales.html
Transvision and https://dxr.mozilla.org/l10n-central/source/.

  1. ~/.mozbuild/l10n-central
复制代码




回复

使用道具 举报

1228

主题

1996

帖子

7572

积分

认证用户组

Rank: 5Rank: 5

积分
7572
沙发
 楼主| 发表于 2020-8-5 09:45:16 | 只看该作者
本帖最后由 Qter 于 2020-8-5 10:18 编辑

扩展
https://addons.thunderbird.net/zh-CN/thunderbird/


Debugging
https://extensionworkshop.com/documentation/develop/debugging/
https://developer.thunderbird.net/add-ons/tips-and-tricks
  1. nglayout.debug.disable_xul_cache
  2. -purgecaches
复制代码
https://developer.thunderbird.net/add-ons/resources
回复 支持 反对

使用道具 举报

1228

主题

1996

帖子

7572

积分

认证用户组

Rank: 5Rank: 5

积分
7572
板凳
 楼主| 发表于 2020-8-5 10:42:32 | 只看该作者
回复 支持 反对

使用道具 举报

1228

主题

1996

帖子

7572

积分

认证用户组

Rank: 5Rank: 5

积分
7572
地板
 楼主| 发表于 2020-8-5 15:19:35 | 只看该作者
  1. $ ./configure --help
  2. Adding configure options from f:\Thunderbird_build\source\mozconfig
  3.   --enable-application=comm/mail
  4. checking for vcs source checkout... hg
  5. checking whether cross compiling... no
  6. Usage: configure.py [options]

  7. Options: [defaults in brackets after descriptions]
  8.   Help options:
  9.     --help                    print this message

  10.   Options from build\moz.configure\bindgen.configure:
  11.     --with-clang-path         Absolute path to a Clang binary for bindgen (version 3.9.x or above)
  12.     --with-libclang-path      Absolute path to a directory containing Clang/LLVM libraries for bindgen (version 3.9.x or above)

  13.   Options from build\moz.configure\flags.configure:
  14.     --disable-new-pass-manager
  15.                               Use the legacy LLVM pass manager in clang builds

  16.   Options from build\moz.configure\headers.configure:
  17.     --with-linux-headers      location where the Linux kernel headers can be found

  18.   Options from build\moz.configure\init.configure:
  19.     --enable-application      Application to build. Same as --enable-project.
  20.     --enable-project          Project to build [browser]
  21.     --enable-update-channel   Select application update channel [default]
  22.     --host                    Define the system type performing the build
  23.     --target                  Define the system type where the resulting executables will be used
  24.     --with-external-source-dir
  25.                               External directory containing additional build files
  26.     --with-version-file-path  Specify a custom path to app version files instead of auto-detecting

  27.   Options from build\moz.configure\lto-pgo.configure:
  28.     --enable-lto={full,thin,cross}
  29.                               Enable LTO
  30.     --enable-profile-generate={cross}
  31.                               Build a PGO instrumented binary
  32.     --enable-profile-use={cross}
  33.                               Use a generated profile during the build
  34.     --with-pgo-jarlog         Use the provided jarlog file when packaging during a profile-use build
  35.     --with-pgo-profile-path   Path to the directory with unmerged profile data to use during the build

  36.   Options from build\moz.configure\memory.configure:
  37.     --enable-jemalloc         Replace memory allocator with jemalloc

  38.   Options from build\moz.configure\node.configure:
  39.     --disable-nodejs          Require Node.js to build

  40.   Options from build\moz.configure\nspr.configure:
  41.     --with-system-nspr        Use system NSPR

  42.   Options from build\moz.configure\nss.configure:
  43.     --with-system-nss         Use system NSS

  44.   Options from build\moz.configure\old.configure:
  45.     --cache-file              Help missing for old configure options
  46.     --datadir                 Help missing for old configure options
  47.     --enable-crashreporter    Help missing for old configure options
  48.     --enable-dbus             Help missing for old configure options
  49.     --enable-debug-js-modules
  50.                               Help missing for old configure options
  51.     --enable-dump-painting    Help missing for old configure options
  52.     --enable-extensions       Help missing for old configure options
  53.     --enable-libproxy         Help missing for old configure options
  54.     --enable-logrefcnt        Help missing for old configure options
  55.     --enable-mobile-optimize  Help missing for old configure options
  56.     --enable-necko-wifi       Help missing for old configure options
  57.     --enable-negotiateauth    Help missing for old configure options
  58.     --enable-official-branding
  59.                               Help missing for old configure options
  60.     --enable-parental-controls
  61.                               Help missing for old configure options
  62.     --enable-pref-extensions  Help missing for old configure options
  63.     --enable-sandbox          Help missing for old configure options
  64.     --enable-startupcache     Help missing for old configure options
  65.     --enable-system-cairo     Help missing for old configure options
  66.     --enable-system-extension-dirs
  67.                               Help missing for old configure options
  68.     --enable-system-pixman    Help missing for old configure options
  69.     --enable-universalchardet
  70.                               Help missing for old configure options
  71.     --enable-updater          Help missing for old configure options
  72.     --enable-xul              Help missing for old configure options
  73.     --enable-zipwriter        Help missing for old configure options
  74.     --includedir              Help missing for old configure options
  75.     --libdir                  Help missing for old configure options
  76.     --prefix                  Help missing for old configure options
  77.     --with-android-distribution-directory
  78.                               Help missing for old configure options
  79.     --with-android-max-sdk    Help missing for old configure options
  80.     --with-android-min-sdk    Help missing for old configure options
  81.     --with-app-basename       Help missing for old configure options
  82.     --with-app-name           Help missing for old configure options
  83.     --with-branding           Help missing for old configure options
  84.     --with-distribution-id    Help missing for old configure options
  85.     --with-macbundlename-prefix
  86.                               Help missing for old configure options
  87.     --with-system-libevent    Help missing for old configure options
  88.     --with-system-png         Help missing for old configure options
  89.     --with-user-appdir        Help missing for old configure options
  90.     --x-includes              Help missing for old configure options
  91.     --x-libraries             Help missing for old configure options

  92.   Options from build\moz.configure\rust.configure:
  93.     --enable-rust-tests       Enable building and running of Rust tests during `make check`

  94.   Options from build\moz.configure\toolchain.configure:
  95.     --disable-cargo-incremental
  96.                               Disable incremental rust compilation.
  97.     --disable-debug-symbols   Disable debug symbols using the given compiler flags
  98.     --disable-optimize        Disable optimizations via compiler flags
  99.     --enable-address-sanitizer
  100.                               Enable Address Sanitizer
  101.     --enable-clang-plugin     Enable building with the Clang plugin (gecko specific static analyzers)
  102.     --enable-clang-plugin-alpha
  103.                               Enable static analysis with clang-plugin alpha checks.
  104.     --enable-coverage         Enable code coverage
  105.     --enable-cpp-rtti         Enable C++ RTTI
  106.     --enable-frame-pointers   Enable frame pointers
  107.     --enable-fuzzing          Enable fuzzing support
  108.     --enable-gold             Enable GNU Gold Linker when it is not already the default
  109.     --enable-hardening        Enables security hardening compiler options
  110.     --enable-linker           Select the linker {bfd, gold, ld64, lld, lld-*}
  111.     --enable-memory-sanitizer
  112.                               Enable Memory Sanitizer
  113.     --enable-mozsearch-plugin
  114.                               Enable building with the mozsearch indexer plugin
  115.     --enable-release          Build with more conservative, release engineering-oriented options. This may slow down builds.
  116.     --enable-signed-overflow-sanitizer
  117.                               Enable UndefinedBehavior Sanitizer (Signed Integer Overflow Parts)
  118.     --enable-stdcxx-compat    Enable compatibility with older libstdc++
  119.     --enable-thread-sanitizer
  120.                               Enable Thread Sanitizer
  121.     --enable-undefined-sanitizer
  122.                               Enable UndefinedBehavior Sanitizer
  123.     --enable-unsigned-overflow-sanitizer
  124.                               Enable UndefinedBehavior Sanitizer (Unsigned Integer Overflow Parts)
  125.     --with-ccache             Enable compiling with ccache
  126.     --with-compiler-wrapper   Enable compiling with wrappers such as distcc and ccache
  127.     --with-toolchain-prefix   Prefix for the target toolchain

  128.   Options from build\moz.configure\update-programs.configure:
  129.     --disable-verify-mar      Disable verifying MAR signatures
  130.     --enable-default-browser-agent
  131.                               Enable building the default browser agent

  132.   Options from build\moz.configure\warnings.configure:
  133.     --enable-warnings-as-errors
  134.                               Enable treating warnings as errors

  135.   Options from js\ffi.configure:
  136.     --with-system-ffi         Use system libffi (located with pkgconfig)

  137.   Options from js\moz.configure:
  138.     --disable-cranelift       Disable Cranelift code generator for wasm
  139.     --disable-ctypes          Disable js-ctypes
  140.     --disable-profiling       Do not set compile flags necessary for using sampling profilers (e.g. shark, perf)
  141.     --disable-shared-memory   Disable JS/WebAssembly shared memory and atomics
  142.     --disable-trace-logging   Disable trace logging
  143.     --disable-typed-objects   Disable typed objects
  144.     --disable-wasm-gc         Disable WebAssembly GC
  145.     --disable-wasm-multi-value
  146.                               Disable WebAssembly multi-value blocks and function calls
  147.     --disable-wasm-private-reftypes
  148.                               Disable WebAssembly private reference types
  149.     --disable-wasm-reftypes   Disable WebAssembly reference types
  150.     --enable-callgrind        Enable callgrind profiling
  151.     --enable-gc-probes        Turn on probes for allocation and finalization
  152.     --enable-gczeal           Enable zealous GCing
  153.     --enable-instruments      Enable instruments remote profiling
  154.     --enable-ion              Deprecated
  155.     --enable-jit              Enable use of the JITs
  156.     --enable-jitspew          Enable the Jit spew and IONFLAGS environment variable
  157.     --enable-js-shell         Build the JS shell
  158.     --enable-masm-verbose     Enable MacroAssembler verbosity of generated code.
  159.     --enable-more-deterministic
  160.                               Enable changes that make the shell more deterministic
  161.     --enable-oom-breakpoint   Enable a breakpoint function for artificial OOMs
  162.     --enable-perf             Enable Linux perf integration
  163.     --enable-pipeline-operator
  164.                               Enable pipeline operator
  165.     --enable-rust-simd        Enable explicit SIMD in Rust code.
  166.     --enable-simulator={arm,arm64,mips32,mips64}
  167.                               Enable a JIT code simulator for the specified architecture
  168.     --enable-small-chunk-size
  169.                               Allocate memory for JS GC things in smaller chunks
  170.     --enable-smoosh           Enable SmooshMonkey (new JS engine frontend)
  171.     --enable-vtune            Enable VTune profiling
  172.     --enable-wasm-codegen-debug
  173.                               Enable debugging for wasm codegen
  174.     --enable-wasm-simd        Enable WebAssembly SIMD
  175.     --with-cross-lib          Use dir as the location for arm libraries [/usr/unknown-unknown-unknown]
  176.     --with-jitreport-granularity={0,1,2,3}
  177.                               Default granularity at which to report JIT code to external tools (0 - no info, 1 - code ranges for while functions only, 2 - per-line information, 3 - per-op information) [3]
  178.     --with-qemu-exe           Use path as an arm emulator on host platforms
  179.     --with-sixgill            Enable static checking of code using sixgill
  180.     --with-system-icu         Use system ICU
  181.     --without-intl-api        Disable ECMAScript Internationalization API

  182.   Options from moz.configure:
  183.     --build-backends={ChromeMap,CompileDB,CppEclipse,FasterMake,FasterMake+RecursiveMake,GnConfigGen,GnMozbuildWriter,RecursiveMake,TestManifest,VisualStudio}
  184.                               Build backends to generate [RecursiveMake,FasterMake,VisualStudio]
  185.     --disable-compile-environment
  186.                               Disable compiler/library checks
  187.     --disable-gtest-in-build  Force disable building the gtest libxul during the build.
  188.     --disable-icf             Disable Identical Code Folding
  189.     --disable-install-strip   Enable stripping of libs & executables when packaging
  190.     --disable-tests           Do not build test libraries & programs
  191.     --enable-artifact-build-symbols={full}
  192.                               Download symbols when artifact builds are enabled.
  193.     --enable-artifact-builds  Download and use prebuilt binary artifacts.
  194.     --enable-build-backend={ChromeMap,CompileDB,CppEclipse,FasterMake,FasterMake+RecursiveMake,GnConfigGen,GnMozbuildWriter,RecursiveMake,TestManifest,VisualStudio}
  195.                               Deprecated
  196.     --enable-debug            Enable building with developer debug info (using the given compiler flags).
  197.     --enable-dtrace           Build with dtrace support
  198.     --enable-rust-debug       Build Rust code with debug assertions turned on.
  199.     --enable-strip            Enable stripping of libs & executables
  200.     --enable-ui-locale        Select the user interface locale (default: en-US) [en-US]
  201.     --enable-valgrind         Enable Valgrind integration hooks
  202.     --with-debug-label        Debug DEBUG_<value> for each comma-separated value given
  203.     --with-system-zlib        Use system libz

  204.   Options from toolkit\moz.configure:
  205.     --allow-addon-sideload    Addon sideloading is allowed
  206.     --disable-accessibility   Disable accessibility support
  207.     --disable-av1             Disable av1 video support
  208.     --disable-cdp             Disable remote agent
  209.     --disable-ffmpeg          Disable FFmpeg for fragmented H264/AAC decoding
  210.     --disable-fmp4            Disable support for in built Fragmented MP4 parsing
  211.     --disable-geckodriver     Do not build geckodriver
  212.     --disable-marionette      Disable Marionette remote protocol
  213.     --disable-new-cert-storage
  214.                               Disable new certificate storage
  215.     --disable-printing        Disable printing support
  216.     --disable-pulseaudio      Disable PulseAudio audio backend.
  217.     --disable-skia            Disable use of Skia
  218.     --disable-synth-speechd   Disable speech-dispatcher support
  219.     --disable-webspeech       Disable support for HTML Speech API
  220.     --disable-webspeechtestbackend
  221.                               Disable support for HTML Speech API Test Backend
  222.     --disable-wmf             Disable support for Windows Media Foundation
  223.     --enable-address-sanitizer-reporter
  224.                               Enable Address Sanitizer Reporter Extension
  225.     --enable-alsa             Enable ALSA audio backend.
  226.     --enable-app-system-headers
  227.                               Use additional system headers defined in $MOZ_BUILD_APP/app-system-headers.mozbuild
  228.     --enable-bundled-fonts    Enable support for bundled fonts on desktop platforms
  229.     --enable-chrome-format={omni,jar,flat}
  230.                               Select FORMAT of chrome files during packaging. [omni]
  231.     --enable-default-toolkit={cairo-gtk3,cairo-gtk3-wayland}
  232.                               Select default toolkit [cairo-gtk3]
  233.     --enable-dmd              Enable Dark Matter Detector (heap profiler). Also enables jemalloc, replace-malloc and profiling
  234.     --enable-forkserver       Enable fork server
  235.     --enable-gpsd             Enable gpsd support
  236.     --enable-ipdl-tests       Enable expensive IPDL tests
  237.     --enable-jack             Enable JACK audio backend.
  238.     --enable-jprof            Enable jprof profiling tool (needs mozilla/tools/jprof)
  239.     --enable-launcher-process
  240.                               Enable launcher process by default
  241.     --enable-layout-debugger  Enable layout debugger
  242.     --enable-openmax          Enable OpenMAX IL for video/audio decoding
  243.     --enable-proxy-bypass-protection
  244.                               Prevent suspected or confirmed proxy bypasses
  245.     --enable-raw              Enable support for RAW media
  246.     --enable-reflow-perf      Enable reflow performance tracing
  247.     --enable-skia-pdf         Enable Skia PDF
  248.     --enable-skia-pdf-sfntly  Enable SFNTLY font subsetting in Skia PDF
  249.     --enable-tasktracer       Enable TaskTracer
  250.     --enable-webrender-debugger
  251.                               Build the websocket debug server in WebRender
  252.     --enable-webrtc           Enable support for WebRTC
  253.     --with-adjust-sdk-keyfile
  254.                               Use the secret key contained in the given keyfile for Adjust SDK requests
  255.     --with-bing-api-keyfile   Use the client id and secret key contained in the given keyfile for Bing API requests
  256.     --with-gl-provider        Set GL provider backend type
  257.     --with-google-location-service-api-keyfile
  258.                               Use the secret key contained in the given keyfile for Google Location Service API requests
  259.     --with-google-safebrowsing-api-keyfile
  260.                               Use the secret key contained in the given keyfile for Google Safebrowsing API requests
  261.     --with-l10n-base          Path to l10n repositories
  262.     --with-leanplum-sdk-keyfile
  263.                               Use the client id and secret key contained in the given keyfile for Leanplum SDK requests
  264.     --with-mozilla-api-keyfile
  265.                               Use the secret key contained in the given keyfile for Mozilla API requests
  266.     --with-pocket-api-keyfile
  267.                               Use the secret key contained in the given keyfile for Pocket API requests
  268.     --with-system-jpeg        Use system libjpeg (installed at given prefix)
  269.     --with-system-libvpx      Use system libvpx (located with pkgconfig)
  270.     --with-system-webp        Use system libwebp (located with pkgconfig)
  271.     --with-unsigned-addon-scopes={app,system}
  272.                               Addon scopes where signature is not required
  273.     --with-wasm-sandboxed-libraries={graphite,ogg}
  274.                               Enable wasm sandboxing for the selected libraries


  275. Environment variables:
  276.   Options from build\moz.configure\bindgen.configure:
  277.     BINDGEN_CFLAGS            Options bindgen should pass to the C/C++ parser
  278.     CBINDGEN                  Path to cbindgen
  279.     RUSTFMT                   Path to the rustfmt program

  280.   Options from build\moz.configure\init.configure:
  281.     CONFIG_SHELL              Path to a POSIX shell
  282.     DIST                      DIST directory
  283.     HG                        Path to the hg program
  284.     MOZBUILD_STATE_PATH       Path to a persistent state directory for the build system and related tools
  285.     MOZCONFIG                 Mozconfig location
  286.     MOZILLABUILD              Path to Mozilla Build (Windows-only)
  287.     MOZILLA_OFFICIAL          Build an official release
  288.     MOZ_AUTOMATION            Enable options for automated builds
  289.     OLD_CONFIGURE             Path to the old configure script
  290.     PYTHON3                   Python 3 interpreter (3.6 or later)

  291.   Options from build\moz.configure\lto-pgo.configure:
  292.     LLVM_PROFDATA             Path to the llvm_profdata program
  293.     MOZ_LD64_KNOWN_GOOD       Indicate that ld64 is free of symbol aliasing bugs.

  294.   Options from build\moz.configure\node.configure:
  295.     NODEJS                    Path to nodejs

  296.   Options from build\moz.configure\old.configure:
  297.     AUTOCONF                  Path to autoconf 2.13

  298.   Options from build\moz.configure\pkg.configure:
  299.     PKG_CONFIG                Path to the pkg_config program

  300.   Options from build\moz.configure\rust.configure:
  301.     CARGO                     Path to the Cargo package manager
  302.     RUSTC                     Path to the rust compiler
  303.     RUSTDOC                   Path to the rustdoc program

  304.   Options from build\moz.configure\toolchain.configure:
  305.     AR                        Path to the ar program
  306.     AS                        Path to the assembler
  307.     CC                        Path to the target C compiler
  308.     CCACHE_PREFIX             Compiler prefix to use when using ccache
  309.     CXX                       Path to the target C++ compiler
  310.     HOST_CC                   Path to the host C compiler
  311.     HOST_CXX                  Path to the host C++ compiler
  312.     HOST_LD                   Deprecated
  313.     LD                        Deprecated
  314.     MOZ_DEBUG_FLAGS           Debug compiler flags
  315.     MOZ_HAZARD                Build for the GC rooting hazard analysis
  316.     NASM                      Path to the nasm program
  317.     RUSTC_OPT_LEVEL           Rust compiler optimization level (-C opt-level=%s)
  318.     RUSTC_WRAPPER             Wrap rust compilation with given tool
  319.     RUSTFLAGS                 Rust compiler flags
  320.     SCCACHE_VERBOSE_STATS     Print verbose sccache stats after build
  321.     YASM                      Path to the yasm program

  322.   Options from js\moz.configure:
  323.     JS_STANDALONE             Reserved for internal use

  324.   Options from moz.configure:
  325.     AWK                       Path to the awk program
  326.     DSYMUTIL                  Path to the dsymutil program
  327.     GMAKE                     Path to the gmake program
  328.     HFS_TOOL                  Path to the hfs_tool program
  329.     LLVM_OBJDUMP              Path to llvm-objdump
  330.     MAKE                      Path to GNU make
  331.     MAKENSISU                 Path to the makensisu program
  332.     MKFSHFS                   Path to the mkfshfs program
  333.     MOZ_COPY_PDBS             For builds that do not support symbols in the normal fashion, generate and copy them into the resulting build archive.
  334.     MOZ_PGO                   Build with profile guided optimizations
  335.     PERL                      Path to the perl program
  336.     RPMBUILD                  Path to the rpmbuild program
  337.     STRIP_FLAGS               Flags for the strip command
  338.     WATCHMAN                  Path to the watchman program
  339.     XARGS                     Path to the xargs program

  340.   Options from toolkit\moz.configure:
  341.     DUMP_SYMS                 Path to the dump_syms program
  342.     GN                        Path to the gn program
  343.     MIDL_FLAGS                Extra flags to pass to MIDL
  344.     MOZ_INSTRUMENT_EVENT_LOOP
  345.                               Force-enable event loop instrumentation
  346.     MOZ_TELEMETRY_REPORTING   Enable telemetry reporting
  347.     TAR                       Path to the tar program
  348.     UNZIP                     Path to the unzip program
  349.     USE_FC_FREETYPE           Force-enable the use of fontconfig freetype
  350.     ZIP                       Path to the zip program
复制代码
回复 支持 反对

使用道具 举报

1228

主题

1996

帖子

7572

积分

认证用户组

Rank: 5Rank: 5

积分
7572
5#
 楼主| 发表于 2020-8-20 10:35:25 | 只看该作者
本帖最后由 Qter 于 2020-8-20 14:16 编辑

获取发布版本的代码,如78
  1. hg clone https://hg.mozilla.org/releases/mozilla-esr78 source/
  2. cd source/
  3. hg clone https://hg.mozilla.org/releases/comm-esr78 comm/
复制代码
语言包这个不全
https://hg.mozilla.org/releases/l10n/mozilla-release

用这个

https://hg.mozilla.org/l10n-central/   
回复 支持 反对

使用道具 举报

1228

主题

1996

帖子

7572

积分

认证用户组

Rank: 5Rank: 5

积分
7572
6#
 楼主| 发表于 2020-8-28 16:23:55 | 只看该作者
export MOZ_TELEMETRY_REPORTING=1

# Disable telemetry
ac_add_options MOZ_TELEMETRY_REPORTING=

回复 支持 反对

使用道具 举报

1228

主题

1996

帖子

7572

积分

认证用户组

Rank: 5Rank: 5

积分
7572
7#
 楼主| 发表于 2020-9-13 11:01:38 | 只看该作者
更新最新代码,并重新编译
hg pull -u
cd comm
hg pull -u
cd ..

./mach build

编译特定部分
C or C++ Files:
./mach build binaries

JavaScript or XUL Files (Windows Only):
./mach build path/to/dir
如:
./mach build comm/calendar/lightning

回复 支持 反对

使用道具 举报

1228

主题

1996

帖子

7572

积分

认证用户组

Rank: 5Rank: 5

积分
7572
8#
 楼主| 发表于 2020-10-25 10:40:52 | 只看该作者
IT-SoftwareDownload-开发工具-mozilla-thunderbird78
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-4-23 16:27 , Processed in 0.068665 second(s), 18 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表