aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/vcpkg-gn/portfile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/vcpkg-gn/portfile.cmake')
-rw-r--r--vcpkg/ports/vcpkg-gn/portfile.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/vcpkg/ports/vcpkg-gn/portfile.cmake b/vcpkg/ports/vcpkg-gn/portfile.cmake
new file mode 100644
index 0000000..2754054
--- /dev/null
+++ b/vcpkg/ports/vcpkg-gn/portfile.cmake
@@ -0,0 +1,11 @@
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+
+if(NOT TARGET_TRIPLET STREQUAL _HOST_TRIPLET)
+ message(FATAL_ERROR "vcpkg-gn is a host-only port; please mark it as a host port in your dependencies.")
+endif()
+
+file(INSTALL
+ "${CMAKE_CURRENT_LIST_DIR}/vcpkg-port-config.cmake"
+ "${CMAKE_CURRENT_LIST_DIR}/vcpkg_gn_configure.cmake"
+ "${CMAKE_CURRENT_LIST_DIR}/vcpkg_gn_install.cmake"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")