Skip to content

Commit

Permalink
Convert more Android.mk files to Android.bp
Browse files Browse the repository at this point in the history
These modules have their dependencies satisfied, and aren't doing
anything strange.

Change-Id: I72039a15256cbd5e5eee0d79a15d66d74a6c087d
  • Loading branch information
danw committed Jul 14, 2016
1 parent dc9fbc3 commit 45f0524
Show file tree
Hide file tree
Showing 28 changed files with 378 additions and 453 deletions.
1 change: 1 addition & 0 deletions adf/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
subdirs = ["*"]
18 changes: 0 additions & 18 deletions adf/Android.mk

This file was deleted.

21 changes: 21 additions & 0 deletions adf/libadf/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright (C) 2013 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

cc_library_static {
name: "libadf",
srcs: ["adf.c"],
cflags: ["-Werror"],
local_include_dirs: ["include"],
export_include_dirs: ["include"],
}
24 changes: 0 additions & 24 deletions adf/libadf/Android.mk

This file was deleted.

22 changes: 22 additions & 0 deletions adf/libadf/tests/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// Copyright (C) 2013 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

cc_test {
name: "adf-unit-tests",
srcs: ["adf_test.cpp"],
static_libs: ["libadf"],
cflags: ["-Werror"],
}
23 changes: 0 additions & 23 deletions adf/libadf/tests/Android.mk

This file was deleted.

29 changes: 29 additions & 0 deletions adf/libadfhwc/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Copyright (C) 2013 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

cc_library_static {
name: "libadfhwc",
srcs: ["adfhwc.cpp"],
static_libs: [
"libadf",
"liblog",
"libutils",
],
cflags: [
"-DLOG_TAG=\\\"adfhwc\\\"",
"-Werror",
],
local_include_dirs: ["include"],
export_include_dirs: ["include"],
}
25 changes: 0 additions & 25 deletions adf/libadfhwc/Android.mk

This file was deleted.

32 changes: 32 additions & 0 deletions libdiskconfig/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
cc_library {
name: "libdiskconfig",
srcs: [
"diskconfig.c",
"diskutils.c",
"write_lst.c",
"config_mbr.c",
],

shared_libs: [
"libcutils",
"liblog",
],
cflags: ["-Werror"],
export_include_dirs: ["include"],
local_include_dirs: ["include"],

target: {
darwin: {
enabled: false,
},
linux: {
cflags: [
"-O2",
"-g",
"-W",
"-Wall",
"-D_LARGEFILE64_SOURCE",
],
},
},
}
29 changes: 0 additions & 29 deletions libdiskconfig/Android.mk

This file was deleted.

25 changes: 25 additions & 0 deletions libion/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

cc_library {
name: "libion",
srcs: ["ion.c"],
shared_libs: ["liblog"],
local_include_dirs: [
"include",
"kernel-headers",
],
export_include_dirs: [
"include",
"kernel-headers",
],
cflags: ["-Werror"],
}

cc_binary {
name: "iontest",
srcs: ["ion_test.c"],
static_libs: ["libion"],
shared_libs: ["liblog"],
cflags: ["-Werror"],
}

subdirs = ["tests"]
22 changes: 0 additions & 22 deletions libion/Android.mk

This file was deleted.

36 changes: 36 additions & 0 deletions libion/tests/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//
// Copyright (C) 2013 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

cc_test {
name: "ion-unit-tests",
clang: true,
cflags: [
"-g",
"-Wall",
"-Werror",
"-Wno-missing-field-initializers",
],
shared_libs: ["libion"],
srcs: [
"ion_test_fixture.cpp",
"allocate_test.cpp",
"formerly_valid_handle_test.cpp",
"invalid_values_test.cpp",
"map_test.cpp",
"device_test.cpp",
"exit_test.cpp",
],
}
33 changes: 0 additions & 33 deletions libion/tests/Android.mk

This file was deleted.

30 changes: 30 additions & 0 deletions libmemtrack/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Copyright 2013 The Android Open Source Project

cc_library_shared {
name: "libmemtrack",
srcs: ["memtrack.c"],
export_include_dirs: ["include"],
local_include_dirs: ["include"],
include_dirs: ["hardware/libhardware/include"],
shared_libs: [
"libhardware",
"liblog",
],
cflags: [
"-Wall",
"-Werror",
],
}

cc_binary {
name: "memtrack_test",
srcs: ["memtrack_test.c"],
shared_libs: [
"libmemtrack",
"libpagemap",
],
cflags: [
"-Wall",
"-Werror",
],
}
Loading

0 comments on commit 45f0524

Please sign in to comment.