Skip to content
This repository was archived by the owner on Oct 6, 2023. It is now read-only.

jasonwhite/button-lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lua Build Descriptions for Button

Build Status Build status

A tool to generate build descriptions from Lua scripts that are suitable for input to Button.

Example

local cc = require "rules.cc"

cc.binary {
    name = "foobar",
    srcs = {"foo.c", "bar.c"},
}

If this script is named BUILD.lua, we can generate the low-level build description by running

button-lua BUILD.lua -o button.json

See also BUILD.lua for this repository for a real-world example.

Building it

On Linux

You need Lua 5.2 or above installed. One of the following commands should do that for you:

sudo pacman -Sy lua
sudo apt-get install lua5.2

Then, simply run:

make

This will create a self-contained executable named button-lua.

On Windows

Since Windows has no real package manager, we need to download Lua ourselves. There is a PowerShell script to do that for you:

powershell -ExecutionPolicy Bypass -File .\tools\get-lua.ps1

Then, build the Visual Studio 2015 solution:

vs\vs2015\button-lua.sln

License

MIT License

About

Build description generator for Button using Lua.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •