AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Xmake Targets

skill-xmake-io-xmake-skills-xmake-targets · by xmake-io

Use when configuring targets in xmake.lua — setting kind (binary/static/shared), adding files/includes/links, defining dependencies between targets, and applying per-target compile/link flags.

No reviews yet
0 installs
6 views
0.0% view→install

Install

$ agentstack add skill-xmake-io-xmake-skills-xmake-targets

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-xmake-io-xmake-skills-xmake-targets)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Xmake Targets? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Xmake Targets

A target is a unit of build output. Every buildable artifact lives inside target("name") ... target_end() (or just the indented block until the next top-level call).

Kinds

target("app")
    set_kind("binary")     -- executable
target("mylib")
    set_kind("static")     -- .a / .lib
target("mydyn")
    set_kind("shared")     -- .so / .dll / .dylib
target("headeronly")
    set_kind("headeronly") -- no compilation, just install headers

Sources and headers

target("foo")
    set_kind("static")
    add_files("src/*.cpp", "src/**/*.cpp")
    remove_files("src/legacy/*.cpp")
    add_includedirs("include", {public = true})   -- public = also exposed to dependents
    add_headerfiles("include/(**.h)")              -- for `xmake install`

Globs: * matches one level, ** matches recursively. (...) in add_headerfiles preserves directory structure.

Dependencies between targets

target("mylib")
    set_kind("static")
    add_files("src/lib/*.cpp")
    add_includedirs("include", {public = true})

target("app")
    set_kind("binary")
    add_files("src/main.cpp")
    add_deps("mylib")      -- inherits public includes/defines/links

Flags and defines

target("app")
    set_languages("c++17")
    set_warnings("all", "error")
    set_optimize("fastest")      -- none|faster|fastest|smallest
    set_symbols("debug")         -- debug|hidden
    add_defines("MY_MACRO=1", {public = true})
    add_cxflags("-Wshadow", {force = true})
    add_ldflags("-Wl,--as-needed")
    add_links("pthread")         -- prefer add_syslinks on cross-platform code
    add_syslinks("pthread", "dl")

{public = true} propagates to dependents; {force = true} skips the automatic flag-detection filter.

Target-level files by platform/mode

target("app")
    if is_plat("windows") then
        add_files("src/win/*.cpp")
    elseif is_plat("linux", "macosx") then
        add_files("src/posix/*.cpp")
    end
    if is_mode("debug") then
        add_defines("DEBUG")
    end

Before/after hooks

target("app")
    after_build(function (target)
        print("built: %s", target:targetfile())
    end)

Hooks available: on_load, before_build, on_build, after_build, before_install, after_install, before_run, after_run, etc.

When to branch out

  • User options gating these settings → xmake-options
  • Linking a 3rd-party library → xmake-packages
  • Reusable config across targets → xmake-rules

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.