aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorAlexander Dorokhine <adorokhine@google.com>2020-08-10 14:08:49 -0700
committerAlexander Dorokhine <adorokhine@google.com>2020-08-10 20:32:18 -0700
commit6684feed5eeae150c9f8e24b7c4d71745138558c (patch)
treed6760d05989ab374f55c78d3ef26b767f70ea777 /Android.bp
parent5b027d2f32cc3208c763409cd02b0d3d08d07a00 (diff)
parent90b8fc467bbc4d118d80c67e8dcb915bfacf57e5 (diff)
downloadicing-6684feed5eeae150c9f8e24b7c4d71745138558c.tar.gz
Merge remote-tracking branch 'goog/androidx-platform-dev' into master
* goog/androidx-platform-dev: Pull upstream changes. Pull upstream changes. Move compilation of libicing.so into appsearch:appsearch. Move icing lib build.gradle to root of repo. Build the external/icing project in a self-contained manner. Hide classes from public API surface. Pull upstream changes. Uncomment CMakeLists.txt to start building icing native lib. Update from upstream, including proto location changes. Copy over changes made to Google3 codebase in Icing. Update CMakeLists.txt to use precompiled protoc. Modify external/icing CMake to build against libandroidicu. Pull upstream changes. Use add_custom_command instead of execute_process for building protos. Implement jarjar for icing protos. Split icing project into two parts: protos/java, and native lib. Modify external/icing CMake to link against libprotobuf. Copy over changes made to Google3 codebase in Icing. Test: m -j Change-Id: I69b719ca9b0ca9032eaca5ba23c62dfa03b185f8
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp37
1 files changed, 8 insertions, 29 deletions
diff --git a/Android.bp b/Android.bp
index 9f80856..fb14778 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12,17 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-java_library {
- name: "icing-java-proto-lite",
- proto: {
- type: "lite",
- include_dirs: ["external/protobuf/src"],
- canonical_path_from_root: false,
- },
- srcs: ["icing/proto/*.proto"],
- sdk_version: "core_current",
-}
-
cc_defaults {
name: "libicing_defaults",
@@ -43,6 +32,7 @@ cc_defaults {
"-Wno-undefined-var-template",
"-Wno-unused-function",
"-Wno-unused-parameter",
+ "-Wno-unused-private-field",
"-Wno-extern-c-compat",
"-funsigned-char",
@@ -50,34 +40,23 @@ cc_defaults {
],
}
-cc_library_static {
- name: "icing-c-proto",
- defaults: ["libicing_defaults"],
- proto: {
- type: "lite",
- // Find protos relative from where they're specified (useful for external protos)
- canonical_path_from_root: false,
- // Need to be able to see the .pb.h files that are generated
- export_proto_headers: true,
- },
- srcs: ["icing/**/*.proto"],
-}
-
cc_library_shared {
- name: "libicing_jni",
+ name: "libicing",
defaults: ["libicing_defaults"],
srcs: [
"icing/**/*.cc",
],
exclude_srcs: [
- // Tests
+ "icing/**/*-test-*",
+ "icing/**/*-test.*",
"icing/**/*_test.cc",
- // Benchmarks
"icing/**/*_benchmark.cc",
- // Test-only related files (i.e. utils)
"icing/testing/**/*",
- // Tools for manual debugging/investigating
+ "icing/tokenization/reverse_jni/**/*",
+ "icing/tokenization/simple/**/*",
"icing/tools/**/*",
+ "icing/transform/map/**/*",
+ "icing/transform/simple/**/*",
],
header_libs: ["jni_headers"],
static_libs: [