21.09.09. chromium 일부 재빌드

Nayeon Kim·2021년 9월 9일
1

chromium

목록 보기
5/10

크로미움 이슈 패치 도중 잘못 수정된 파일을 되돌리려 clean fdx를 사용했다가,
chromium directory 내의 중요한 파일들까지 날려버리는 대참사가 있었다.
그렇게 삭제된 파일을 다시 복원하는 방법은 어디에서도 찾아볼 수 없어서 결국 재빌드를 하는 중.

c:\chromium>fetch --no-history chromium
Running: 'C:\Users\SAMSUNG\.vpython-root\94675c\Scripts\python.exe' 'C:\src\depot_tools\gclient.py' root
Your current directory appears to already contain, or be part of,
a checkout. "fetch" is used only to get new checkouts. Use
"gclient sync" to update existing checkouts.

필요한 코드, 의존성을 가져오는 fetch chromium 명령어를 입력하니
현재 디렉토리에 체크아웃?의 일부를 이미 가지고 있음, fetch는 새로운 checkout을 가져올 때만 사용할 수 있으니, gclient sync 명령어를 사용하라는 메시지가 떴다.

c:\chromium>gclient sync
Syncing projects: 100% (117/117), done.
Running hooks:  16% (18/112) clang
________ running 'python3 src/tools/clang/scripts/update.py' in 'c:\chromium'
Downloading https://commondatastorage.googleapis.com/chromium-browser-clang/Win/clang-llvmorg-14-init-2175-g945cde8b-1.tgz .......... Done.
Running hooks:  23% (26/112) clang_format_win
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth --bucket chromium-clang-format -s src/buildtools/win/clang-format.exe.sha1' in 'c:\chromium'
0> Downloading src/buildtools/win/clang-format.exe@d4afd4eba27022f5f6d518133aebde57281677c9...
Downloading 1 files took 24.581684 second(s)
.
.
.
(중략)

입력하니, 뭔가를 막 다운로드한다. 혹시나 이전에 삭제됐던 파일들을 다시 다운로드해주는 건가 싶어서 가장 중요한 out directory를 찾아봤는데 다시 생겼음!! 근데 안은 비어있는 걸 보니 autoninja 과정 다시 거쳐줘야 할 것 같음.
git도 다시 설정해줘야 되나..?
일단 git 설정 부분은 다시 안 하고 그 다음 나머지 과정 그대로 거치는 중

c:\chromium>cd src

c:\chromium\src>gn gen out/Default
Done. Made 17232 targets from 2913 files in 25779ms
c:\chromium\src>gn args out/Default
Waiting for editor on "c:\chromium\src\out\Default\args.gn"...
Generating files...
Done. Made 17232 targets from 2913 files in 25195ms
c:\chromium\src>autoninja -C out\Default chrome
"C:\src\depot_tools\ninja.exe" -C out\Default chrome -j 10
ninja: Entering directory `out\Default'
[52201/52201] STAMP obj/chrome/chrome.stamp
profile
Department of Computer Science

0개의 댓글