2019-04-18 19:51:19 +02:00
|
|
|
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
2017-04-05 01:09:31 +02:00
|
|
|
from __future__ import absolute_import
|
|
|
|
from __future__ import division
|
|
|
|
from __future__ import print_function
|
|
|
|
from __future__ import unicode_literals
|
2019-11-06 05:19:17 +01:00
|
|
|
|
2020-05-20 20:35:28 +02:00
|
|
|
rocksdb_target_header_template = \
|
2021-01-28 01:19:43 +01:00
|
|
|
"""# This file \100generated by:
|
|
|
|
#$ python3 buckifier/buckify_rocksdb.py{extra_argv}
|
2019-11-06 05:19:17 +01:00
|
|
|
# --> DO NOT EDIT MANUALLY <--
|
|
|
|
# This file is a Facebook-specific integration for buck builds, so can
|
|
|
|
# only be validated by Facebook employees.
|
|
|
|
#
|
2022-02-03 05:38:41 +01:00
|
|
|
# @noautodeps @nocodemods
|
2022-02-18 19:59:57 +01:00
|
|
|
load("//rocks/buckifier:defs.bzl", "cpp_library_wrapper","rocks_cpp_library_wrapper","cpp_binary_wrapper","cpp_unittest_wrapper","fancy_bench_wrapper","add_c_test_wrapper")
|
2022-02-03 05:38:41 +01:00
|
|
|
|
2017-04-05 01:09:31 +02:00
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
library_template = """
|
2022-02-18 19:59:57 +01:00
|
|
|
cpp_library_wrapper(name="{name}", srcs=[{srcs}], deps=[{deps}], headers={headers}, link_whole={link_whole}, extra_test_libs={extra_test_libs})
|
2017-04-05 01:09:31 +02:00
|
|
|
"""
|
|
|
|
|
2020-05-17 06:46:21 +02:00
|
|
|
rocksdb_library_template = """
|
2022-02-18 19:59:57 +01:00
|
|
|
rocks_cpp_library_wrapper(name="{name}", srcs=[{srcs}], headers={headers})
|
|
|
|
|
2020-05-17 06:46:21 +02:00
|
|
|
"""
|
|
|
|
|
2022-02-18 19:59:57 +01:00
|
|
|
|
|
|
|
|
2017-04-05 01:09:31 +02:00
|
|
|
binary_template = """
|
2022-02-18 19:59:57 +01:00
|
|
|
cpp_binary_wrapper(name="{name}", srcs=[{srcs}], deps=[{deps}], extra_preprocessor_flags=[{extra_preprocessor_flags}], extra_bench_libs={extra_bench_libs})
|
2017-04-05 01:09:31 +02:00
|
|
|
"""
|
|
|
|
|
2022-02-18 19:59:57 +01:00
|
|
|
unittests_template = """
|
|
|
|
cpp_unittest_wrapper(name="{test_name}",
|
|
|
|
srcs=["{test_cc}"],
|
|
|
|
deps={deps},
|
|
|
|
extra_compiler_flags={extra_compiler_flags})
|
|
|
|
|
2017-11-15 23:13:39 +01:00
|
|
|
"""
|
|
|
|
|
2022-02-18 19:59:57 +01:00
|
|
|
fancy_bench_template = """
|
2022-03-02 00:09:45 +01:00
|
|
|
fancy_bench_wrapper(suite_name="{name}", binary_to_bench_to_metric_list_map={bench_config}, slow={slow}, expected_runtime={expected_runtime}, sl_iterations={sl_iterations}, regression_threshold={regression_threshold})
|
2017-04-05 01:09:31 +02:00
|
|
|
|
|
|
|
"""
|