{"id":20574510,"url":"https://github.com/nkh-lab/aosp-boost","last_synced_at":"2025-07-21T09:32:02.262Z","repository":{"id":128645839,"uuid":"240038323","full_name":"nkh-lab/aosp-boost","owner":"nkh-lab","description":"Using Boost C++ libraries under AOSP.","archived":false,"fork":false,"pushed_at":"2022-04-11T09:15:07.000Z","size":25,"stargazers_count":12,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T17:52:11.779Z","etag":null,"topics":["android","aosp","boost"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nkh-lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-02-12T14:51:36.000Z","updated_at":"2024-09-09T11:18:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"c16d08f5-af6f-42f7-ba5e-a64d37d7003e","html_url":"https://github.com/nkh-lab/aosp-boost","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nkh-lab/aosp-boost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkh-lab%2Faosp-boost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkh-lab%2Faosp-boost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkh-lab%2Faosp-boost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkh-lab%2Faosp-boost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nkh-lab","download_url":"https://codeload.github.com/nkh-lab/aosp-boost/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkh-lab%2Faosp-boost/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266275921,"owners_count":23903950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","aosp","boost"],"created_at":"2024-11-16T05:34:59.335Z","updated_at":"2025-07-21T09:32:02.248Z","avatar_url":"https://github.com/nkh-lab.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Project for integration Boost libraries into AOSP.\n\nProject supports static and shared libraries linkage and includes:\n* repo manifests - to get Boost source codes from https://git@github.com/boostorg/\n* Android Soong build scripts - to compile Boost libraries in AOSP tree\n* usage examples\n\n## Fetching Boost sources to AOSP tree and compiling them\n1. Add project to AOSP tree\n\nAdd this project to your AOSP manifest and use `repo sync` to download it or simply clone it via `git clone`:\n```\nmkdir -p vendor/nkh-lab\n$ cd vendor/nkh-lab\n$ git clone https://github.com/nkh-lab/aosp-boost.git\n```\n\n2. Fetch required version of Boost source codes\n\nThis is performed by selecting the appropriate manifest file from the [manifests](manifests/) folder.\n\nManifest file can be copied to your AOSP repo `local_manifests` folder: (e.g.: `.repo/local_manifests/aosp-boost-1_72_0.xml`) or linked:\n```\n$ mkdir -p .repo/local_manifests\n$ cd .repo/local_manifests\n$ ln -s ../../vendor/nkh-lab/aosp-boost/manifests/boost-1_72_0.xml boost-1_72_0.xml\n```\nor included from other manifest:\n```xml\n\u003cmanifest\u003e\n...\n  \u003cinclude name=\"aosp-boost-1_72_0.xml\" /\u003e\n...\n\u003c/manifest\u003e\n```\nAfter manifest applying use `repo sync` to fetch Boost source codes.\n\n3. Apply Boost build script to AOSP tree \n\nCopy or use symlink:\n```\n$ cd external/boost\n$ ln -s ../../vendor/nkh-lab/aosp-boost/make/boost-1_72_0.bp Android.bp\n```\n\n4. Compile\n\nAll is ready to compile now, just source environment, lunch your target and compile Boost sources:\n\n```\n$ cd external/boost/\n$ mm\n```\n\n[NCAR Android Automotive Emulator Project](https://github.com/nkh-lab/aosp-ncar-manifest) can be used as a reference or example to see how the mentioned steps were applied to a real AOSP project.\n\n## \"Hello Boost\" AOSP usage example\n\nThis project contains a simple example of using the Boost libraries in AOSP, which can be found at [examples/hello_boost](examples/hello_boost).\n\nGiven example can be compiled via `mm` make command (run it after setting environment and target):\n\n```\n$ cd examples/hello_boost\n$ mm\n```\n\n or added to whole AOSP build by adding corresponding include in target config file, e.g to \n`device/linaro/hikey/hikey960/device-hikey960.mk` for HiKey960 build:\n```\ninclude vendor/nkh-lab/aosp-boost/examples/hello_boost.mk\n```\nor\n```\n$(call inherit-product-if-exists, vendor/nkh-lab/aosp-boost/examples/hello_boost.mk)\n```\nBelow is shell output from running `hello_boost_shared` and `hello_boost_static` example binaries:\n```\n$ adb shell\ngeneric_x86:/ # hello_boost_shared                                                                                                                                                                                                                                               \nHello Boost\nHello from boost::thread\n[2021-09-27 14:43:44.200203] [0xf6c75478] [trace]   A trace severity message\n[2021-09-27 14:43:44.200690] [0xf6c75478] [debug]   A debug severity message\n[2021-09-27 14:43:44.200720] [0xf6c75478] [info]    An informational severity message\n[2021-09-27 14:43:44.200743] [0xf6c75478] [warning] A warning severity message\n[2021-09-27 14:43:44.200764] [0xf6c75478] [error]   An error severity message\n[2021-09-27 14:43:44.200786] [0xf6c75478] [fatal]   A fatal severity message\ngeneric_x86:/ # \ngeneric_x86:/ # \ngeneric_x86:/ # hello_boost_static                                                                                                                                                                                                                                               \nHello Boost\nHello from boost::thread\n[2021-09-27 14:43:54.157263] [0xf5108478] [trace]   A trace severity message\n[2021-09-27 14:43:54.157636] [0xf5108478] [debug]   A debug severity message\n[2021-09-27 14:43:54.157662] [0xf5108478] [info]    An informational severity message\n[2021-09-27 14:43:54.157684] [0xf5108478] [warning] A warning severity message\n[2021-09-27 14:43:54.157704] [0xf5108478] [error]   An error severity message\n[2021-09-27 14:43:54.157723] [0xf5108478] [fatal]   A fatal severity message\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnkh-lab%2Faosp-boost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnkh-lab%2Faosp-boost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnkh-lab%2Faosp-boost/lists"}