Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e315def authored by Dan Willemsen's avatar Dan Willemsen Committed by android-build-merger
Browse files

Merge "Convert to Android.bp"

am: 128f68ac

Change-Id: I368f3b987cf1930d745edbd9c4740e61cee9b223
parents 438a3037 128f68ac
Loading
Loading
Loading
Loading

Android.bp

0 → 100644
+39 −0
Original line number Diff line number Diff line
// Copyright (C) 2018 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.

filegroup {
    name: "dicttool_deps",
    srcs: [
        "java/src/com/android/inputmethod/latin/makedict/**/*.java",

        // Dependencies for Dicttool. Most of these files are needed by BinaryDictionary.java. Note that
        // a significant part of the dependencies are mocked in the compat/ directory, with empty or
        // nearly-empty implementations, for parts that we don't use in Dicttool.
        "java/src/com/android/inputmethod/latin/BinaryDictionary.java",
        "java/src/com/android/inputmethod/latin/DicTraverseSession.java",
        "java/src/com/android/inputmethod/latin/Dictionary.java",
        "java/src/com/android/inputmethod/latin/NgramContext.java",
        "java/src/com/android/inputmethod/latin/SuggestedWords.java",
        "java/src/com/android/inputmethod/latin/settings/SettingsValuesForSuggestion.java",
        "java/src/com/android/inputmethod/latin/utils/BinaryDictionaryUtils.java",
        "java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java",
        "java/src/com/android/inputmethod/latin/utils/JniUtils.java",

        "java-overridable/src/com/android/inputmethod/latin/define/DebugFlags.java",
        "java-overridable/src/com/android/inputmethod/latin/define/DecoderSpecificConstants.java",

        "tests/src/com/android/inputmethod/latin/utils/ByteArrayDictBuffer.java",
        "tests/src/com/android/inputmethod/latin/makedict/**/*.java",
    ],
}

Android.mk

deleted100644 → 0
+0 −16
Original line number Diff line number Diff line
# 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.

subdirs := common native java tests tools
include $(call all-named-subdir-makefiles, $(subdirs))

common/Android.bp

0 → 100644
+21 −0
Original line number Diff line number Diff line
// 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.

java_library {
    name: "latinime-common",
    host_supported: true,
    srcs: ["src/**/*.java"],
    static_libs: ["jsr305"],
    sdk_version: "21",
}

common/Android.mk

deleted100644 → 0
+0 −28
Original line number Diff line number Diff line
# 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.

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := latinime-common
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_STATIC_JAVA_LIBRARIES := jsr305
LOCAL_SDK_VERSION := 21
include $(BUILD_STATIC_JAVA_LIBRARY)

# Also build a host side library
include $(CLEAR_VARS)
LOCAL_MODULE := latinime-common-host
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_STATIC_JAVA_LIBRARIES := jsr305lib
include $(BUILD_HOST_JAVA_LIBRARY)
+18 −0
Original line number Diff line number Diff line
// Copyright (C) 2018 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.

filegroup {
    name: "LatinIME_java-overridable",
    srcs: ["src/**/*.java"],
}
Loading