Mercurial
comparison third_party/luajit/BUILD @ 178:94705b5986b3
[ThirdParty] Added WRK and luajit for load testing.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Thu, 22 Jan 2026 20:10:30 -0800 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 177:24fe8ff94056 | 178:94705b5986b3 |
|---|---|
| 1 load("@rules_foreign_cc//foreign_cc:defs.bzl", "make") | |
| 2 | |
| 3 package(default_visibility = ["//visibility:public"]) | |
| 4 | |
| 5 filegroup( | |
| 6 name = "srcs", | |
| 7 srcs = glob(["**"]), | |
| 8 ) | |
| 9 | |
| 10 make( | |
| 11 name = "luajit_build", | |
| 12 args = ["-j4"], | |
| 13 build_data = [":srcs"], | |
| 14 env = { | |
| 15 "BUILDMODE": "static", | |
| 16 }, | |
| 17 lib_source = ":srcs", | |
| 18 out_binaries = ["luajit"], | |
| 19 out_data_dirs = ["share"], | |
| 20 out_include_dir = "include/luajit-2.1", | |
| 21 out_static_libs = ["libluajit-5.1.a"], | |
| 22 postfix_script = "cd $$INSTALLDIR$$/bin && find . -name 'luajit-*' -type f -exec cp {} luajit \\;", | |
| 23 targets = [ | |
| 24 "", | |
| 25 "install PREFIX=$$INSTALLDIR$$", | |
| 26 ], | |
| 27 ) | |
| 28 | |
| 29 # Alias for the library | |
| 30 alias( | |
| 31 name = "luajit", | |
| 32 actual = ":luajit_build", | |
| 33 ) | |
| 34 | |
| 35 # Expose just the binary for use as a tool | |
| 36 filegroup( | |
| 37 name = "luajit_bin", | |
| 38 srcs = [":luajit_build"], | |
| 39 output_group = "luajit", | |
| 40 ) |