futokb/native/dicttoolkit/Android.bp
Bob Badour f3d9532a32 [LSC] Add LOCAL_LICENSE_KINDS to packages/inputmethods/LatinIME
Added SPDX-license-identifier-Apache-2.0 to:
  Android.bp
  common/Android.bp
  java/Android.bp
  native/dicttoolkit/Android.bp
  native/jni/Android.bp
  tests/Android.bp
  tools/EditTextVariations/Android.bp
  tools/dicttool/Android.bp
  tools/make-keyboard-text/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I440008bffac5c97a2497970af377a9d03262b6d8
2021-02-17 09:46:27 -08:00

105 lines
3.2 KiB
Plaintext

// Copyright (C) 2014 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.
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "packages_inputmethods_LatinIME_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["packages_inputmethods_LatinIME_license"],
}
cc_defaults {
name: "dicttoolkit_defaults",
cflags: [
"-Werror",
"-Wall",
"-Wextra",
"-Weffc++",
"-Wformat=2",
"-Wcast-qual",
"-Wcast-align",
"-Wwrite-strings",
"-Wfloat-equal",
"-Wpointer-arith",
"-Winit-self",
"-Wredundant-decls",
"-Woverloaded-virtual",
"-Wsign-promo",
"-Wno-system-headers",
// To suppress compiler warnings for unused variables/functions used for debug features etc.
"-Wno-unused-parameter",
"-Wno-unused-function",
],
header_libs: ["jni_headers"],
local_include_dirs: ["src"],
// TODO
include_dirs: ["packages/inputmethods/LatinIME/native/jni/src"],
product_variables: {
unbundled_build: {
enabled: false,
},
},
}
cc_library_host_static {
name: "liblatinime_dicttoolkit",
defaults: ["dicttoolkit_defaults"],
srcs: [
"src/command_executors/diff_executor.cpp",
"src/command_executors/header_executor.cpp",
"src/command_executors/help_executor.cpp",
"src/command_executors/info_executor.cpp",
"src/command_executors/makedict_executor.cpp",
"src/offdevice_intermediate_dict/offdevice_intermediate_dict.cpp",
"src/utils/arguments_parser.cpp",
"src/utils/command_utils.cpp",
"src/utils/utf8_utils.cpp",
":LATIN_IME_CORE_SRC_FILES",
],
}
cc_binary_host {
name: "dicttoolkit",
defaults: ["dicttoolkit_defaults"],
srcs: ["dict_toolkit_main.cpp"],
static_libs: ["liblatinime_dicttoolkit"],
}
cc_test_host {
name: "dicttoolkit_unittests",
defaults: ["dicttoolkit_defaults"],
srcs: [
"tests/command_executors/diff_executor_test.cpp",
"tests/command_executors/header_executor_test.cpp",
"tests/command_executors/info_executor_test.cpp",
"tests/command_executors/makedict_executor_test.cpp",
"tests/dict_toolkit_defines_test.cpp",
"tests/offdevice_intermediate_dict/offdevice_intermediate_dict_test.cpp",
"tests/utils/arguments_parser_test.cpp",
"tests/utils/command_utils_test.cpp",
"tests/utils/utf8_utils_test.cpp",
],
static_libs: ["liblatinime_dicttoolkit"],
}