공장 이야기

chromium x64 Win7 빌드

바다가소주라면- 2015. 12. 16. 16:14

Windows 7 영문, Visual Studio 2013 영문을 기준으로 한다. 한글 OS에 해보았어나 뭐가 이리도 해줄게 많은지!!!


- VisualStudio 2013 Community 이상 설치

- depot_tools 압축 해제 후 폴더 복사

- 환경 변수 path에 depot_tools의 path 추가 및  환경 변수 생성 (변수 명 : DEPOT_TOOLS_WIN_TOOLCHAIN, 변수 값 0)

- depot_tools 경로로 이동 후 gclient 실행

- git 초기화 (최초 1회)

        git config --global user.name “John Doe”

        git config --global user.email “jdoe@email.com”

        git config --global core.autocrlf false

        git config --global core.filemode false

        git config --global color.ui true

- NTFS 파티션에 소스를 다운로드할 폴더 생성

- cmd 실행 후 다운할 폴더로 이동에서 fetch --nohooks chromium 명령해서 소스 다운

        D:\Project\chromium 로 만들었음.  다운하면 src 폴더가 생성됨

- 소스 다운 폴더(ex - D:\Project\chromium)에 에 chromium.gyp_env 파일을 만들고 아래 내용 작성

참조 - http://dev.chromium.org/developers/gyp-environment-variables

        { 'GYP_DEFINES': 'component=shared_library target_arch=x64' }

        target_arch=x64 <<< x64로 빌더 하겠다는

- gclient runhooks 다운 폴더에서 명령 하여 chrome.sln 파일 생성(ex - D:\Project\chromium\src\chrome 에 생성됨)

- 아래 명령을 실행하여 debug 버전 / release 버전의 chromium.exe 파일이 생성

        ninja -C out\Release chrome -k0

        ninja -C out\Debug chrome -k0

        로그 파일 만들려면  > 로그파일명.txt

        ex) ninja -C out\Release chrome -k0 > log_vs2015.txt