aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-04-23 08:56:36 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-04-23 08:56:36 -0700
commit17328c13491bde5c472bbb7b04a907f1c2144398 (patch)
tree71e689fae9d0fb17fe62cbb4db6168e6e5b93e87
parent6242e8f7bd76b82a062ccf4146d44e571a189dbc (diff)
downloadvcpkg-17328c13491bde5c472bbb7b04a907f1c2144398.tar.gz
vcpkg-17328c13491bde5c472bbb7b04a907f1c2144398.zip
[atlmfc] Add dummy port to detect atl presence in VS
-rw-r--r--ports/atlmfc/CONTROL3
-rw-r--r--ports/atlmfc/portfile.cmake10
-rw-r--r--ports/xalan-c/CONTROL2
3 files changed, 14 insertions, 1 deletions
diff --git a/ports/atlmfc/CONTROL b/ports/atlmfc/CONTROL
new file mode 100644
index 000000000..aff5c97aa
--- /dev/null
+++ b/ports/atlmfc/CONTROL
@@ -0,0 +1,3 @@
+Source: atlmfc
+Version: 0
+Description: a stub package that ensures VS has ATL/MFC installed.
diff --git a/ports/atlmfc/portfile.cmake b/ports/atlmfc/portfile.cmake
new file mode 100644
index 000000000..d11235dcc
--- /dev/null
+++ b/ports/atlmfc/portfile.cmake
@@ -0,0 +1,10 @@
+find_path(AFXRES_H
+ NAMES afxres.h
+ PATHS $ENV{INCLUDE}
+)
+
+if(NOT AFXRES_H)
+ message(FATAL_ERROR "Unable to locate 'afxres.h'. Ensure you have installed the ATL/MFC component of Visual Studio.")
+endif()
+
+SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
diff --git a/ports/xalan-c/CONTROL b/ports/xalan-c/CONTROL
index 5936fc2f5..314ea1ecd 100644
--- a/ports/xalan-c/CONTROL
+++ b/ports/xalan-c/CONTROL
@@ -1,4 +1,4 @@
Source: xalan-c
Version: 1.11-1
Description: Xalan is an XSLT processor for transforming XML documents into HTML, text, or other XML document types
-Build-Depends: xerces-c
+Build-Depends: xerces-c, atlmfc