• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/ohos.gni")
15import("//developtools/profiler/build/config.gni")
16
17ohos_shared_library("re2") {
18  sources = [
19    "re2/bitmap256.h",
20    "re2/bitstate.cc",
21    "re2/compile.cc",
22    "re2/dfa.cc",
23    "re2/filtered_re2.cc",
24    "re2/mimics_pcre.cc",
25    "re2/nfa.cc",
26    "re2/onepass.cc",
27    "re2/parse.cc",
28    "re2/perl_groups.cc",
29    "re2/pod_array.h",
30    "re2/prefilter.cc",
31    "re2/prefilter.h",
32    "re2/prefilter_tree.cc",
33    "re2/prefilter_tree.h",
34    "re2/prog.cc",
35    "re2/prog.h",
36    "re2/re2.cc",
37    "re2/regexp.cc",
38    "re2/regexp.h",
39    "re2/set.cc",
40    "re2/simplify.cc",
41    "re2/sparse_array.h",
42    "re2/sparse_set.h",
43    "re2/stringpiece.cc",
44    "re2/tostring.cc",
45    "re2/unicode_casefold.cc",
46    "re2/unicode_casefold.h",
47    "re2/unicode_groups.cc",
48    "re2/unicode_groups.h",
49    "re2/walker-inl.h",
50    "util/logging.h",
51    "util/mix.h",
52    "util/mutex.h",
53    "util/rune.cc",
54    "util/strutil.cc",
55    "util/strutil.h",
56    "util/utf.h",
57    "util/util.h",
58  ]
59  include_dirs = [ "." ]
60
61  # cflags = [ "-lpthread" ]
62  # ldflags = [ "-pthread" ]
63  # visibility = ["*"]
64  install_enable = true
65  subsystem_name = "${OHOS_PROFILER_SUBSYS_NAME}"
66  part_name = "${OHOS_PROFILER_PART_NAME}"
67}
68