]>
Commit | Line | Data |
---|---|---|
f67539c2 | 1 | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. |
1e59de90 | 2 | from __future__ import absolute_import, division, print_function, unicode_literals |
f67539c2 | 3 | |
1e59de90 TL |
4 | rocksdb_target_header_template = """# This file \100generated by: |
5 | #$ python3 buckifier/buckify_rocksdb.py{extra_argv} | |
f67539c2 TL |
6 | # --> DO NOT EDIT MANUALLY <-- |
7 | # This file is a Facebook-specific integration for buck builds, so can | |
8 | # only be validated by Facebook employees. | |
9 | # | |
1e59de90 TL |
10 | # @noautodeps @nocodemods |
11 | 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") | |
11fdf7f2 | 12 | |
7c673cae FG |
13 | """ |
14 | ||
15 | ||
16 | library_template = """ | |
1e59de90 | 17 | cpp_library_wrapper(name="{name}", srcs=[{srcs}], deps=[{deps}], headers={headers}, link_whole={link_whole}, extra_test_libs={extra_test_libs}) |
20effc67 TL |
18 | """ |
19 | ||
20 | rocksdb_library_template = """ | |
1e59de90 TL |
21 | rocks_cpp_library_wrapper(name="{name}", srcs=[{srcs}], headers={headers}) |
22 | ||
7c673cae FG |
23 | """ |
24 | ||
1e59de90 | 25 | |
7c673cae | 26 | binary_template = """ |
1e59de90 | 27 | cpp_binary_wrapper(name="{name}", srcs=[{srcs}], deps=[{deps}], extra_preprocessor_flags=[{extra_preprocessor_flags}], extra_bench_libs={extra_bench_libs}) |
7c673cae FG |
28 | """ |
29 | ||
1e59de90 TL |
30 | unittests_template = """ |
31 | cpp_unittest_wrapper(name="{test_name}", | |
32 | srcs=["{test_cc}"], | |
33 | deps={deps}, | |
34 | extra_compiler_flags={extra_compiler_flags}) | |
35 | ||
11fdf7f2 TL |
36 | """ |
37 | ||
1e59de90 TL |
38 | fancy_bench_template = """ |
39 | 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}) | |
7c673cae | 40 | |
7c673cae | 41 | """ |