premake / premake/premake-core

Add ability to download project dependencies

Open
#2,772 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C
Stars
3.6k
Forks
654
Avg merge
1d 1h
Merged PRs (30d)
13

Description

A feature similar to CMake's FetchContent so that we can download and configure dependencies. Currently, a combination of http.download and zip.extract can do this but can we make this more convenient and allow configuration?

Or perhaps we can do such a thing:

project "GoogleTest"
  kind "StaticLib"
  url "https://github.com/google/googletest/archive/refs/tags/v1.15.2.tar.gz"
  -- or url "https://github.com/google/googletest.git"
  location "vendor"
  files {
    "vendor/googletest/googletest/src/gtest-all.cc",
    "vendor/googletest/googletest/src/gtest_main.cc"
  }
  includedirs {
    "vendor/googletest/googletest",
    "vendor/googletest/googletest/include"
  }

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the existing http.download and zip.extract entry points and compare their behavior with CMake's FetchContent. Define how project configuration should express archive or Git dependencies, their download location, and configuration options. Done means a convenient dependency workflow supports the examples described without requiring the current combination of commands.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.