-
Notifications
You must be signed in to change notification settings - Fork 16
/
chrome
42 lines (35 loc) · 2.03 KB
/
chrome
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# The following are essentially the same. Uncomment the one you care about.
# The only difference is that I seem to use a particular user-data-dir on
# Windows (because I don't really speak Windows), and just use the default
# one on the Mac (which is ~/Library/Application Support/Chromium, I think)
#############################
### OSX
#############################
export PATH="$PATH":~/Code/depot_tools
export CHROMIUM_DIR="~/Code/chromium/src"
export GOMA_DIR="~/goma"
export GOMA_OAUTH2_CONFIG_FILE="$HOME/.goma_oauth2_config"
# Chromium now uses gn, these aren't needed anymore.
# Leaving them here for history.
# export GYP_GENERATORS=ninja
# export GYP_DEFINES='component=shared_library dcheck_always_on=1'
# This shows remaining/total build files.
export NINJA_STATUS="[%u/%t] "
alias make_="time caffeinate ninja -C $CHROMIUM_DIR/out/Release chrome"
alias go_="$CHROMIUM_DIR/out/Release/Chromium.app/Contents/MacOS/Chromium --no-default-browser-check --disable-hang-monitor"
alias tests="time caffeinate ninja -C $$CHROMIUM_DIR/out/Release unit_tests browser_tests"
alias regoma="${GOMA_DIR}/goma_ctl.py restart"
# mostly unused nowadays.
alias make_d="time caffeinate ninja -C $CHROMIUM_DIR/out/Debug chrome"
alias go_d="$CHROMIUM_DIR/out/Debug/Chromium.app/Contents/MacOS/Chromium --no-default-browser-check --disable-hang-monitor"
alias fixit="$CHROMIUM_DIR/build/gyp_chromium"
alias halp="echo 1. git checkout -b newBranch master; echo 2. \?\?\?; echo 3. git commit -am "zomg hai"; echo 4. git cl upload; echo 5. git cl try; echo 6. \?\?\?; echo 7. git cl issue;"
# when I want to pull tip-of-tree.
alias freshenup="git checkout master && git pull && gclient sync"
#############################
### Windows
#############################
# export GYP_GENERATORS=ninja,msvs-ninja
# doskey make_=ninja -C D:\src\chromium\src\out\Release chrome
# doskey go_=D:\src\chromium\src\out\Release\chrome --user-data-dir=D:\src\chromium-logs --enable-new-avatar-menu --no-default-browser-check --enable-logging --V=1
# doskey cleanit=rmdir/s/q "D:\src\chromium-logs"