Flutter--엔진 컴 파일
4281 단어 flutter
port 는 포트 번호 입 니 다.서로 다른 것 에 따라 저 는 lartern 을 사용 하고 포트 는 50321 입 니 다.
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
//
git config --global --unset http.proxy
git config --global --unset https.proxy
depot_tools 는 gclient,gn,ninja 등 도구 패키지 입 니 다.Google 이 Chromium 소스 코드 관리 문 제 를 해결 하기 위해 Chromium 에 제공 하 는 소스 코드 관리 도구 입 니 다.Flutter 소스 코드 동기 화 도 depot 에 의존 해 야 합 니 다.도구
//clone depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
// depot_tools
export PATH="$PATH:/path/to/depot_tools"
//
https://dev.chromium.org/developers/how-tos/depottools
https://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.htm
원본 코드 다운로드
solutions = [
{
"managed": False,
"name": "src/flutter",
"url": "[email protected]:chiqtv/engine.git",
"custom_deps": {},
"deps_file": "DEPS",
"safesync_url": "",
},
]
cd /path/to/engine
gclient sync // flutter , git clone
usage: gn [-h] [--unoptimized]
[--runtime-mode {debug,profile,release,jit_release}] [--interpreter]
[--dart-debug] [--full-dart-debug]
[--target-os {android,ios,linux,fuchsia}] [--android]
[--android-cpu {arm,x64,x86,arm64}] [--ios] [--ios-cpu {arm,arm64}]
[--simulator] [--fuchsia] [--linux-cpu {x64,x86,arm64,arm}]
[--fuchsia-cpu {x64,arm64}] [--arm-float-abi {hard,soft,softfp}]
[--goma] [--no-goma] [--lto] [--no-lto] [--clang] [--no-clang]
[--clang-static-analyzer] [--no-clang-static-analyzer]
[--target-sysroot TARGET_SYSROOT]
[--target-toolchain TARGET_TOOLCHAIN]
[--target-triple TARGET_TRIPLE]
[--operator-new-alignment OPERATOR_NEW_ALIGNMENT] [--enable-vulkan]
[--enable-fontconfig] [--enable-skshaper]
[--enable-vulkan-validation-layers] [--embedder-for-target]
[--coverage] [--out-dir OUT_DIR] [--full-dart-sdk]
[--no-full-dart-sdk] [--ide IDE] [--disable-desktop-embeddings]
[--build-glfw-shell] [--no-build-glfw-shell] [--bitcode]
[--stripped] [--no-stripped] [--asan] [--lsan] [--msan] [--tsan]
cd /path/to/engine/src/
./flutter/tools/gn --android-cpu arm64 --no-lto --runtime-mode=release
ninja -C out/host_release_arm64 -j 8 // Host
./flutter/tools/gn --android --android-cpu arm64 --no-lto --runtime-mode=release
ninja -C out/android_release_arm64 -j 8 // Android
// , lto
https://github.com/flutter/flutter/issues/57207
//local-engine-src-path: Flutter , src
//local-engine:
flutter build apk --target-platform android-arm64 --local- engine=android_release_arm64 --local-engine-src- path=/Users/xiaoyao/Documents/code/flutter/engine/src
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
콘텐츠 SaaS | 모바일 네이티브 개발용 Flutter SDK기본 모바일 지원을 위해 Bloomreach Content Flutter SDK로 시작하세요. Flutter는 단일 코드베이스에서 아름답고 고유하게 컴파일된 다중 플랫폼 애플리케이션을 빌드하기 위한 오픈 소스 프레임...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.