涔嬪墠涓鐩村緢鎶楁嫆浣跨敤gyp絳夊緟chrominu錛屽枩嬈make銆備絾鏄笉浣跨敤chromium宸ュ叿閾懼幓緙栬瘧錛屽垎鏋恈hromium紜疄闈炲父鐥涜嫤鍟婏紝錛岋紝
濂藉湪榪欏嚑澶╃綉緇滅幆澧冨ソ錛屾垚鍔熸寜鐓ttp://www.chromium.org/developers/how-tos/build-instructions-windows#TOC-Building-Chromium鍒涘緩浜嗙紪璇戠幆澧冦?br />涓嶅澶ч儴鍒嗙粏鑺傞兘涓嶇煡閬擄紝娌″姙娉曠殑浜嬫儏銆傛渶緇堣繕鏄鑷繁鐞嗚В鏁翠釜宸ョ▼鎵峅K鍟?br />
gyp宸ュ叿鐢ㄦ硶渚嬪瓙錛歵ools\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

]]>