{"id":31048932,"url":"https://github.com/sjinks/alpine-vcpkg","last_synced_at":"2025-09-14T21:24:46.543Z","repository":{"id":313169777,"uuid":"1050312377","full_name":"sjinks/alpine-vcpkg","owner":"sjinks","description":"Alpine Linux with vcpkg and build tools for cross-compilation","archived":false,"fork":false,"pushed_at":"2025-09-04T09:07:52.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-04T10:38:19.397Z","etag":null,"topics":["alpine-linux","cross-compilation","docker-image","vcpkg"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjinks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"custom":["https://www.paypal.com/donate/?hosted_button_id=SAG6877JDJ3KU","https://send.monobank.ua/jar/7rosVfiwKM"]}},"created_at":"2025-09-04T08:54:17.000Z","updated_at":"2025-09-04T09:07:55.000Z","dependencies_parsed_at":"2025-09-04T10:38:21.606Z","dependency_job_id":"9bc68a6c-059c-4376-b350-3a039f53890f","html_url":"https://github.com/sjinks/alpine-vcpkg","commit_stats":null,"previous_names":["sjinks/alpine-vcpkg"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/sjinks/alpine-vcpkg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Falpine-vcpkg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Falpine-vcpkg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Falpine-vcpkg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Falpine-vcpkg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjinks","download_url":"https://codeload.github.com/sjinks/alpine-vcpkg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Falpine-vcpkg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275169462,"owners_count":25417307,"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","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["alpine-linux","cross-compilation","docker-image","vcpkg"],"created_at":"2025-09-14T21:24:41.360Z","updated_at":"2025-09-14T21:24:46.509Z","avatar_url":"https://github.com/sjinks.png","language":"CMake","funding_links":["https://www.paypal.com/donate/?hosted_button_id=SAG6877JDJ3KU","https://send.monobank.ua/jar/7rosVfiwKM"],"categories":[],"sub_categories":[],"readme":"# alpine-vcpkg\n\nThis project provides a Docker-based environment for cross-compiling C++ projects using [vcpkg](https://github.com/microsoft/vcpkg) on Alpine Linux. It includes custom triplets and toolchains for building for various platforms, including Linux, macOS, and Windows (x86, x64, arm64).\n\n## Features\n- **Dockerized build environment** for reproducible cross-compilation\n- **Custom vcpkg triplets** for multiple platforms:\n  - x86-linux, x86-mingw, x64-mingw, x64-osx, arm64-linux, arm64-osx\n- **Predefined toolchains** for each target\n- Easy integration with CMake\n\n## Project Structure\n```\n.\n├── Dockerfile                    # Base Dockerfile\n├── Dockerfile.cross              # Dockerfile for cross-compilation\n└── vcpkg-custom-triplets/\n    ├── [triplet files]           # Custom vcpkg triplets\n    └── toolchains/\n        ├── [toolchain files]     # CMake toolchain files\n        └── common.cmake          # Common toolchain settings\n```\n\n## Images\n\n- `ghcr.io/sjinks/alpine-vcpkg`: Alpine Linux with `vcpkg` and build tools installed;\n- `ghcr.io/sjinks/alpine-vcpkg-cross`: Alpine Linux with `vcpkg`, build tools, and triplets/toolchains for cross-compilation (x86-linux, x86-mingw, x64-mingw, x64-osx, arm64-linux, arm64-osx)\n\nAll images are `amd64`.\n\n## Usage\n\n1. Build the Docker Image\n```sh\ndocker build -t alpine-vcpkg .\n```\n\nor\n\n```sh\ndocker build -t alpine-vcpkg-cross -f Dockerfile.cross .\n```\n\n2. Run the Container\n```sh\ndocker run --rm -it -v \"$PWD:/src\" alpine-vcpkg-cross\n```\n\nor\n\n```sh\ndocker run --rm -it -v \"$PWD:/src\" alpine-vcpkg\n```\n\n3. Build Your Project\n\nSomething like\n```sh\ncmake -B build \\\n    -DCMAKE_TOOLCHAIN_FILE=\"/vcpkg/scripts/buildsystems/vcpkg.cmake\" \\\n    -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=\"/vcpkg-custom-triplets/toolchains/arm64-osx-cross-toolchain.cmake\" \\\n    -DVCPKG_TARGET_TRIPLET=\"arm64-osx-cross\"\ncmake --build build\n```\n\n## Customization\n- Add or modify triplets in `vcpkg-custom-triplets/` for new platforms.\n- Update toolchain files in `vcpkg-custom-triplets/toolchains/` as needed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjinks%2Falpine-vcpkg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjinks%2Falpine-vcpkg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjinks%2Falpine-vcpkg/lists"}