From 9c06ee500fd18c8876d67e8a7188ab25b2cf77b9 Mon Sep 17 00:00:00 2001 From: Larry Liu <8188269+larryliu0820@users.noreply.github.com> Date: Wed, 12 Jul 2023 00:59:49 -0700 Subject: [PATCH] [build] Add BUCK.oss --- .buckconfig | 26 +++++++++++++++++++ .gitmodules | 3 +++ prelude | 1 + profiler/BUCK.oss | 3 +++ runtime/platform/BUCK.oss | 0 shim/BUCK | 0 .../executorch/build/runtime_wrapper.bzl | 0 shim/xplat/executorch/build/selects.bzl | 0 shim/xplat/executorch/build/type_defs.bzl | 0 9 files changed, 33 insertions(+) create mode 100644 .buckconfig create mode 100644 .gitmodules create mode 160000 prelude create mode 100644 profiler/BUCK.oss create mode 100644 runtime/platform/BUCK.oss create mode 100644 shim/BUCK create mode 100644 shim/xplat/executorch/build/runtime_wrapper.bzl create mode 100644 shim/xplat/executorch/build/selects.bzl create mode 100644 shim/xplat/executorch/build/type_defs.bzl diff --git a/.buckconfig b/.buckconfig new file mode 100644 index 00000000000..c6169e406f0 --- /dev/null +++ b/.buckconfig @@ -0,0 +1,26 @@ +[et] + is_oss=1 + +[buildfile] + name = BUCK.oss + includes = //tools/build_defs/select.bzl + +[repositories] + bazel_skylib = third_party/bazel-skylib/ + ovr_config = . + +[download] + in_build = true + +[cxx] + cxxflags = -std=c++17 + ldflags = -Wl,--no-undefined + should_remap_host_platform = true + cpp = /usr/bin/clang + cc = /usr/bin/clang + cxx = /usr/bin/clang++ + cxxpp = /usr/bin/clang++ + ld = /usr/bin/clang++ + +[project] + default_flavors_mode=all \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000000..faecebbf32d --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "prelude"] + path = prelude + url = https://github.com/facebook/buck2-prelude.git diff --git a/prelude b/prelude new file mode 160000 index 00000000000..bd7481e2b98 --- /dev/null +++ b/prelude @@ -0,0 +1 @@ +Subproject commit bd7481e2b9883d10200e8fb5caeaad4e2271e423 diff --git a/profiler/BUCK.oss b/profiler/BUCK.oss new file mode 100644 index 00000000000..bbce14b9d92 --- /dev/null +++ b/profiler/BUCK.oss @@ -0,0 +1,3 @@ +load(":targets.bzl", "define_common_targets") + +define_common_targets() \ No newline at end of file diff --git a/runtime/platform/BUCK.oss b/runtime/platform/BUCK.oss new file mode 100644 index 00000000000..e69de29bb2d diff --git a/shim/BUCK b/shim/BUCK new file mode 100644 index 00000000000..e69de29bb2d diff --git a/shim/xplat/executorch/build/runtime_wrapper.bzl b/shim/xplat/executorch/build/runtime_wrapper.bzl new file mode 100644 index 00000000000..e69de29bb2d diff --git a/shim/xplat/executorch/build/selects.bzl b/shim/xplat/executorch/build/selects.bzl new file mode 100644 index 00000000000..e69de29bb2d diff --git a/shim/xplat/executorch/build/type_defs.bzl b/shim/xplat/executorch/build/type_defs.bzl new file mode 100644 index 00000000000..e69de29bb2d