aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/google/benchmark/ya.make
blob: 28b94b35764379f7589fe597035f9cfa805278a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Generated by devtools/yamaker from nixpkgs 22.11.

LIBRARY()

LICENSE(Apache-2.0)

LICENSE_TEXTS(.yandex_meta/licenses.list.txt)

VERSION(1.8.3)

ORIGINAL_SOURCE(https://github.com/google/benchmark/archive/v1.8.3.tar.gz)

ADDINCL(
    GLOBAL contrib/restricted/google/benchmark/include
    contrib/restricted/google/benchmark/src
)

NO_COMPILER_WARNINGS()

NO_UTIL()

CFLAGS(
    GLOBAL -DBENCHMARK_STATIC_DEFINE
    -DHAVE_POSIX_REGEX
    -DHAVE_PTHREAD_AFFINITY
    -DHAVE_STD_REGEX
    -DHAVE_STEADY_CLOCK
)

IF (OS_LINUX)
    CFLAGS(
        -DBENCHMARK_HAS_PTHREAD_AFFINITY
    )
ENDIF()

SRCS(
    src/benchmark.cc
    src/benchmark_api_internal.cc
    src/benchmark_name.cc
    src/benchmark_register.cc
    src/benchmark_runner.cc
    src/check.cc
    src/colorprint.cc
    src/commandlineflags.cc
    src/complexity.cc
    src/console_reporter.cc
    src/counter.cc
    src/csv_reporter.cc
    src/json_reporter.cc
    src/perf_counters.cc
    src/reporter.cc
    src/statistics.cc
    src/string_util.cc
    src/sysinfo.cc
    src/timers.cc
)

END()

RECURSE(
    test
)