mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 19:55:41 +00:00
Prepare Bazel build files for native load cleanup (#7062)
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
|
||||
|
||||
#pkg_tar(
|
||||
# name = "eagle_servers",
|
||||
# strip_prefix = "/src/main/scala/net/eagle0",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
# Abstract base class for score calculators
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_binary(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
load("//tools/rules_unity3d:unity3d.bzl", "unity3d_binary")
|
||||
|
||||
#unity3d_binary(
|
||||
# name = "windows",
|
||||
# build_command = "buildWindows64Player",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
load("@flatbuffers//:build_defs.bzl", "DEFAULT_FLATC_ARGS", "flatbuffer_cc_library")
|
||||
load("@flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
flatbuffer_cc_library(
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
load("@rules_java//java:defs.bzl", "java_binary")
|
||||
|
||||
java_binary(
|
||||
name = "name_generation_lambda",
|
||||
srcs = ["NameGenerationHandler.java"],
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
load("@build_bazel_rules_apple//apple:macos.bzl", "macos_bundle")
|
||||
load("@rules_cc//cc:defs.bzl", "objc_library")
|
||||
|
||||
# Native Sparkle plugin for Unity
|
||||
# This plugin initializes Sparkle auto-updater at runtime
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
|
||||
filegroup(
|
||||
name = "settings",
|
||||
srcs = ["settings.tsv"],
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
load("@flatbuffers//:build_defs.bzl", "DEFAULT_FLATC_ARGS", "flatbuffer_cc_library")
|
||||
load("@flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
load("//tools:copts.bzl", "COPTS")
|
||||
|
||||
filegroup(
|
||||
|
||||
@@ -2,13 +2,15 @@ load("@bazel_skylib//lib:paths.bzl", "paths")
|
||||
|
||||
def _convert_maps_impl(ctx):
|
||||
all_input_files = [
|
||||
f for t in ctx.attr.targeted_filegroups for f in t.files.to_list()
|
||||
f
|
||||
for t in ctx.attr.targeted_filegroups
|
||||
for f in t.files.to_list()
|
||||
]
|
||||
|
||||
all_outputs = []
|
||||
for f in all_input_files:
|
||||
out = ctx.actions.declare_file(paths.replace_extension(f.basename, ctx.attr.to_extension))
|
||||
all_outputs += [out]
|
||||
all_outputs.append(out)
|
||||
ctx.actions.run(
|
||||
mnemonic = "BuildMaps",
|
||||
outputs = [out],
|
||||
@@ -23,11 +25,11 @@ def _convert_maps_impl(ctx):
|
||||
|
||||
return [
|
||||
DefaultInfo(
|
||||
files=depset(all_outputs),
|
||||
runfiles=ctx.runfiles(files=all_outputs))
|
||||
files = depset(all_outputs),
|
||||
runfiles = ctx.runfiles(files = all_outputs),
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
convert_maps = rule(
|
||||
implementation = _convert_maps_impl,
|
||||
attrs = {
|
||||
@@ -37,6 +39,6 @@ convert_maps = rule(
|
||||
default = Label("//src/main/go/net/eagle0/build/hex_map_json_converter"),
|
||||
executable = True,
|
||||
cfg = "exec",
|
||||
)
|
||||
),
|
||||
},
|
||||
)
|
||||
)
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
load("@bazel_skylib//lib:paths.bzl", "paths")
|
||||
|
||||
def _generate_map_info_impl(ctx):
|
||||
all_outputs = []
|
||||
out = ctx.actions.declare_file("map_info.json")
|
||||
all_outputs += [out]
|
||||
all_outputs.append(out)
|
||||
ctx.actions.run(
|
||||
mnemonic = "GenerateMapInfo",
|
||||
outputs = [out],
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "name_generator",
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "action_result_component_trait",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "changed_province",
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "concrete",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "action_result_concrete",
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "chronicle_event",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "eagle_map_info_converter",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "date",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "diplomacy_offer",
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "chronicle_event",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "province",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "army",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "concrete",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "date",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "diplomacy_offer",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "status",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "concrete",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_binary", "scala_library")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library")
|
||||
|
||||
scala_library(
|
||||
name = "eagle_appears_action",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
load("@flatbuffers//:build_defs.bzl", "DEFAULT_FLATC_ARGS", "flatbuffer_cc_library")
|
||||
load("@flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
|
||||
flatbuffer_cc_library(
|
||||
name = "test_fbs",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
# Mock game implementation for testing abstract MCTS
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
load("//tools:copts.bzl", "COPTS", "TEST_COPTS")
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
name = "map_info_calculator_test",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
|
||||
load("//tools:copts.bzl", "COPTS", "TEST_COPTS")
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
load("//tools:copts.bzl", "COPTS", "TEST_COPTS")
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
name = "game_state_guesser_test",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//tools:copts.bzl", "TEST_COPTS")
|
||||
|
||||
cc_test(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library", "scala_test")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_test")
|
||||
|
||||
scala_test(
|
||||
name = "open_ai_duration_parser_test",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library", "scala_test")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_test")
|
||||
|
||||
scala_test(
|
||||
name = "string_construction_parser_test",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library", "scala_test")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_test")
|
||||
|
||||
scala_test(
|
||||
name = "sse_event_reader_test",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library", "scala_test")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_test")
|
||||
|
||||
scala_test(
|
||||
name = "available_apprehend_outlaw_command_factory_test",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library", "scala_test")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_test")
|
||||
|
||||
scala_test(
|
||||
name = "apprehend_outlaw_command_test",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library", "scala_test")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_test")
|
||||
|
||||
scala_test(
|
||||
name = "captured_hero_message_prompt_generator_test",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library", "scala_test")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_test")
|
||||
|
||||
scala_test(
|
||||
name = "alliance_offer_command_selector_test",
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library", "scala_test")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_test")
|
||||
|
||||
scala_test(
|
||||
name = "alliance_quest_command_chooser_test",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library", "scala_test")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_test")
|
||||
|
||||
scala_test(
|
||||
name = "faction_utils_test",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library", "scala_test")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_test")
|
||||
|
||||
scala_test(
|
||||
name = "hero_name_fetcher_test",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
load("@rules_scala//scala:scala.bzl", "scala_library", "scala_test")
|
||||
load("@rules_scala//scala:scala.bzl", "scala_test")
|
||||
|
||||
scala_test(
|
||||
name = "quest_fulfillment_utils_test",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
load("@rules_java//java:defs.bzl", "java_binary")
|
||||
load("@rules_scala//scala:providers.bzl", "declare_deps_provider")
|
||||
load("@rules_scala//scala:scala_toolchain.bzl", "scala_toolchain")
|
||||
load("@rules_scala//scala_proto:scala_proto_toolchain.bzl", "scalapb_toolchain")
|
||||
|
||||
@@ -2,31 +2,30 @@ def _unity3d_binary_impl(ctx):
|
||||
out_file = ctx.actions.declare_file(ctx.label.name)
|
||||
src_file = ctx.attr.src.files.to_list()[0]
|
||||
print("src_file.path is %s" % src_file, ctx.label)
|
||||
# ctx.actions.write(output=out_file, content="Hello")
|
||||
# ctx.actions.write(output=out_file, content="Hello")
|
||||
#command = "xvfb-run --auto-servernum --server-args='-screen 0 640x480x24'
|
||||
# command = "LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 HOME=`pwd` u3d run -- -batchmode -nographics -quit -logFile `pwd`/editor.log -projectPath '{}' -buildWindows>
|
||||
# command = "LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 HOME=`pwd` u3d run -- -batchmode -nographics -quit -logFile `pwd`/editor.log -projectPath '{}' -buildWindows>
|
||||
|
||||
# print("command is %s " % command, ctx.label)
|
||||
# print("command is %s " % command, ctx.label)
|
||||
ctx.actions.run_shell(
|
||||
inputs = [src_file],
|
||||
outputs = [out_file],
|
||||
progress_message = "Generating unity3d binary {}".format(out_file.path),
|
||||
env = {
|
||||
"LANG": "en_US.UTF-8",
|
||||
"LC_ALL": "en_US.UTF-8",
|
||||
"HOME": "",
|
||||
"LANG": "en_US.UTF-8",
|
||||
"LC_ALL": "en_US.UTF-8",
|
||||
"HOME": "",
|
||||
},
|
||||
arguments = [src_file.path, out_file.path],
|
||||
command = "xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' u3d run -- -batchmode -nographics -quit -logFile `pwd`/editor.log -projectPath \"$1\" -buildWindows64Player \"$2\""
|
||||
command = "xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' u3d run -- -batchmode -nographics -quit -logFile `pwd`/editor.log -projectPath \"$1\" -buildWindows64Player \"$2\"",
|
||||
)
|
||||
return [DefaultInfo(files = depset([out_file]))]
|
||||
|
||||
unity3d_binary = rule(
|
||||
implementation = _unity3d_binary_impl,
|
||||
attrs = {
|
||||
"build_command": attr.string(mandatory=True),
|
||||
"src": attr.label(mandatory=True, allow_single_file=True),
|
||||
"build_command": attr.string(mandatory = True),
|
||||
"src": attr.label(mandatory = True, allow_single_file = True),
|
||||
"deps": attr.label_list(),
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user