rockspec_format = "3.1"
package = "dataview"
version = "0.0.1-1"

description = {
	summary = "A lua library around bytesview objects giving functionality like JavaScript's DataView and typed arrays.",
	detailed = [[
Utility types similar to JavaScript's DataView and typed arrays.

This includes dataview, intNarray and uintNarray for N in [8, 16, 32], int64array, float16array, float32array, and float64array.
]],
	license = "MPL-2.0",
	maintainer = "Taylor Richberger <taylor@axfive.net",
	labels = {
		"bytesview",
		"api",
	},
}

dependencies = {
	"lua>=5.1",
}

source = {
	url = "git+https://forge.axfive.net/Taylor/dataview.git",
	tag = "v0.0.1",
}

build = {
	type = "builtin",
	modules = {
		["dataview.d"] = "lua/dataview.d.lua",
		dataview = {
			sources = {
				"src/dataview.c",
				"src/lua_dataview.c",
				"bytesview/src/bytesview.c",
			},
			libraries = {},
			defines = {
				"BYTESVIEW_STATIC",
			},
			incdirs = {
				"include",
				"bytesview/include",
			},
			libdirs = {},
		},
	},
}
