• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2015 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15rootdev_CFLAGS = [
16    "-D_BSD_SOURCE",
17    "-D_FILE_OFFSET_BITS=64",
18    "-D_LARGEFILE_SOURCE",
19    "-include sys/sysmacros.h",
20    "-Wall",
21    "-Werror",
22    "-Wno-deprecated-declarations",
23    "-Wno-sign-compare",
24]
25
26// Build the shared library.
27cc_library_shared {
28    name: "librootdev",
29    cflags: rootdev_CFLAGS,
30    srcs: ["rootdev.c"],
31    export_include_dirs: ["."],
32}
33
34// Build the command line tool.
35cc_binary {
36    name: "rootdev",
37    cflags: rootdev_CFLAGS,
38    shared_libs: ["librootdev"],
39    srcs: ["main.c"],
40}
41