Skip to content

Commit

Permalink
[WIP] renode-resources
Browse files Browse the repository at this point in the history
Internal-tag: [#49833]
Signed-off-by: Pawel Czarnecki <pczarnecki@antmicro.com>
  • Loading branch information
lpawelcz committed Oct 25, 2023
1 parent ee5c990 commit 1f1f7f5
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 93 deletions.
3 changes: 3 additions & 0 deletions dependency_support/initialize_external.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ load("@python311//:defs.bzl", python_interpreter_target = "interpreter")
load("//dependency_support/nuget_packages:nuget.bzl", load_nuget_packages="nuget_packages")
load("@rules_dotnet//dotnet:rules_dotnet_nuget_packages.bzl", "rules_dotnet_nuget_packages")
load("@rules_dotnet//dotnet:rules_dotnet_dev_nuget_packages.bzl", "rules_dotnet_dev_nuget_packages")
load("//dependency_support/renode-resources:resources.bzl", "renode_resources")

def initialize_external_repositories():
pip_parse(
Expand All @@ -15,3 +16,5 @@ def initialize_external_repositories():
rules_dotnet_dev_nuget_packages()

load_nuget_packages()

renode_resources()
3 changes: 3 additions & 0 deletions dependency_support/load_external.bzl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
load("//dependency_support/renode-resources:resources.bzl", "renode_resources")

def load_external_repositories():
http_archive(
Expand All @@ -20,3 +21,5 @@ def load_external_repositories():
sha256 = "db432c3efa414a365dc55cdbffb29ed827914d7ef2d7a605cad981a2b349042d",
urls = ["https://dl.antmicro.com/projects/renode/nxp_k64f--zephyr_basic_uart.elf-s_618844-2d588c6899efaae76a7a27136fd8cff667bbcb6f"],
)

renode_resources()
93 changes: 93 additions & 0 deletions dependency_support/renode-resources/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
load("@rules_dotnet//dotnet:defs.bzl", "import_dll")

package(default_visibility = ["//visibility:public"])

import_dll(
name = "lucene",
dll = "libraries/Lucene.Net.dll",
)

import_dll(
name = "IronPython",
dll = "libraries/IronPython.dll",
)

import_dll(
name = "IronPythonStdLib",
dll = "libraries/IronPython.StdLib.dll",
)

import_dll(
name = "IronPythonModules",
dll = "libraries/IronPython.Modules.dll",
)

import_dll(
name = "MicrosoftScripting",
dll = "libraries/Microsoft.Scripting.dll",
)

import_dll(
name = "LZ4",
dll = "libraries/LZ4.dll",
)

import_dll(
name = "MonoCecil",
dll = "libraries/Mono.Cecil.dll",
)

import_dll(
name = "MonoLinqExpressions",
dll = "libraries/Mono.Linq.Expressions.dll",
)

import_dll(
name = "MonoTextTemplating",
dll = "libraries/Mono.TextTemplating.dll",
)

import_dll(
name = "Dynamitey",
dll = "libraries/Dynamitey.dll",
)

import_dll(
name = "Nini",
dll = "libraries/Nini.dll",
)

import_dll(
name = "BitMiracleLibJpegNet",
dll = "libraries/BitMiracle.LibJpeg.NET.dll",
)

import_dll(
name = "Sprache",
dll = "libraries/Sprache.dll",
)

import_dll(
name = "CookComputingXmlRpcV2",
dll = "libraries/CookComputing.XmlRpcV2.dll",
)

import_dll(
name = "FlatBuffers",
dll = "libraries/FlatBuffers.dll",
)

import_dll(
name = "protobuf-net",
dll = "libraries/protobuf-net.dll",
)

import_dll(
name = "MicrosoftDynamic",
dll = "libraries/Microsoft.Dynamic.dll",
)

filegroup(
name = "robot-style",
srcs = ["styles/robot.css"],
)
15 changes: 15 additions & 0 deletions dependency_support/renode-resources/resources.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")

def renode_resources():
git_hash = "fc84585d8337891ef03eae703f855335faa0996e"
archive_sha256 = "fdd4e439878728ce819e8125095515910f9e9c8531050f5646c5b1520ef4ab69"

maybe(
http_archive,
name = "renode-resources",
url = "https://github.com/renode/renode-resources/archive/%s.zip" % git_hash,
sha256 = archive_sha256,
strip_prefix = "renode-resources-%s" % git_hash,
build_file = "//dependency_support/renode-resources:BUILD",
)
93 changes: 0 additions & 93 deletions toolchain_renode/renode-resources.BUILD

This file was deleted.

0 comments on commit 1f1f7f5

Please sign in to comment.