* Don't rely on '#!', since it doesn't work for Windows cmd shell.
* Consistantly use `tools/git-sync-deps` rather than `bin/sync`.
* Always call `bin/gn` ranther than `gn` in case depot_tools is
missing from the path.
NOTRY=true
Change-Id: I27909f2610d1bb3241874399d7d2f7286f99f43b
Reviewed-on: https://skia-review.googlesource.com/9640
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
To work on Skia inside a Chromium checkout, run the following:
-~~~~
-$ cd chromium/src/third_party/skia
-$ tools/git-sync-deps
-~~~~
+ cd chromium/src/third_party/skia
+ python tools/git-sync-deps
This command does a minimal "just sync the DEPS" emulation of gclient sync for
Skia into chromium/src/third_party/skia/third_party. After that, make dm or
<!--?prettify lang=sh?-->
git pull
- python bin/sync
+ python tools/git-sync-deps
Adding a unit test
------------------
<!--?prettify lang=sh?-->
- python bin/sync
- gn gen out/Debug
+ python tools/git-sync-deps
+ bin/gn gen out/Debug
ninja -C out/Debug dm
out/Debug/dm -v -w dm_output
<!--?prettify lang=sh?-->
- python bin/sync
- gn gen out/Debug
- gn gen out/Release --args='is_debug=false'
+ python tools/git-sync-deps
+ bin/gn gen out/Debug
+ bin/gn gen out/Release --args='is_debug=false'
<span id="test"></span>
CLANGDIR="${HOME}/clang"
- tools/git-sync-deps
+ python tools/git-sync-deps
CC= CXX= infra/bots/assets/clang_linux/create.py -t "$CLANGDIR"
Configure and Compile Skia with MSAN
sanitize = "MSAN"
skia_use_fontconfig = false
EOF
- tools/git-sync-deps
+ python tools/git-sync-deps
bin/gn gen out/msan
ninja -C out/msan
cxx = "${CLANGDIR}/bin/clang++"
sanitize = "ASAN"
EOF
- tools/git-sync-deps
+ python tools/git-sync-deps
bin/gn gen out/asan
ninja -C out/asan
sanitize = "TSAN"
is_debug = false
EOF
- tools/git-sync-deps
+ python tools/git-sync-deps
bin/gn gen out/tsan
ninja -C out/tsan
The Viewer can be built using the regular GN build process, e.g.
- gn gen out/Release --args='is_debug=false'
+ bin/gn gen out/Release --args='is_debug=false'
ninja -C out/Release viewer
Android