Skip to content

Commit 4273512

Browse files
authored
Merge pull request #10670 from antmicro/mockturtle-sources
third-party: Import mockturtle sources
2 parents 4836617 + edc49fe commit 4273512

70 files changed

Lines changed: 39354 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

third-party/mockturtle/BUILD

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# SPDX-License-Identifier: BSD-3-Clause
2+
# Copyright (c) 2026-2026, The OpenROAD Authors
3+
4+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
5+
load("@rules_cc//cc:cc_test.bzl", "cc_test")
6+
7+
cc_library(
8+
name = "mockturtle",
9+
hdrs = glob(["include/mockturtle/**/*.hpp"]) + glob([
10+
"lib/kitty/**/*.hpp",
11+
]) + glob([
12+
"lib/lorina/**/*.hpp",
13+
]) + glob([
14+
"lib/lorina/**/*.inc",
15+
]),
16+
includes = [
17+
"include/",
18+
"lib/kitty/",
19+
"lib/lorina/",
20+
],
21+
visibility = ["//visibility:public"],
22+
deps = [
23+
"@abseil-cpp//absl/base:core_headers",
24+
"@abseil-cpp//absl/container:flat_hash_map",
25+
"@abseil-cpp//absl/random:random",
26+
"@spdlog",
27+
],
28+
)
29+
30+
cc_test(
31+
name = "mockturtle_emap_test",
32+
srcs = ["test/algorithms/emap.cpp"],
33+
visibility = ["//visibility:public"],
34+
deps = [
35+
":mockturtle",
36+
"@googletest//:gtest",
37+
"@googletest//:gtest_main",
38+
],
39+
)

third-party/mockturtle/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018-2019
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)