aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-10-09 19:46:27 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-10-09 19:46:27 +0000
commita9bf1f0446b20683183e0070441f8fa142e67c71 (patch)
tree429dca7225740419aa57e8eeed6045d4a3d68a8a
parenta1cd77fbc43d2036933e7f805fbb62437615ef8c (diff)
parent475e87e7d9c300160f0d205284946f7072603b4e (diff)
downloadlibcap-o-mr1-iot-preview-7.tar.gz
am: 475e87e7d9 Change-Id: I87501ebc271a389dfb0847b9f63a4441e61cc0fa
-rw-r--r--Android.bp27
1 files changed, 14 insertions, 13 deletions
diff --git a/Android.bp b/Android.bp
index 152b85c..e6e1c66 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12,6 +12,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+cc_defaults {
+ name: "libcap_defaults",
+ cflags: [
+ "-Wall",
+ "-Werror",
+ "-Wno-unused-parameter",
+ "-Wno-unused-result",
+ "-Wno-tautological-compare",
+ ],
+}
+
cc_library {
name: "libcap",
host_supported: true,
@@ -19,11 +30,7 @@ cc_library {
vndk: {
enabled: true,
},
-
- cflags: [
- "-Wno-unused-parameter",
- "-Wno-tautological-compare",
- ],
+ defaults: ["libcap_defaults"],
srcs: [
"libcap/cap_alloc.c",
@@ -52,10 +59,7 @@ cc_binary {
srcs: ["progs/getcap.c"],
- cflags: [
- "-Wno-unused-parameter",
- "-Wno-tautological-compare",
- ],
+ defaults: ["libcap_defaults"],
static_libs: [
"libcap",
@@ -67,10 +71,7 @@ cc_binary {
srcs: ["progs/setcap.c"],
- cflags: [
- "-Wno-unused-parameter",
- "-Wno-tautological-compare",
- ],
+ defaults: ["libcap_defaults"],
static_libs: [
"libcap",