Created
August 5, 2020 20:07
-
-
Save olivia-banks/b918b8742af43a4a5f142b936565ff83 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Possibility for how to write a Borofile | |
| function install_target() | |
| -- Install some things | |
| os.rename("math/math", "${BORON_INST_PREFIX}/math") | |
| end | |
| function test_target() | |
| -- Test some things | |
| print("Testing currently not support for this project?") | |
| end | |
| test_workspace = { | |
| language = "c", | |
| standard = "11", | |
| borondeps = true, | |
| } | |
| test_project = { | |
| type = "Binary", | |
| name = "commandlinemath", | |
| version = "0.3.5", | |
| directory = "math", | |
| files = { | |
| "**.h", | |
| "**.c" | |
| }, | |
| include = { | |
| "$(BORON_SOURCE_DIR)/lib/dependency/include" | |
| } | |
| } | |
| boron_configure() | |
| boron_add_workspace(test_workspace) | |
| boron_add_project(test_workspace, test_project) | |
| boron_add_target("install", install_target) | |
| boron_add_target("test", test_target) | |
| boron_generate() |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Holy shit Boron was two years ago!?!? Jesus fuck...