diff --git a/renode_sources/BUILD b/renode_sources/BUILD index 60f8b18..6e79979 100644 --- a/renode_sources/BUILD +++ b/renode_sources/BUILD @@ -2934,12 +2934,35 @@ filegroup( ] ) -#filegroup( -# name = "", -# srcs = [ -# ] -#) -# +filegroup( + name = "termsharp", + srcs = [ + "lib/termsharp/LayoutParameters.cs", + "lib/termsharp/ILayoutParameters.cs", + "lib/termsharp/Terminal.cs", + "lib/termsharp/SelectionMode.cs", + "lib/termsharp/SelectionDirection.cs", + "lib/termsharp/Cursor.cs", + "lib/termsharp/Rows/MonospaceTextRow.cs", + "lib/termsharp/Vt100/IDecoderLogger.cs", + "lib/termsharp/Vt100/ConsoleDecoderLogger.cs", + "lib/termsharp/Vt100/Decoder.cs", + "lib/termsharp/Vt100/Encoder.cs", + "lib/termsharp/Vt100/DecoderCommands.cs", + "lib/termsharp/Vt100/ControlByte.cs", + "lib/termsharp/Vt100/Vt100ITermFileEscapeCodeHandler.cs", + "lib/termsharp/Misc/SimpleCache.cs", + "lib/termsharp/Misc/Utilities.cs", + "lib/termsharp/Rows/IRow.cs", + "lib/termsharp/Misc/IntegerPosition.cs", + "lib/termsharp/Misc/ClipboardData.cs", + "lib/termsharp/Vt100/ByteUtf8Decoder.cs", + "lib/termsharp/Misc/IGenerationAware.cs", + "lib/termsharp/Rows/ImageRow.cs", + "lib/termsharp/Rows/RowUtils.cs", + ] +) + #filegroup( # name = "", # srcs = [ diff --git a/toolchain_renode/termsharp/BUILD b/toolchain_renode/termsharp/BUILD new file mode 100644 index 0000000..8bc6eab --- /dev/null +++ b/toolchain_renode/termsharp/BUILD @@ -0,0 +1,21 @@ +load( + "@rules_dotnet//dotnet:defs.bzl", + "csharp_library", +) + +package(default_visibility = ["//visibility:public"]) + +csharp_library( + name = "TermSharp", + srcs = ["@renode_sources//:termsharp"], + internals_visible_to = ["lib_termsharp"], + target_frameworks = ["net6.0"], + targeting_packs = [ + "@rules_dotnet_nuget_packages//microsoft.netcore.app.ref", + ], + deps = [ + "//toolchain_renode/Xwt:Xwt", + ], + defines = ["NET"], +) + diff --git a/toolchain_renode/termsharp/BUILD.bazel b/toolchain_renode/termsharp/BUILD.bazel deleted file mode 100644 index e69de29..0000000 diff --git a/toolchain_renode/termsharp/defs.bzl b/toolchain_renode/termsharp/defs.bzl deleted file mode 100644 index 223deef..0000000 --- a/toolchain_renode/termsharp/defs.bzl +++ /dev/null @@ -1,9 +0,0 @@ -load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") - -def install_termsharp(): - git_repository( - name = "termsharp", - commit = "65e67ba8de742670fd57aca62f11037d93628404", - remote = "https://github.com/antmicro/termsharp", - build_file = "//toolchain_renode/termsharp:termsharp.BUILD", - ) diff --git a/toolchain_renode/termsharp/termsharp.BUILD b/toolchain_renode/termsharp/termsharp.BUILD deleted file mode 100644 index c8dc378..0000000 --- a/toolchain_renode/termsharp/termsharp.BUILD +++ /dev/null @@ -1,45 +0,0 @@ -load( - "@rules_dotnet//dotnet:defs.bzl", - "csharp_library", -) - -package(default_visibility = ["//visibility:public"]) - -csharp_library( - name = "TermSharp", - srcs = [ - "LayoutParameters.cs", - "ILayoutParameters.cs", - "Terminal.cs", - "SelectionMode.cs", - "SelectionDirection.cs", - "Cursor.cs", - "Rows/MonospaceTextRow.cs", - "Vt100/IDecoderLogger.cs", - "Vt100/ConsoleDecoderLogger.cs", - "Vt100/Decoder.cs", - "Vt100/Encoder.cs", - "Vt100/DecoderCommands.cs", - "Vt100/ControlByte.cs", - "Vt100/Vt100ITermFileEscapeCodeHandler.cs", - "Misc/SimpleCache.cs", - "Misc/Utilities.cs", - "Rows/IRow.cs", - "Misc/IntegerPosition.cs", - "Misc/ClipboardData.cs", - "Vt100/ByteUtf8Decoder.cs", - "Misc/IGenerationAware.cs", - "Rows/ImageRow.cs", - "Rows/RowUtils.cs", - ], - internals_visible_to = ["lib_termsharp"], - target_frameworks = ["net6.0"], - targeting_packs = [ - "@rules_dotnet_nuget_packages//microsoft.netcore.app.ref", - ], - deps = [ - "@Xwt//:Xwt", - ], - defines = ["NET"], -) -