{
  "schema": 1,
  "id": "ext.buildtools",
  "name": "Build-Werkzeuge",
  "version": "1.0.6",
  "category": "language",
  "description": "CMake, Makefile, XML (pom.xml), Gradle (Groovy), Properties and Dockerfile — everything that sits next to the code in Java, Kotlin, C, C++ and Node projects.",
  "author": "Lumen",
  "icon": "⚙",
  "color": "#064f8c",
  "license": "MIT",
  "minAppVersion": "0.5.0",
  "keywords": [
    "buildtools",
    "cmake",
    "makefile",
    "xml",
    "groovy",
    "properties",
    "dockerfile"
  ],
  "readme": "",
  "settings": [],
  "pages": [],
  "agents": [],
  "views": [],
  "commands": [],
  "addon": {
    "schema": 1,
    "languages": [
      {
        "id": "cmake",
        "name": "CMake",
        "extensions": [
          ".cmake"
        ],
        "filenames": [
          "CMakeLists.txt",
          "CMakePresets.json"
        ],
        "icon": "CM",
        "color": "#064f8c",
        "caseInsensitive": true,
        "comments": {
          "line": "#",
          "block": [
            "#[[",
            "]]"
          ]
        },
        "controls": [
          "if",
          "elseif",
          "else",
          "endif",
          "foreach",
          "endforeach",
          "while",
          "endwhile",
          "function",
          "endfunction",
          "macro",
          "endmacro",
          "return",
          "break",
          "continue"
        ],
        "keywords": [
          "cmake_minimum_required",
          "project",
          "add_executable",
          "add_library",
          "add_subdirectory",
          "target_link_libraries",
          "target_include_directories",
          "target_compile_options",
          "target_compile_definitions",
          "target_compile_features",
          "target_sources",
          "set",
          "unset",
          "option",
          "message",
          "include",
          "find_package",
          "find_library",
          "find_program",
          "install",
          "enable_testing",
          "add_test",
          "add_custom_command",
          "add_custom_target",
          "file",
          "list",
          "string",
          "math",
          "configure_file",
          "include_directories",
          "link_directories",
          "add_definitions",
          "add_compile_options",
          "set_target_properties",
          "get_target_property",
          "cmake_policy",
          "FetchContent_Declare",
          "FetchContent_MakeAvailable",
          "set_property",
          "get_property",
          "execute_process",
          "export",
          "add_dependencies"
        ],
        "builtins": [
          "CMAKE_CXX_STANDARD",
          "CMAKE_C_STANDARD",
          "CMAKE_BUILD_TYPE",
          "CMAKE_SOURCE_DIR",
          "CMAKE_BINARY_DIR",
          "CMAKE_CURRENT_SOURCE_DIR",
          "CMAKE_CURRENT_BINARY_DIR",
          "CMAKE_EXPORT_COMPILE_COMMANDS",
          "CMAKE_CXX_FLAGS",
          "CMAKE_C_FLAGS",
          "PROJECT_NAME",
          "PROJECT_VERSION",
          "CMAKE_INSTALL_PREFIX",
          "CMAKE_CXX_STANDARD_REQUIRED",
          "CMAKE_CXX_EXTENSIONS",
          "CMAKE_MODULE_PATH",
          "CMAKE_PREFIX_PATH",
          "CMAKE_SYSTEM_NAME",
          "CMAKE_TOOLCHAIN_FILE"
        ],
        "constants": [
          "ON",
          "OFF",
          "TRUE",
          "FALSE",
          "YES",
          "NO",
          "PUBLIC",
          "PRIVATE",
          "INTERFACE",
          "STATIC",
          "SHARED",
          "MODULE",
          "REQUIRED",
          "QUIET",
          "STATUS",
          "WARNING",
          "FATAL_ERROR",
          "VERSION",
          "LANGUAGES",
          "CXX",
          "C",
          "NOT",
          "AND",
          "OR",
          "STREQUAL",
          "EQUAL",
          "MATCHES",
          "EXISTS",
          "DEFINED",
          "IN_LIST"
        ],
        "strings": [
          {
            "start": "\"",
            "multiline": true,
            "escapes": true,
            "interpolate": "${"
          }
        ],
        "identifier": "^[A-Za-z_][\\w.-]*",
        "snippets": [
          {
            "label": "project",
            "detail": "Skeleton",
            "body": "cmake_minimum_required(VERSION 3.20)\nproject(${name} VERSION 0.1.0 LANGUAGES CXX)\n\nset(CMAKE_CXX_STANDARD 20)\nset(CMAKE_EXPORT_COMPILE_COMMANDS ON)\n\nadd_executable(${name} src/main.cpp)$0"
          },
          {
            "label": "exe",
            "detail": "add_executable",
            "body": "add_executable(${target} ${quellen})$0"
          },
          {
            "label": "lib",
            "detail": "add_library",
            "body": "add_library(${target} STATIC ${quellen})$0"
          },
          {
            "label": "link",
            "detail": "target_link_libraries",
            "body": "target_link_libraries(${target} PRIVATE ${bibliothek})$0"
          },
          {
            "label": "inc",
            "detail": "target_include_directories",
            "body": "target_include_directories(${target} PUBLIC include)$0"
          },
          {
            "label": "find",
            "detail": "find_package",
            "body": "find_package(${Paket} REQUIRED)$0"
          },
          {
            "label": "fetch",
            "detail": "FetchContent",
            "body": "include(FetchContent)\nFetchContent_Declare(\n  ${name}\n  GIT_REPOSITORY ${url}\n  GIT_TAG ${tag}\n)\nFetchContent_MakeAvailable(${name})$0"
          },
          {
            "label": "opt",
            "detail": "option",
            "body": "option(${NAME} \"${Beschreibung}\" OFF)$0"
          },
          {
            "label": "test",
            "detail": "add_test",
            "body": "enable_testing()\nadd_test(NAME ${name} COMMAND ${target})$0"
          }
        ],
        "run": [
          {
            "label": "cmake konfigurieren",
            "command": "cmake",
            "args": [
              "-S",
              ".",
              "-B",
              "build",
              "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
            ]
          },
          {
            "label": "cmake --build",
            "command": "cmake",
            "args": [
              "--build",
              "build"
            ]
          }
        ],
        "lsp": [
          {
            "label": "neocmakelsp",
            "command": "neocmakelsp",
            "args": [
              "--stdio"
            ],
            "languageId": "cmake",
            "rootMarkers": [
              "CMakeLists.txt",
              ".git"
            ],
            "install": "cargo install neocmakelsp",
            "package": {
              "type": "github",
              "repo": "neocmakelsp/neocmakelsp",
              "assets": {
                "linux-x64": "^neocmakelsp-x86_64-unknown-linux-gnu\\.tar\\.gz$",
                "linux-arm64": "^neocmakelsp-aarch64-unknown-linux-gnu\\.tar\\.gz$",
                "darwin-x64": "^neocmakelsp-universal-apple-darwin\\.tar\\.gz$",
                "darwin-arm64": "^neocmakelsp-universal-apple-darwin\\.tar\\.gz$",
                "win32-x64": "^neocmakelsp-x86_64-pc-windows-msvc\\.zip$",
                "win32-arm64": "^neocmakelsp-aarch64-pc-windows-msvc\\.zip$"
              }
            },
            "installCommands": {
              "linux": "cargo install neocmakelsp",
              "darwin": "cargo install neocmakelsp"
            },
            "docs": "https://github.com/neocmakelsp/neocmakelsp"
          },
          {
            "label": "cmake-language-server",
            "command": "cmake-language-server",
            "args": [],
            "languageId": "cmake",
            "rootMarkers": [
              "CMakeLists.txt",
              ".git"
            ],
            "initializationOptions": {
              "buildDirectory": "build"
            },
            "install": "pipx install --python python3.13 cmake-language-server, then pipx inject cmake-language-server \"pygls<2\" (does not work with Python 3.14 and pygls 2)",
            "package": {
              "type": "pypi",
              "package": "cmake-language-server",
              "python": "3.13",
              "with": [
                "pygls<2"
              ]
            },
            "docs": "https://github.com/regen100/cmake-language-server"
          }
        ]
      },
      {
        "id": "makefile",
        "name": "Makefile",
        "extensions": [
          ".mk",
          ".mak"
        ],
        "filenames": [
          "Makefile",
          "makefile",
          "GNUmakefile"
        ],
        "icon": "Mk",
        "color": "#6d8764",
        "comments": {
          "line": "#"
        },
        "controls": [
          "ifeq",
          "ifneq",
          "ifdef",
          "ifndef",
          "else",
          "endif",
          "include",
          "-include",
          "define",
          "endef",
          "export",
          "unexport",
          "override",
          "vpath"
        ],
        "keywords": [
          ".PHONY",
          ".DEFAULT",
          ".PRECIOUS",
          ".SUFFIXES",
          ".SECONDARY",
          ".INTERMEDIATE",
          ".DELETE_ON_ERROR",
          ".ONESHELL",
          ".SILENT"
        ],
        "builtins": [
          "wildcard",
          "patsubst",
          "subst",
          "shell",
          "foreach",
          "if",
          "call",
          "eval",
          "dir",
          "notdir",
          "basename",
          "suffix",
          "addprefix",
          "addsuffix",
          "filter",
          "filter-out",
          "sort",
          "word",
          "words",
          "firstword",
          "lastword",
          "strip",
          "findstring",
          "join",
          "realpath",
          "abspath",
          "error",
          "warning",
          "info",
          "value",
          "origin",
          "flavor"
        ],
        "constants": [
          "CC",
          "CXX",
          "CFLAGS",
          "CXXFLAGS",
          "LDFLAGS",
          "LDLIBS",
          "CPPFLAGS",
          "MAKE",
          "MAKEFLAGS",
          "SHELL",
          "PREFIX",
          "DESTDIR",
          "RM",
          "AR"
        ],
        "strings": [
          {
            "start": "\"",
            "escapes": true
          },
          {
            "start": "'",
            "escapes": false
          }
        ],
        "identifier": "^[A-Za-z_][\\w.-]*",
        "operators": "^(?:[:?+!]?=|::=|\\$[@<^*?%+|]|\\$\\(|\\)|[|;])",
        "indentUnit": 4,
        "snippets": [
          {
            "label": "rule",
            "detail": "Regel",
            "body": "${target}: ${dependencies}\n\t$0"
          },
          {
            "label": "phony",
            "detail": ".PHONY",
            "body": ".PHONY: ${all clean}"
          },
          {
            "label": "var",
            "detail": "Variable",
            "body": "${NAME} := $0"
          },
          {
            "label": "cproj",
            "detail": "C skeleton",
            "body": "CC ?= cc\nCFLAGS ?= -std=c17 -Wall -Wextra -g\nSRC := $(wildcard src/*.c)\nOBJ := $(SRC:.c=.o)\n\nall: ${app}\n\n${app}: $(OBJ)\n\t$(CC) -o $@ $^\n\nclean:\n\trm -f $(OBJ) ${app}\n\n.PHONY: all clean$0"
          }
        ],
        "run": [
          {
            "label": "make",
            "command": "make",
            "args": []
          },
          {
            "label": "make -j",
            "command": "make",
            "args": [
              "-j"
            ]
          },
          {
            "label": "make clean",
            "command": "make",
            "args": [
              "clean"
            ]
          }
        ],
        "lsp": [
          {
            "label": "autotools-language-server",
            "command": "autotools-language-server",
            "args": [],
            "languageId": "make",
            "rootMarkers": [
              "Makefile",
              "GNUmakefile",
              ".git"
            ],
            "install": "pipx install autotools-language-server",
            "package": {
              "type": "pypi",
              "package": "autotools-language-server"
            },
            "docs": "https://github.com/Freed-Wu/autotools-language-server"
          }
        ]
      },
      {
        "id": "xml",
        "name": "XML",
        "extensions": [
          ".xml",
          ".xsd",
          ".xsl",
          ".xslt",
          ".svg",
          ".plist",
          ".pom",
          ".fxml",
          ".launch",
          ".iml"
        ],
        "filenames": [
          "pom.xml",
          "web.xml",
          "AndroidManifest.xml",
          "logback.xml",
          "persistence.xml"
        ],
        "icon": "<>",
        "color": "#e37933",
        "comments": {
          "block": [
            "<!--",
            "-->"
          ]
        },
        "indentUnit": 2,
        "snippets": [
          {
            "label": "pom",
            "detail": "Maven POM skeleton",
            "body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n         xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n         xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd\">\n  <modelVersion>4.0.0</modelVersion>\n  <groupId>${de.beispiel}</groupId>\n  <artifactId>${projekt}</artifactId>\n  <version>0.1.0-SNAPSHOT</version>\n  <properties>\n    <maven.compiler.release>21</maven.compiler.release>\n    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\n  </properties>\n  $0\n</project>"
          },
          {
            "label": "dep",
            "detail": "Maven dependency",
            "body": "<dependency>\n  <groupId>${gruppe}</groupId>\n  <artifactId>${artefakt}</artifactId>\n  <version>${version}</version>$0\n</dependency>"
          },
          {
            "label": "plugin",
            "detail": "Maven-Plugin",
            "body": "<plugin>\n  <groupId>${org.apache.maven.plugins}</groupId>\n  <artifactId>${maven-compiler-plugin}</artifactId>\n  <version>${3.13.0}</version>$0\n</plugin>"
          },
          {
            "label": "prop",
            "detail": "Property",
            "body": "<${name}>${wert}</${name}>$0"
          },
          {
            "label": "cdata",
            "detail": "CDATA",
            "body": "<![CDATA[$0]]>"
          }
        ],
        "lsp": [
          {
            "label": "lemminx",
            "command": "lemminx",
            "args": [],
            "candidates": [
              "~/.local/share/nvim/mason/bin/lemminx"
            ],
            "languageId": "xml",
            "rootMarkers": [
              "pom.xml",
              ".git"
            ],
            "settings": {
              "xml": {
                "format": {
                  "enabled": true,
                  "splitAttributes": "alignWithFirstAttr",
                  "preserveAttributeLineBreaks": false,
                  "preserveEmptyContent": true,
                  "joinContentLines": false,
                  "joinCommentLines": false,
                  "joinCDATALines": false,
                  "preservedNewlines": 99,
                  "grammarAwareFormatting": false,
                  "emptyElements": "ignore"
                }
              }
            },
            "install": "https://github.com/eclipse/lemminx (Binary „lemminx“ in den PATH)",
            "package": {
              "type": "github",
              "repo": "redhat-developer/vscode-xml",
              "assets": {
                "linux-x64": "^lemminx-linux-x86_64\\.zip$",
                "linux-arm64": "^lemminx-linux-aarch_64\\.zip$",
                "darwin-x64": "^lemminx-osx-x86_64\\.zip$",
                "darwin-arm64": "^lemminx-osx-aarch_64\\.zip$",
                "win32-x64": "^lemminx-win32\\.zip$"
              }
            },
            "docs": "https://github.com/eclipse/lemminx"
          }
        ],
        "tokenizer": "markup"
      },
      {
        "id": "groovy",
        "name": "Groovy / Gradle",
        "extensions": [
          ".groovy",
          ".gradle",
          ".gvy",
          ".gy",
          ".gsh"
        ],
        "filenames": [
          "Jenkinsfile"
        ],
        "icon": "Gv",
        "color": "#4298b8",
        "capitalizedAsType": true,
        "comments": {
          "line": "//",
          "block": [
            "/*",
            "*/"
          ]
        },
        "controls": [
          "if",
          "else",
          "for",
          "while",
          "do",
          "switch",
          "case",
          "default",
          "break",
          "continue",
          "return",
          "throw",
          "try",
          "catch",
          "finally",
          "in",
          "as",
          "assert"
        ],
        "keywords": [
          "def",
          "class",
          "interface",
          "enum",
          "trait",
          "extends",
          "implements",
          "new",
          "package",
          "import",
          "public",
          "private",
          "protected",
          "static",
          "final",
          "abstract",
          "this",
          "super",
          "instanceof",
          "throws",
          "var",
          "it"
        ],
        "types": [
          "int",
          "long",
          "short",
          "byte",
          "char",
          "float",
          "double",
          "boolean",
          "void",
          "String",
          "Object",
          "List",
          "Map",
          "Set",
          "Closure",
          "File",
          "Integer",
          "Boolean"
        ],
        "builtins": [
          "println",
          "print",
          "plugins",
          "dependencies",
          "repositories",
          "apply",
          "implementation",
          "api",
          "compileOnly",
          "runtimeOnly",
          "testImplementation",
          "testRuntimeOnly",
          "mavenCentral",
          "google",
          "mavenLocal",
          "gradlePluginPortal",
          "task",
          "tasks",
          "sourceSets",
          "java",
          "kotlin",
          "application",
          "mainClass",
          "group",
          "version",
          "subprojects",
          "allprojects",
          "project",
          "rootProject",
          "include",
          "buildscript",
          "classpath",
          "ext",
          "test",
          "useJUnitPlatform",
          "jar",
          "manifest",
          "attributes",
          "sourceCompatibility",
          "targetCompatibility",
          "toolchain"
        ],
        "constants": [
          "true",
          "false",
          "null"
        ],
        "strings": [
          {
            "start": "\"\"\"",
            "end": "\"\"\"",
            "multiline": true,
            "escapes": true,
            "interpolate": "${"
          },
          {
            "start": "'''",
            "end": "'''",
            "multiline": true,
            "escapes": true
          },
          {
            "start": "\"",
            "escapes": true,
            "interpolate": "${"
          },
          {
            "start": "'",
            "escapes": true
          }
        ],
        "meta": "^@[A-Za-z]\\w*",
        "indentUnit": 4,
        "snippets": [
          {
            "label": "plugins",
            "detail": "plugins-Block",
            "body": "plugins {\n    id 'java'\n    id 'application'$0\n}"
          },
          {
            "label": "deps",
            "detail": "dependencies",
            "body": "dependencies {\n    implementation '${gruppe:artefakt:version}'\n    testImplementation 'org.junit.jupiter:junit-jupiter:5.11.4'$0\n}"
          },
          {
            "label": "repos",
            "detail": "repositories",
            "body": "repositories {\n    mavenCentral()$0\n}"
          },
          {
            "label": "task",
            "detail": "Task",
            "body": "tasks.register('${name}') {\n    doLast {\n        $0\n    }\n}"
          },
          {
            "label": "app",
            "detail": "application",
            "body": "application {\n    mainClass = '${de.beispiel.Main}'\n}$0"
          }
        ],
        "run": [
          {
            "label": "Gradle build",
            "command": "./gradlew",
            "args": [
              "build"
            ]
          },
          {
            "label": "Gradle run",
            "command": "./gradlew",
            "args": [
              "run"
            ]
          },
          {
            "label": "groovy",
            "command": "groovy",
            "args": [
              "${file}"
            ]
          }
        ],
        "lsp": [
          {
            "label": "groovy-language-server",
            "command": "groovy-language-server",
            "args": [],
            "candidates": [
              "~/.local/share/nvim/mason/bin/groovy-language-server"
            ],
            "languageId": "groovy",
            "rootMarkers": [
              "build.gradle",
              "settings.gradle",
              ".git"
            ],
            "install": "https://github.com/GroovyLanguageServer/groovy-language-server (Skript „groovy-language-server“ in den PATH; Mason: groovy-language-server)",
            "docs": "https://github.com/GroovyLanguageServer/groovy-language-server"
          }
        ]
      },
      {
        "id": "properties",
        "name": "Properties",
        "extensions": [
          ".properties",
          ".ini",
          ".cfg",
          ".conf",
          ".env",
          ".editorconfig"
        ],
        "filenames": [
          ".env",
          ".env.local",
          ".env.development",
          ".env.production",
          ".gitattributes",
          "gradle.properties"
        ],
        "icon": "=",
        "color": "#9aa3b0",
        "comments": {
          "line": "#"
        },
        "constants": [
          "true",
          "false",
          "yes",
          "no",
          "on",
          "off",
          "null"
        ],
        "identifier": "^[A-Za-z_][\\w.\\-/]*",
        "operators": "^[=:]",
        "meta": "^\\[[^\\]]+\\]",
        "snippets": [
          {
            "label": "gradleprops",
            "detail": "gradle.properties",
            "body": "org.gradle.jvmargs=-Xmx2g\norg.gradle.parallel=true\norg.gradle.caching=true\nkotlin.code.style=official$0"
          }
        ],
        "lsp": []
      },
      {
        "id": "dockerfile",
        "name": "Dockerfile",
        "extensions": [
          ".dockerfile"
        ],
        "filenames": [
          "Dockerfile",
          "Containerfile"
        ],
        "icon": "Dk",
        "color": "#2496ed",
        "caseInsensitive": true,
        "comments": {
          "line": "#"
        },
        "keywords": [
          "FROM",
          "RUN",
          "CMD",
          "LABEL",
          "EXPOSE",
          "ENV",
          "ADD",
          "COPY",
          "ENTRYPOINT",
          "VOLUME",
          "USER",
          "WORKDIR",
          "ARG",
          "ONBUILD",
          "STOPSIGNAL",
          "HEALTHCHECK",
          "SHELL",
          "AS",
          "MAINTAINER"
        ],
        "constants": [
          "true",
          "false"
        ],
        "strings": [
          {
            "start": "\"",
            "escapes": true
          },
          {
            "start": "'",
            "escapes": false
          }
        ],
        "snippets": [
          {
            "label": "java",
            "detail": "Java-Image",
            "body": "FROM eclipse-temurin:21-jre\nWORKDIR /app\nCOPY target/${app}.jar app.jar\nENTRYPOINT [\"java\", \"-jar\", \"app.jar\"]$0"
          },
          {
            "label": "node",
            "detail": "Node-Image",
            "body": "FROM node:22-alpine\nWORKDIR /app\nCOPY package*.json ./\nRUN npm ci\nCOPY . .\nCMD [\"node\", \"src/index.js\"]$0"
          },
          {
            "label": "cpp",
            "detail": "C++-Build",
            "body": "FROM gcc:14 AS build\nWORKDIR /src\nCOPY . .\nRUN cmake -S . -B build && cmake --build build\n\nFROM debian:bookworm-slim\nCOPY --from=build /src/build/${app} /usr/local/bin/${app}\nCMD [\"${app}\"]$0"
          }
        ],
        "run": [
          {
            "label": "docker build",
            "command": "docker",
            "args": [
              "build",
              "-t",
              "${fileStem}",
              "${fileDir}"
            ]
          }
        ],
        "lsp": [
          {
            "label": "docker-langserver",
            "command": "docker-langserver",
            "args": [
              "--stdio"
            ],
            "languageId": "dockerfile",
            "install": "npm i -g dockerfile-language-server-nodejs",
            "package": {
              "type": "npm",
              "packages": [
                "dockerfile-language-server-nodejs"
              ]
            }
          }
        ]
      }
    ],
    "themes": [],
    "commands": [],
    "events": [],
    "templates": [],
    "projectKinds": [],
    "snippets": [],
    "id": "ext.buildtools",
    "name": "Build-Werkzeuge",
    "version": "1.0.6",
    "description": "CMake, Makefile, XML (pom.xml), Gradle (Groovy), Properties and Dockerfile — everything that sits next to the code in Java, Kotlin, C, C++ and Node projects.",
    "author": "Lumen",
    "icon": "⚙",
    "color": "#064f8c",
    "category": "language"
  }
}
