Discuz! Board

热搜: 活动 交友 discuz
查看: 2966|回复: 1










Rank: 6Rank: 6

发表于 2016-2-23 22:48:34 | 显示全部楼层 |阅读模式

更多参考:https://developer.mozilla.org/en ... uring_Build_Options

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

使用道具 举报








Rank: 7Rank: 7Rank: 7

发表于 2016-12-9 18:05:08 | 显示全部楼层
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/tb_rel
ac_add_options --with-l10n-base=/D/svn/code/thunderbird17.0.8/mail/locales/zh-CN
ac_add_options --enable-ui-locale=zh-CN
ac_add_options --disable-optimize
ac_add_options --enable-debug
ac_add_options --target=x86_64-pc-mingw32
ac_add_options --host=x86_64-pc-mingw32

ac_add_options --disable-tests

ac_add_options --disable-optimize
ac_add_options --enable-debug
ac_add_options --enable-debug-symbols
ac_add_options --enable-trace-malloc

ac_add_options --enable-functiontimer 可以用于看代码瓶颈
ac_add_options  --enable-timeline

如果编译时没有指定 “ac_add_option --disable-logging”(关闭运行时的log),则可以通过以下方式打开本地log
  1. set NSPR_LOG_MODULES=all:5
  2. set NSPR_LOG_FILE=mylog.log // 每次运行都会重新覆盖。
  3. thunderbird.exe
  4. pause
POP:3,前面是模块定义,可以参看各自模块的PR_NewLogModule的定义; 后面的数字可以是0到5
更详细的信息见 "prlog.h"
  1. https://wiki.mozilla.org/MailNews:Logging#Windows
  2. http://forums.mozillazine.org/viewtopic.php?f=28&t=2378891
码目录运行: configure --help > confhelp.txt
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print `checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
                          run sed PROGRAM on installed program names
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
--enable and --with options recognized:
                           Disable compiler/library checks.
  --with-l10n-base=DIR     path to l10n repositories
                        The path to the Windows CE SDK
                          Highest Windows version to target using this SDK
                              601: Windows 7
  --with-system-ply       Use system installed python ply library
  --enable-macos-target=VER (default=10.5)
                          Set the minimum MacOS version needed at runtime
  --with-macos-sdk=dir   Location of platform SDK to use (Mac OS X only)
  --with-x                use the X Window System
  --disable-os2-high-mem  Disable high-memory support on OS/2
  --enable-profiling      Set compile flags necessary for using sampling profilers (e.g. shark, perf)
  --enable-cpp-rtti       Enable C++ RTTI
  --disable-icf          Disable Identical Code Folding
  --enable-dtrace         build with dtrace support if available (default=no)
  --with-pthreads         Force use of system pthread library with NSPR
  --with-libxul-sdk=PFX   Use the libXUL SDK at <FX>
  --with-system-libxul   Use system installed libxul SDK
  --with-system-nspr      Use system installed NSPR
  --with-nspr-prefix=PFX  Prefix where NSPR is installed
                          Exec prefix where NSPR is installed
  --with-system-nss      Use system installed NSS
  --with-nss-prefix=PFX   Prefix where NSS is installed
                          Exec prefix where NSS is installed
                          Use system libjpeg [installed at prefix PFX]
                          Use system libz [installed at prefix PFX]
                          Use system libbz2 [installed at prefix PFX]
                          Use system libpng [installed at prefix PFX]
  --enable-system-hunspell  Use system hunspell (located with pkgconfig)
                          Options include:
                            suite (SeaMonkey)
                            mail (Thunderbird)
                            calendar (Sunbird)
  --with-xulrunner-stub-name=appname   Create the xulrunner stub with the given name
                          Select default toolkit
                          Platform specific defaults:
                            BeOS - cairo-beos
                            Mac OS X - cairo-cocoa
                            Neutrino/QNX - photon
                            OS/2 - cairo-os2
                            Win32/WinCE - cairo-windows
                            Gtk2 with DirectFB - cairo-gtk2-dfb
                            * - cairo-gtk2
                            * - cairo-qt
  --enable-startup-notification       Enable startup-notification support (default: disabled)
                          Select the user interface locale (default: en-US)
  --enable-calendar      Enable building of the Lightning calendar extension
  --disable-ldap          Disable LDAP support
  --enable-official-branding Enable Official mozilla.org Branding
                          Do not distribute builds with
                          --enable-official-branding unless you have
                          permission to use trademarks per
                          http://www.mozilla.org/foundation/trademarks/ .
  --with-branding=dir    Use branding from the specified directory.
  --with-distribution-id=ID  Set distribution-specific id (default=org.mozilla)
  --disable-pango Disable usage of Pango
  --disable-gnomevfs      Disable GnomeVFS support
  --enable-gio            Enable GIO support (default: disabled)
  --disable-gconf      Disable Gconf support
  --disable-libnotify       Disable libnotify support
  --disable-dbus       Disable dbus support
  --disable-crypto        Disable crypto support (Personal Security Manager)
  --disable-jsd           Disable JavaScript debug library
  --disable-plugins       Disable plugins support
  --disable-dbm           Disable building dbm
  --disable-accessibility Disable accessibility support (off by default on OS X)
  --disable-printing  Disable printing support
                          Allow only plaintext editing
  --disable-composer      Disable building of Composer
  --disable-xpcom-fastload           Disable XPCOM fastload support
  --disable-ogg           Disable Ogg Codec support
  --disable-wave          Disable Wave decoder support
  --disable-permissions   Disable permissions (popup and cookie blocking)
  --disable-negotiateauth Disable GSS-API negotiation
  --disable-xtf           Disable XTF (pluggable xml tags) support
                          Disable pref extensions such as autoconfig and
                          Disable universal encoding detection
  --disable-angle     Disable building of ANGLE for WebGL->D3D translation
  --disable-crashreporter          Disable breakpad crash reporting
  --enable-tree-freetype         Enable Tree FreeType
  --enable-maintenance-service       Enable building of maintenanceservice
  --enable-verify-mar     Enable verifying MAR signatures
  --disable-updater       Disable building of updater
                           Select application update channel (default=default)
                           Enable tools/update-packaging
  --disable-activex       Disable building of ActiveX control (win32 only)
  --disable-tests         Do not build test libraries & programs
  --disable-feeds        Disable feed handling and processing components
  --enable-storage        Enable mozStorage module and related components
  --enable-system-sqlite  Use system sqlite (located with pkgconfig)
  --enable-safe-browsing        Enable safe browsing (anti-phishing) implementation
  --enable-url-classifier        Enable url classifier module
  --disable-zipwriter             Disable zipwriter component
                        Maemo SDK Version
  --enable-debug[=DBG]    Enable building with developer debug info
                           (using compiler flags DBG)
                           Enabled the use of DEBUG_label ifdefs
                           (comma separated)
  --enable-mobile-optimize   Enable mobile optimizations
  --disable-optimize      Disable compiler optimization
  --enable-optimize=[OPT] Specify compiler optimization flags [OPT=-O]
                          Enable debugging symbols (using compiler flags DBG)
  --disable-logging       Disable logging facilities
  --enable-logrefcnt      Enable logging of refcounts (default=debug)
  --enable-trace-malloc   Enable malloc tracing
  --enable-jemalloc       Replace memory allocator with jemalloc
  --enable-wrap-malloc    Wrap malloc calls (gnu linker only)
  --with-wrap-malloc=DIR  Location of malloc wrapper library
  --enable-jprof          Enable jprof profiling tool (needs mozilla/tools/jprof). Implies --enable-profiling.
  --enable-shark          Enable shark remote profiling (needs CHUD framework). Implies --enable-profiling.
                          Enable compiling with ccache
                            Enable static checking of code using GCC-dehydra
  --enable-strip          Enable stripping of libs & executables
  --enable-install-strip  Enable stripping of libs & executables when packaging
  --enable-elf-dynstr-gc  Enable elf dynstr garbage collector (opt builds only)
  --enable-timeline       Enable timeline services
  --enable-functiontimer  Enable NS_FUNCTION_TIMER
  --enable-codesighs      Enable code size analysis tools
  --enable-xterm-updates  Update XTERM titles with current command.
                          Select FORMAT of chrome files (default=jar)
                          Set the default value for MOZILLA_FIVE_HOME
  --with-user-appdir=DIR  Set user-specific appdir (default=.mozilla)
                          Header/idl dirs to create docs from
                          Include dirs to preprocess doc headers
                          Dir to generate docs into
  --disable-pedantic      Issue all warnings demanded by strict ANSI C
  --disable-auto-deps     Do not automatically generate dependency info
  --disable-md            Do not use compiler-based dependencies
  --enable-shared-js     Create a shared Javascript library.
  --enable-incomplete-external-linkage Changes some comm-central code to be built with external linkage. Developer only option, incomplete broken builds will result - There are already existing bugs for this.
--enable-system-cairo Use system cairo (located with pkgconfig)
  --disable-xul           Disable XUL
  --disable-profilelocking           Disable profile locking
  --disable-rdf           Disable RDF
  --disable-necko-wifi    Disable necko wifi scanner
  --disable-ctypes        Disable js-ctypes
  --enable-incomplete-toolkit-ldap-autocomplete Builds a JavaScript component that implements an LDAP autocomplete component using the toolkit interfaces rather than the C++ component using the obsolete XPFE interfaces.
                          Prefix for MOZ_MACBUNDLE_NAME

LINK : fatal error LNK1181: 无法打开输入文件“d:/svn/Client/ThinkMail_ClientWin_2013/trunk/src/thinkmail/obj_noopt/mozilla/dist/lib/xpcom.lib”


回复 支持 反对

使用道具 举报

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


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

GMT+8, 2020-5-26 02:00 , Processed in 1.756653 second(s), 27 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

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