rockspec_format = "3.0"
package = "titan-browser"
version = "0.6.3-1"
source = {
   url = "git+https://github.com/mascarenhas/titan",
   tag = "v0.6.3"
}
description = {
   summary = "The Titan WebAssembly/browser target Lua runtime and SDK",
   detailed = [[
      The Titan WebAssembly/browser target Lua library and SDK.
      Builds and installs the browser Lua 5.5.1 Wasm archive,
      Titan browser runtime, loader, storage worker, SQLite
      service, command-line runner, and 24-module browser
      standard library into an existing Titan installation.
      Requires wasi-sdk 34, Binaryen 133, and Node 26+.
   ]],
   homepage = "https://titan-lang.dev",
   issues_url = "https://github.com/titan-lang/titan/issues",
   labels = { "compiler", "lua", "language", "titan", "webassembly", "wasm", "browser" },
   license = "MIT"
}
dependencies = {
   "lua ~> 5.5",
   "titan == 0.6.3"
}
build = {
   type = "make",
   build_target = "lua-browser",
   install_target = "browser-sdk",
   platforms = {
      windows = {
         makefile = "Makefile.win",
         variables = {
            OPENSSL_MODE = "system"
         }
      }
   },
   -- Build and install browser Lua (PREFIX/lib/browser) in the build pass
   -- and the browser runtime, tools, SQLite service, and 24-module standard
   -- library (ROCKS_TREE/lib/titan-browser/0.6) in the install pass.
   -- TITAN_BUILD_PROFILE (default production; validation when set in env)
   -- and browser toolchain variables (WASI_SDK_PATH, BINARYEN_ROOT,
   -- WASM_OPT, TITAN_NODE) are inherited from the environment.
   variables = {
      PREFIX = "$(LUA_DIR)",
      ROCKS_TREE = "$(SCRIPTS_DIR)/..",
      ROCK_LUA = "$(LUA)",
      FORK_REVISION = "bf74ad6ef643eba5b7c9724ffc5378d295a5edef"
   },
   copy_directories = {
      "LICENSES"
   }
}
