Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/TARGETS → docs/BUCK
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup", "buck_sh_test")
load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary")

oncall("executorch")

python_binary(
fbcode_target(_kind = python_binary,
name = "sphinx",
main_module = "sphinx.cmd.build",
par_style = "xar",
Expand All @@ -30,12 +31,12 @@ python_binary(
],
)

buck_filegroup(
fbcode_target(_kind = buck_filegroup,
name = "source",
srcs = glob(["source/**/*"]),
)

buck_sh_test(
fbcode_target(_kind = buck_sh_test,
name = "doctest",
args = [
"-M",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
# Any targets that should be shared between fbcode and xplat must be defined in
# targets.bzl. This file can contain fbcode-only targets.

load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")

runtime.python_library(
fbcode_target(_kind = runtime.python_library,
name = "llama_transformer",
srcs = [
"llama_transformer.py",
Expand All @@ -17,7 +18,7 @@ runtime.python_library(
],
)

runtime.python_library(
fbcode_target(_kind = runtime.python_library,
name = "utils",
srcs = [
"utils.py",
Expand All @@ -30,7 +31,7 @@ runtime.python_library(
],
)

runtime.python_binary(
fbcode_target(_kind = runtime.python_binary,
name = "export",
srcs = [
"export.py",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
# Any targets that should be shared between fbcode and xplat must be defined in
# targets.bzl. This file can contain fbcode-only targets.
load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary")

python_binary(
fbcode_target(_kind = python_binary,
name = "export",
srcs = [
"export.py",
Expand Down
20 changes: 18 additions & 2 deletions examples/apple/mps/executor_runner/BUCK
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
oncall("executorch")
#
# Copyright (c) 2023 Apple Inc. All rights reserved.
# Provided subject to the LICENSE file in the top level directory.
Expand All @@ -8,6 +10,20 @@

load(":targets.bzl", "define_common_targets")

oncall("executorch")

define_common_targets()
non_fbcode_target(_kind = define_common_targets,)

# !!!! fbcode/executorch/examples/apple/mps/executor_runner/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!

#
# Copyright (c) 2023 Apple Inc. All rights reserved.
# Provided subject to the LICENSE file in the top level directory.
#

# Any targets that should be shared between fbcode and xplat must be defined in
# targets.bzl. This file can contain fbcode-only targets.

load(":targets.bzl", "define_common_targets")


fbcode_target(_kind = define_common_targets,)
13 changes: 0 additions & 13 deletions examples/apple/mps/executor_runner/TARGETS

This file was deleted.

Loading