Skip to content

Commit

Permalink
See issue #76: Scaffolding out file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
sureshjoshi committed Jul 21, 2022
1 parent 8f09b22 commit 06399da
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pants-plugins/experimental/cc/goals/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
# Licensed under the Apache License, Version 2.0 (see LICENSE).

python_sources()

python_tests(
name="tests",
)
8 changes: 8 additions & 0 deletions pants-plugins/experimental/cc/goals/check.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from __future__ import annotations

from typing import Iterable
from pants.engine.rules import collect_rules, Rule, UnionRule


def rules() -> Iterable[Rule | UnionRule]:
return collect_rules()
21 changes: 21 additions & 0 deletions pants-plugins/experimental/cc/register.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from __future__ import annotations

from typing import Iterable

from experimental.cc.goals import check
from experimental.cc.subsystems import toolchain
from experimental.cc.util_rules import compile
from pants.engine.rules import Rule
from pants.engine.unions import UnionRule


def rules() -> Iterable[Rule | UnionRule]:
return (
*check.rules(),
*compile.rules(),
*toolchain.rules(),
)

4 changes: 4 additions & 0 deletions pants-plugins/experimental/cc/subsystems/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

python_sources()
8 changes: 8 additions & 0 deletions pants-plugins/experimental/cc/subsystems/toolchain.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from __future__ import annotations

from typing import Iterable
from pants.engine.rules import collect_rules, Rule, UnionRule


def rules() -> Iterable[Rule | UnionRule]:
return collect_rules()
4 changes: 4 additions & 0 deletions pants-plugins/experimental/cc/util_rules/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

python_sources()
8 changes: 8 additions & 0 deletions pants-plugins/experimental/cc/util_rules/compile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from __future__ import annotations

from typing import Iterable
from pants.engine.rules import collect_rules, Rule, UnionRule


def rules() -> Iterable[Rule | UnionRule]:
return collect_rules()

0 comments on commit 06399da

Please sign in to comment.