Skip to content

Instantly share code, notes, and snippets.

@olivia-banks
Created August 5, 2020 20:07
Show Gist options
  • Select an option

  • Save olivia-banks/b918b8742af43a4a5f142b936565ff83 to your computer and use it in GitHub Desktop.

Select an option

Save olivia-banks/b918b8742af43a4a5f142b936565ff83 to your computer and use it in GitHub Desktop.
-- 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()
@olivia-banks
Copy link
Author

Holy shit Boron was two years ago!?!? Jesus fuck...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment