2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
빌드 개요
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
AOSP는 Soong 빌드 시스템을 사용하여 Android를 빌드합니다. Soong은 kati GNU Make 클론 도구와 Ninja 빌드 시스템 구성요소를 활용하여 Android의 빌드 속도를 높입니다.
Soong 빌드 파일은 블루프린트 파일이라고 하며 이름은 Android.bp
입니다. 이러한 파일은 Bazel BUILD 파일과 문법 및 의미가 유사합니다.
Android.bp
파일 형식에 관한 자세한 설명은 Android.bp 파일 형식을 참고하세요.
Make 파일을 Android.bp
파일로 변환하는 방법에 관한 자세한 내용은 Make 및 Soong 비교를 참고하세요.
기능 출시 플래그 및 빌드 플래그
기능 출시 플래그는 테스트되지 않은 코드를 테스트된 코드와 격리하는 데 사용되는 바이너리 플래그입니다. AOSP 외부 개발 브랜치의 자체 미러가 있는 경우 이러한 플래그를 사용하여 미러링된 코드를 안정적으로 유지할 수 있습니다. 또한 공개 외부 개발 브랜치에 코드를 기여하려는 경우 변경사항 검토자가 코드의 플래그를 구현하도록 요청할 수 있습니다.
빌드 플래그는 빌드를 수정하는 데 사용되는 빌드 시간 상수(문자열)입니다(예: 코드 라이브러리 포함 여부).
다양한 코드 브랜치에 관한 설명은 출시 수명 주기를 참고하세요.
기능 출시 플래그와 빌드 플래그를 사용하려면 빌드 파일을 변경해야 합니다. 빌드에서의 사용을 비롯하여 이러한 플래그에 관한 자세한 내용은 기능 출시 플래그 개요 및 인접 페이지를 참고하세요.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# Build overview\n\nAOSP uses the *Soong* build system to build Android. Soong leverages the\n[kati](https://github.com/google/kati/blob/master/README.md) GNU\nMake clone tool and [Ninja](https://ninja-build.org/) build system\ncomponent to speed up builds of Android.\n\nSoong build files are called *blueprint files* and are named `Android.bp`. These\nfiles are similar in syntax and\nsematics to [Bazel BUILD files](https://bazel.build/reference/be/overview).\n\nFor a detailed description of the `Android.bp` file format, see\n[Android.bp file format](/docs/setup/reference/androidbp).\n\nFor information on converting your Make files to `Android.bp` files, see\n[Make and Soong comparison](/docs/setup/build/make-to-soong).\n\nFeature launch flags and build flags\n------------------------------------\n\n*Feature launch flags* are binary flags used to isolate untested code from\ntested code. If you have your own mirror of the AOSP external development\nbranch, you can use these flags to keep your mirrored code stable. Additionally,\nif you intend on contributing code to the public external development branch,\nyou might be asked by your change's reviewer to implement a flag for your code.\n\n*Build flags* are build-time constants (strings) used to modify your build, such\nas optionally including a code library.\n\nFor an explanation of the different code branches, see\n[Release lifecycle](/docs/setup/contribute/release-lifecycle).\n\nFeature launch flags and build flags require changes to build files. For\nadditional information on these flags, including their use in a build, see\nthe [Feature launch flags overview](/docs/setup/build/feature-flagging) and\nadjacent pages."]]