You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by iv...@apache.org on 2022/07/09 07:11:31 UTC

svn commit: r1902596 - in /apr/apr/trunk: ./ CMakePresets.json

Author: ivan
Date: Sat Jul  9 07:11:31 2022
New Revision: 1902596

URL: http://svn.apache.org/viewvc?rev=1902596&view=rev
Log:
Add CMakePresets.json with preconfigured build configurations for Visual
Studio. Add out directory to svn:ignore.

Added:
    apr/apr/trunk/CMakePresets.json
Modified:
    apr/apr/trunk/   (props changed)

Propchange: apr/apr/trunk/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Sat Jul  9 07:11:31 2022
@@ -49,3 +49,4 @@ apr*.pc
 apr.spec
 libtool.exe
 .vs
+out

Added: apr/apr/trunk/CMakePresets.json
URL: http://svn.apache.org/viewvc/apr/apr/trunk/CMakePresets.json?rev=1902596&view=auto
==============================================================================
--- apr/apr/trunk/CMakePresets.json (added)
+++ apr/apr/trunk/CMakePresets.json Sat Jul  9 07:11:31 2022
@@ -0,0 +1,66 @@
+{
+  "version": 3,
+  "configurePresets": [
+    {
+      "name": "windows-base",
+      "description": "Target Windows with the Visual Studio development environment.",
+      "hidden": true,
+      "generator": "Ninja",
+      "binaryDir": "${sourceDir}/out/build/${presetName}",
+      "installDir": "${sourceDir}/out/install/${presetName}",
+      "cacheVariables": {
+        "CMAKE_C_COMPILER": "cl.exe",
+        "CMAKE_CXX_COMPILER": "cl.exe"
+      },
+      "condition": {
+        "type": "equals",
+        "lhs": "${hostSystemName}",
+        "rhs": "Windows"
+      }
+    },
+    {
+      "name": "x64-debug",
+      "displayName": "x64 Debug",
+      "description": "Target Windows (64-bit) with the Visual Studio development environment. (Debug)",
+      "inherits": "windows-base",
+      "architecture": {
+        "value": "x64",
+        "strategy": "external"
+      },
+      "cacheVariables": {
+        "CMAKE_BUILD_TYPE": "Debug"
+      }
+    },
+    {
+      "name": "x64-release",
+      "displayName": "x64 Release",
+      "description": "Target Windows (64-bit) with the Visual Studio development environment. (RelWithDebInfo)",
+      "inherits": "x64-debug",
+      "cacheVariables": {
+        "CMAKE_BUILD_TYPE": "Release"
+      }
+    },
+    {
+      "name": "x86-debug",
+      "displayName": "x86 Debug",
+      "description": "Target Windows (32-bit) with the Visual Studio development environment. (Debug)",
+      "inherits": "windows-base",
+      "architecture": {
+        "value": "x86",
+        "strategy": "external"
+      },
+      "cacheVariables": {
+        "CMAKE_BUILD_TYPE": "Debug"
+      }
+    },
+    {
+      "name": "x86-release",
+      "displayName": "x86 Release",
+      "description": "Target Windows (32-bit) with the Visual Studio development environment. (RelWithDebInfo)",
+      "inherits": "x86-debug",
+      "cacheVariables": {
+        "CMAKE_BUILD_TYPE": "Release"
+      }
+    }
+  ]
+}