Error

C++博客 首页 新随笔 联系 聚合 管理
  217 Posts :: 61 Stories :: 32 Comments :: 0 Trackbacks
之前一直很抗拒使用gyp等待chrominu,喜欢cmake。但是不使用chromium工具链去编译,分析chromium确实非常痛苦啊,,,
好在这几天网络环境好,成功按照http://www.chromium.org/developers/how-tos/build-instructions-windows#TOC-Building-Chromium创建了编译环境。
不多大部分细节都不知道,没办法的事情。最终还是要自己理解整个工程才OK啊

gyp工具用法
例子:tools\gyp\gyp.bat --depth . -D component=shared_library --no-circular-check -G msvs_version=2008 -Ibuild/common.gypi build_add/all.gyp
添加参数用-D
Building in Visual Studio
You can use:
    set GYP_GENERATORS=msvs-ninja,ninja
and then
        gclient runhooks
gclient sync --force
Usage: gyp-script.py [options ...] [build_file ...]
Options:
  -h, --help            show this help message and exit
  --build=CONFIGS       configuration for build after project generation
  --check               check format of gyp files
  --config-dir=CONFIG_DIR
                        The location for configuration files like
                        include.gypi.
  -d DEBUGMODE, --debug=DEBUGMODE
                        turn on a debugging mode for debugging GYP.  Supported
                        modes are "variables", "includes" and "general" or
                        "all" for all of them.
  -D VAR=VAL            sets variable VAR to value VAL
  --depth=PATH          set DEPTH gyp variable to a relative path to PATH
  -f FORMATS, --format=FORMATS
                        output formats to generate
  -G FLAG=VAL           sets generator flag FLAG to VAL
  --generator-output=DIR
                        puts generated build files under DIR
  --ignore-environment  do not read options from environment variables
  -I INCLUDE, --include=INCLUDE
                        files to include in all loaded .gyp files
  --msvs-version=MSVS_VERSION
                        Deprecated; use -G msvs_version=MSVS_VERSION instead
  --no-circular-check   don't check for circular relationships between files
  --parallel            Use multiprocessing for speed (experimental)
  -S SUFFIX, --suffix=SUFFIX
                        suffix to add to generated files
  --toplevel-dir=DIR    directory to use as the root of the source tree
posted on 2014-04-08 23:44 Enic 阅读(319) 评论(0)  编辑 收藏 引用 所属分类: chromium

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理