aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/getopt
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/getopt')
-rw-r--r--vcpkg/ports/getopt/portfile.cmake5
-rw-r--r--vcpkg/ports/getopt/vcpkg.json13
2 files changed, 18 insertions, 0 deletions
diff --git a/vcpkg/ports/getopt/portfile.cmake b/vcpkg/ports/getopt/portfile.cmake
new file mode 100644
index 0000000..21d59eb
--- /dev/null
+++ b/vcpkg/ports/getopt/portfile.cmake
@@ -0,0 +1,5 @@
+if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
+ message(FATAL_ERROR "No implementation of getopt is currently available for UWP targets")
+endif()
+
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
diff --git a/vcpkg/ports/getopt/vcpkg.json b/vcpkg/ports/getopt/vcpkg.json
new file mode 100644
index 0000000..3c36900
--- /dev/null
+++ b/vcpkg/ports/getopt/vcpkg.json
@@ -0,0 +1,13 @@
+{
+ "name": "getopt",
+ "version": "0",
+ "port-version": 3,
+ "description": "The getopt and getopt_long functions automate some of the chore involved in parsing typical unix command line options.",
+ "supports": "!uwp",
+ "dependencies": [
+ {
+ "name": "getopt-win32",
+ "platform": "windows & !mingw"
+ }
+ ]
+}