﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-Error-随笔分类-chromium</title><link>http://www.cppblog.com/Error/category/20849.html</link><description /><language>zh-cn</language><lastBuildDate>Tue, 08 Apr 2014 17:57:38 GMT</lastBuildDate><pubDate>Tue, 08 Apr 2014 17:57:38 GMT</pubDate><ttl>60</ttl><item><title>chrominu工具链必须要会啊</title><link>http://www.cppblog.com/Error/archive/2014/04/08/206510.html</link><dc:creator>Enic</dc:creator><author>Enic</author><pubDate>Tue, 08 Apr 2014 15:44:00 GMT</pubDate><guid>http://www.cppblog.com/Error/archive/2014/04/08/206510.html</guid><wfw:comment>http://www.cppblog.com/Error/comments/206510.html</wfw:comment><comments>http://www.cppblog.com/Error/archive/2014/04/08/206510.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/Error/comments/commentRss/206510.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/Error/services/trackbacks/206510.html</trackback:ping><description><![CDATA[<div>之前一直很抗拒使用gyp等待chrominu，喜欢cmake。但是不使用chromium工具链去编译，分析chromium确实非常痛苦啊，，，<br />好在这几天网络环境好，成功按照http://www.chromium.org/developers/how-tos/build-instructions-windows#TOC-Building-Chromium创建了编译环境。<br />不多大部分细节都不知道，没办法的事情。最终还是要自己理解整个工程才OK啊<br /><br />gyp工具用法</div><div>例子：tools\gyp\gyp.bat --depth . -D component=shared_library --no-circular-check -G msvs_version=2008 -Ibuild/common.gypi build_add/all.gyp</div><div>添加参数用-D</div><div></div><div>Building in Visual Studio</div><div></div><div>You can use:</div><div></div><div>&nbsp; &nbsp; set GYP_GENERATORS=msvs-ninja,ninja</div><div></div><div>and then</div><div></div><div>&nbsp; &nbsp; &nbsp; &nbsp; gclient runhooks</div><div></div><div></div><div>gclient sync --force</div><div></div><div></div><div></div><div>Usage: gyp-script.py [options ...] [build_file ...]</div><div></div><div>Options:</div><div>&nbsp; -h, --help &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;show this help message and exit</div><div>&nbsp; --build=CONFIGS &nbsp; &nbsp; &nbsp; configuration for build after project generation</div><div>&nbsp; --check &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; check format of gyp files</div><div>&nbsp; --config-dir=CONFIG_DIR</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; The location for configuration files like</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include.gypi.</div><div>&nbsp; -d DEBUGMODE, --debug=DEBUGMODE</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; turn on a debugging mode for debugging GYP. &nbsp;Supported</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; modes are "variables", "includes" and "general" or</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "all" for all of them.</div><div>&nbsp; -D VAR=VAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sets variable VAR to value VAL</div><div>&nbsp; --depth=PATH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;set DEPTH gyp variable to a relative path to PATH</div><div>&nbsp; -f FORMATS, --format=FORMATS</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; output formats to generate</div><div>&nbsp; -G FLAG=VAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sets generator flag FLAG to VAL</div><div>&nbsp; --generator-output=DIR</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; puts generated build files under DIR</div><div>&nbsp; --ignore-environment &nbsp;do not read options from environment variables</div><div>&nbsp; -I INCLUDE, --include=INCLUDE</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; files to include in all loaded .gyp files</div><div>&nbsp; --msvs-version=MSVS_VERSION</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Deprecated; use -G msvs_version=MSVS_VERSION instead</div><div>&nbsp; --no-circular-check &nbsp; don't check for circular relationships between files</div><div>&nbsp; --parallel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Use multiprocessing for speed (experimental)</div><div>&nbsp; -S SUFFIX, --suffix=SUFFIX</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; suffix to add to generated files</div><div>&nbsp; --toplevel-dir=DIR &nbsp; &nbsp;directory to use as the root of the source tree</div><div></div><img src ="http://www.cppblog.com/Error/aggbug/206510.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/Error/" target="_blank">Enic</a> 2014-04-08 23:44 <a href="http://www.cppblog.com/Error/archive/2014/04/08/206510.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>