vcpkg.sh 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +164 -0
- package/install.sh +27 -0
- package/package.json +35 -0
- package/vcpkg +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Subhajit Sahu
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
This document is a copy of the README file on the Microsoft/vcpkg-docs repository.
|
|
3
|
+
|
|
4
|
+
To make changes modify this file instead:
|
|
5
|
+
https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/readme/vcpkg-README.md
|
|
6
|
+
-->
|
|
7
|
+
|
|
8
|
+
[🌐 Read in a different language](https://learn.microsoft.com/locale/?target=https%3A%2F%2Flearn.microsoft.com%2Fvcpkg%2F)
|
|
9
|
+
|
|
10
|
+
# vcpkg overview
|
|
11
|
+
|
|
12
|
+
vcpkg is a free and open-source C/C++ package manager maintained by Microsoft
|
|
13
|
+
and the C++ community.
|
|
14
|
+
|
|
15
|
+
Initially launched in 2016 as a tool for assisting developers in migrating their
|
|
16
|
+
projects to newer versions of Visual Studio, vcpkg has evolved into a
|
|
17
|
+
cross-platform tool used by developers on Windows, macOS, and Linux. vcpkg has a
|
|
18
|
+
large collection of open-source libraries and enterprise-ready features designed to
|
|
19
|
+
facilitate your development process with support for any build and project
|
|
20
|
+
systems. vcpkg is a C++ tool at heart and is written in C++ with scripts in
|
|
21
|
+
CMake. It is designed from the ground up to address the unique pain points C/C++
|
|
22
|
+
developers experience.
|
|
23
|
+
|
|
24
|
+
This tool and ecosystem are constantly evolving, and we always appreciate
|
|
25
|
+
contributions! Learn how to start contributing with our [packaging
|
|
26
|
+
tutorial](https://learn.microsoft.com/vcpkg/get_started/get-started-adding-to-registry) and [maintainer
|
|
27
|
+
guide](https://learn.microsoft.com/vcpkg/contributing/maintainer-guide).
|
|
28
|
+
|
|
29
|
+
# Get started
|
|
30
|
+
|
|
31
|
+
First, follow one of our quick start guides.
|
|
32
|
+
|
|
33
|
+
Whether you're using CMake, MSBuild, or any other build system, vcpkg has you covered:
|
|
34
|
+
|
|
35
|
+
* [vcpkg with CMake](https://learn.microsoft.com/vcpkg/get_started/get-started)
|
|
36
|
+
* [vcpkg with MSBuild](https://learn.microsoft.com/vcpkg/get_started/get-started-msbuild)
|
|
37
|
+
* [vcpkg with other build systems](https://learn.microsoft.com/vcpkg/users/buildsystems/manual-integration)
|
|
38
|
+
|
|
39
|
+
You can also use any editor:
|
|
40
|
+
|
|
41
|
+
* [vcpkg with Visual Studio](https://learn.microsoft.com/vcpkg/get_started/get-started-vs)
|
|
42
|
+
* [vcpkg with Visual Studio Code](https://learn.microsoft.com/vcpkg/get_started/get-started-vscode)
|
|
43
|
+
* [vcpkg with
|
|
44
|
+
CLion](<https://www.jetbrains.com/help/clion/package-management.html>)
|
|
45
|
+
* [vcpkg with Qt Creator](<https://doc.qt.io/qtcreator/creator-vcpkg.html>)
|
|
46
|
+
|
|
47
|
+
If a library you need is not present in the vcpkg registry, [open an issue on
|
|
48
|
+
the GitHub repository][contributing:submit-issue] or [contribute the package
|
|
49
|
+
yourself](https://learn.microsoft.com/vcpkg/get_started/get-started-adding-to-registry).
|
|
50
|
+
|
|
51
|
+
After you've gotten vcpkg installed and working, you may wish to [add
|
|
52
|
+
tab completion to your terminal](https://learn.microsoft.com/vcpkg/commands/integrate#vcpkg-autocompletion).
|
|
53
|
+
|
|
54
|
+
# Installation
|
|
55
|
+
|
|
56
|
+
To install vcpkg on Windows, run:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npm i -g vcpkg.cmd
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
This installs the vcpkg command globally using npm, with telemetry disabled by default.
|
|
63
|
+
|
|
64
|
+
# Use vcpkg
|
|
65
|
+
|
|
66
|
+
Create a [manifest for your project's dependencies](https://learn.microsoft.com/vcpkg/consume/manifest-mode):
|
|
67
|
+
|
|
68
|
+
```Console
|
|
69
|
+
vcpkg new --application
|
|
70
|
+
vcpkg add port fmt
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Or [install packages through the command line](https://learn.microsoft.com/vcpkg/consume/classic-mode):
|
|
74
|
+
|
|
75
|
+
```Console
|
|
76
|
+
vcpkg install fmt
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Then use one of our available integrations for
|
|
80
|
+
[CMake](https://learn.microsoft.com/vcpkg/concepts/build-system-integration#cmake-integration),
|
|
81
|
+
[MSBuild](https://learn.microsoft.com/vcpkg/concepts/build-system-integration#msbuild-integration) or
|
|
82
|
+
[other build
|
|
83
|
+
systems](https://learn.microsoft.com/vcpkg/concepts/build-system-integration#manual-integration).
|
|
84
|
+
|
|
85
|
+
For a short description of all available commands, run `vcpkg help`.
|
|
86
|
+
Run `vcpkg help [topic]` for details on a specific topic.
|
|
87
|
+
|
|
88
|
+
# Key features
|
|
89
|
+
|
|
90
|
+
vcpkg offers powerful features for your package management needs:
|
|
91
|
+
|
|
92
|
+
* [easily integrate with your build system](https://learn.microsoft.com/vcpkg/concepts/build-system-integration)
|
|
93
|
+
* [control the versions of your dependencies](https://learn.microsoft.com/vcpkg/users/versioning)
|
|
94
|
+
* [package and publish your own packages](https://learn.microsoft.com/vcpkg/concepts/registries)
|
|
95
|
+
* [reuse your binary artifacts](https://learn.microsoft.com/vcpkg/users/binarycaching)
|
|
96
|
+
* [enable offline scenarios with asset caching](https://learn.microsoft.com/vcpkg/concepts/asset-caching)
|
|
97
|
+
|
|
98
|
+
# Contribute
|
|
99
|
+
|
|
100
|
+
vcpkg is an open source project, and is thus built with your contributions. Here
|
|
101
|
+
are some ways you can contribute:
|
|
102
|
+
|
|
103
|
+
* [Submit issues][contributing:submit-issue] in vcpkg or existing packages
|
|
104
|
+
* [Submit fixes and new packages][contributing:submit-pr]
|
|
105
|
+
|
|
106
|
+
Please refer to our [mantainer guide](https://learn.microsoft.com/vcpkg/contributing/maintainer-guide) and
|
|
107
|
+
[packaging tutorial](https://learn.microsoft.com/vcpkg/get_started/get-started-packaging) for more details.
|
|
108
|
+
|
|
109
|
+
This project has adopted the [Microsoft Open Source Code of
|
|
110
|
+
Conduct][contributing:coc]. For more information see the [Code of Conduct
|
|
111
|
+
FAQ][contributing:coc-faq] or email
|
|
112
|
+
[opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional
|
|
113
|
+
questions or comments.
|
|
114
|
+
|
|
115
|
+
[contributing:submit-issue]: https://github.com/microsoft/vcpkg/issues/new/choose
|
|
116
|
+
[contributing:submit-pr]: https://github.com/microsoft/vcpkg/pulls
|
|
117
|
+
[contributing:coc]: https://opensource.microsoft.com/codeofconduct/
|
|
118
|
+
[contributing:coc-faq]: https://opensource.microsoft.com/codeofconduct/
|
|
119
|
+
|
|
120
|
+
# Resources
|
|
121
|
+
|
|
122
|
+
* Ports: [Microsoft/vcpkg](<https://github.com/microsoft/vcpkg>)
|
|
123
|
+
* Source code: [Microsoft/vcpkg-tool](<https://github.com/microsoft/vcpkg-tool>)
|
|
124
|
+
* Docs: [Microsoft Learn | vcpkg](https://learn.microsoft.com/vcpkg)
|
|
125
|
+
* Website: [vcpkg.io](<https://vcpkg.io>)
|
|
126
|
+
* Email: [vcpkg@microsoft.com](<mailto:vcpkg@microsoft.com>)
|
|
127
|
+
* Discord: [\#include \<C++\>'s Discord server](<https://www.includecpp.org>), in the #🌏vcpkg channel
|
|
128
|
+
* Slack: [C++ Alliance's Slack server](<https://cppalliance.org/slack/>), in the #vcpkg channel
|
|
129
|
+
|
|
130
|
+
# License
|
|
131
|
+
|
|
132
|
+
The code in this repository is licensed under the MIT License. The libraries
|
|
133
|
+
provided by ports are licensed under the terms of their original authors. Where
|
|
134
|
+
available, vcpkg places the associated license(s) in the location
|
|
135
|
+
[`installed/<triplet>/share/<port>/copyright`](https://learn.microsoft.com/vcpkg/contributing/maintainer-guide#install-copyright-file).
|
|
136
|
+
|
|
137
|
+
# Security
|
|
138
|
+
|
|
139
|
+
Most ports in vcpkg build the libraries in question using the original build
|
|
140
|
+
system preferred by the original developers of those libraries, and download
|
|
141
|
+
source code and build tools from their official distribution locations. For use
|
|
142
|
+
behind a firewall, the specific access needed will depend on which ports are
|
|
143
|
+
being installed. If you must install it in an "air gapped" environment, consider
|
|
144
|
+
instaling once in a non-"air gapped" environment, populating an [asset
|
|
145
|
+
cache](https://learn.microsoft.com/vcpkg/users/assetcaching) shared with the otherwise "air gapped"
|
|
146
|
+
environment.
|
|
147
|
+
|
|
148
|
+
# Telemetry
|
|
149
|
+
|
|
150
|
+
vcpkg collects usage data in order to help us improve your experience. The data
|
|
151
|
+
collected by Microsoft is anonymous. You can opt-out of telemetry by:
|
|
152
|
+
|
|
153
|
+
- running the bootstrap-vcpkg script with `-disableMetrics`
|
|
154
|
+
- passing `--disable-metrics` to vcpkg on the command line
|
|
155
|
+
- setting the `VCPKG_DISABLE_METRICS` environment variable
|
|
156
|
+
|
|
157
|
+
Read more about vcpkg telemetry at [https://learn.microsoft.com/vcpkg/about/privacy](https://learn.microsoft.com/vcpkg/about/privacy).
|
|
158
|
+
|
|
159
|
+
<br>
|
|
160
|
+
<br>
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
[](https://nodef.github.io)
|
|
164
|
+

|
package/install.sh
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
REPO="https://github.com/Microsoft/vcpkg"
|
|
3
|
+
TEMP_DIR="repo"
|
|
4
|
+
|
|
5
|
+
# We want to download vcpkg in the current directory
|
|
6
|
+
# 1. Download the repo to a temp folder
|
|
7
|
+
if ! git --version >/dev/null 2>&1; then
|
|
8
|
+
echo "Git is not installed. Please install Git and ensure it is in your PATH." >&2
|
|
9
|
+
exit 1
|
|
10
|
+
fi
|
|
11
|
+
git clone --depth 1 "$REPO" "$TEMP_DIR"
|
|
12
|
+
rm -f "vcpkg"
|
|
13
|
+
# 2. Move the contents of the temp folder to the current directory
|
|
14
|
+
if rsync --version >/dev/null 2>&1; then
|
|
15
|
+
rsync -a --exclude='.git' "$TEMP_DIR"/ .
|
|
16
|
+
else
|
|
17
|
+
shopt -s dotglob nullglob
|
|
18
|
+
for f in "$TEMP_DIR"/* "$TEMP_DIR"/.[!.]* "$TEMP_DIR"/..?*; do
|
|
19
|
+
if [[ ! -e "$f" ]]; then continue; fi
|
|
20
|
+
if [[ $(basename "$f") == ".git" ]]; then continue; fi
|
|
21
|
+
mv -f "$f" .
|
|
22
|
+
done
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
# Now, lets install vcpkg
|
|
26
|
+
./bootstrap-vcpkg.sh -disableMetrics
|
|
27
|
+
./vcpkg integrate install
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vcpkg.sh",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "C++ Library Manager for Windows, Linux, and MacOS; Microsoft (2016).",
|
|
5
|
+
"main": "vcpkg",
|
|
6
|
+
"bin": {
|
|
7
|
+
"vcpkg": "vcpkg"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"install": "./install.sh",
|
|
11
|
+
"test": "exit"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"c",
|
|
15
|
+
"windows",
|
|
16
|
+
"package-manager",
|
|
17
|
+
"visual-studio",
|
|
18
|
+
"cmake",
|
|
19
|
+
"packages",
|
|
20
|
+
"cplusplus",
|
|
21
|
+
"cpp",
|
|
22
|
+
"libraries",
|
|
23
|
+
"vcpkg"
|
|
24
|
+
],
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"author": "wolfram77@gmail.com",
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/nodef/vcpkg.sh.git"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://github.com/nodef/vcpkg.sh#readme",
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/nodef/vcpkg.sh/issues"
|
|
34
|
+
}
|
|
35
|
+
}
|
package/vcpkg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
DELETE ME
|