• 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")
15config("libext2-headers") {
16  include_dirs = [ "//third_party/e2fsprogs/lib" ]
17  defines = [ "secure_getenv=getenv" ]
18}
19
20ohos_static_library("libext2_ss") {
21  sources = [
22    "data.c",
23    "error.c",
24    "execute_cmd.c",
25    "get_readline.c",
26    "help.c",
27    "invocation.c",
28    "list_rqs.c",
29    "listen.c",
30    "pager.c",
31    "parse.c",
32    "prompt.c",
33    "request_tbl.c",
34    "requests.c",
35    "ss_err.c",
36    "std_rqs.c",
37  ]
38
39  include_dirs = [ "." ]
40  configs = [ ":libext2-headers" ]
41
42  deps = [ "//third_party/e2fsprogs/lib/et:libext2_com_err" ]
43}
44