From 834feaff05a4bf7ae49c736305d5eb180aed4011 Mon Sep 17 00:00:00 2001 From: Peter Dillinger Date: Tue, 5 Nov 2019 20:19:17 -0800 Subject: [PATCH] Add clarifying/instructive header to TARGETS and defs.bzl Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/6008 Differential Revision: D18343273 Pulled By: pdillinger fbshipit-source-id: f7d1c78d711bbfb0deea9ec88212c19ab2ec91b8 --- TARGETS | 5 +++++ buckifier/targets_cfg.py | 8 +++++++- defs.bzl | 3 +++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/TARGETS b/TARGETS index 267b3cea8a..ab1f24cd76 100644 --- a/TARGETS +++ b/TARGETS @@ -1,3 +1,8 @@ +# This file @generated by `python buckifier/buckify_rocksdb.py` +# --> DO NOT EDIT MANUALLY <-- +# This file is a Facebook-specific integration for buck builds, so can +# only be validated by Facebook employees. +# load("@fbcode_macros//build_defs:auto_headers.bzl", "AutoHeaders") load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") load(":defs.bzl", "test_binary") diff --git a/buckifier/targets_cfg.py b/buckifier/targets_cfg.py index 19ea777270..0ecd6fdda7 100644 --- a/buckifier/targets_cfg.py +++ b/buckifier/targets_cfg.py @@ -3,7 +3,13 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals -rocksdb_target_header = """load("@fbcode_macros//build_defs:auto_headers.bzl", "AutoHeaders") + +rocksdb_target_header = """# This file \100generated by `python buckifier/buckify_rocksdb.py` +# --> DO NOT EDIT MANUALLY <-- +# This file is a Facebook-specific integration for buck builds, so can +# only be validated by Facebook employees. +# +load("@fbcode_macros//build_defs:auto_headers.bzl", "AutoHeaders") load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") load(":defs.bzl", "test_binary") diff --git a/defs.bzl b/defs.bzl index d5b7b6af71..83e9a579f9 100644 --- a/defs.bzl +++ b/defs.bzl @@ -1,4 +1,7 @@ # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. +# +# defs.bzl - Definitions for Facebook-specific buck build integration +# in TARGETS load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") load("@fbcode_macros//build_defs:custom_unittest.bzl", "custom_unittest")