Merge "Convert screencap and libjni_pacprocessor to Android.bp" am: 954b9825c6
am: 60d7bb00db
Change-Id: Id0335623d2c031d4676c3f8ff8f09aa6f076c084
This commit is contained in:
21
cmds/screencap/Android.bp
Normal file
21
cmds/screencap/Android.bp
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
cc_binary {
|
||||||
|
name: "screencap",
|
||||||
|
|
||||||
|
srcs: ["screencap.cpp"],
|
||||||
|
|
||||||
|
shared_libs: [
|
||||||
|
"libcutils",
|
||||||
|
"libutils",
|
||||||
|
"libbinder",
|
||||||
|
"libhwui",
|
||||||
|
"libui",
|
||||||
|
"libgui",
|
||||||
|
],
|
||||||
|
|
||||||
|
cflags: [
|
||||||
|
"-Wall",
|
||||||
|
"-Werror",
|
||||||
|
"-Wunused",
|
||||||
|
"-Wunreachable-code",
|
||||||
|
],
|
||||||
|
}
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES:= \
|
|
||||||
screencap.cpp
|
|
||||||
|
|
||||||
LOCAL_SHARED_LIBRARIES := \
|
|
||||||
libcutils \
|
|
||||||
libutils \
|
|
||||||
libbinder \
|
|
||||||
libhwui \
|
|
||||||
libui \
|
|
||||||
libgui
|
|
||||||
|
|
||||||
LOCAL_MODULE:= screencap
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
|
|
||||||
LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
|
|
||||||
|
|
||||||
include $(BUILD_EXECUTABLE)
|
|
||||||
@@ -29,5 +29,3 @@ LOCAL_CERTIFICATE := platform
|
|||||||
LOCAL_JNI_SHARED_LIBRARIES := libjni_pacprocessor libpac
|
LOCAL_JNI_SHARED_LIBRARIES := libjni_pacprocessor libpac
|
||||||
|
|
||||||
include $(BUILD_PACKAGE)
|
include $(BUILD_PACKAGE)
|
||||||
|
|
||||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
|
||||||
|
|||||||
40
packages/services/PacProcessor/jni/Android.bp
Normal file
40
packages/services/PacProcessor/jni/Android.bp
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
//
|
||||||
|
// 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_shared {
|
||||||
|
name: "libjni_pacprocessor",
|
||||||
|
|
||||||
|
srcs: [
|
||||||
|
"jni_init.cpp",
|
||||||
|
"com_android_pacprocessor_PacNative.cpp",
|
||||||
|
],
|
||||||
|
|
||||||
|
shared_libs: [
|
||||||
|
"libandroidfw",
|
||||||
|
"libandroid_runtime",
|
||||||
|
"liblog",
|
||||||
|
"libutils",
|
||||||
|
"libnativehelper",
|
||||||
|
"libpac",
|
||||||
|
],
|
||||||
|
|
||||||
|
cflags: [
|
||||||
|
"-Wall",
|
||||||
|
"-Werror",
|
||||||
|
"-Wunused",
|
||||||
|
"-Wunreachable-code",
|
||||||
|
],
|
||||||
|
}
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
#
|
|
||||||
# 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.
|
|
||||||
#
|
|
||||||
|
|
||||||
LOCAL_PATH := $(call my-dir)
|
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES := \
|
|
||||||
jni_init.cpp \
|
|
||||||
com_android_pacprocessor_PacNative.cpp
|
|
||||||
|
|
||||||
LOCAL_C_INCLUDES += \
|
|
||||||
external/chromium-libpac/src
|
|
||||||
|
|
||||||
LOCAL_SHARED_LIBRARIES := \
|
|
||||||
libandroidfw \
|
|
||||||
libandroid_runtime \
|
|
||||||
liblog \
|
|
||||||
libutils \
|
|
||||||
libnativehelper \
|
|
||||||
libpac
|
|
||||||
|
|
||||||
LOCAL_MODULE := libjni_pacprocessor
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
|
|
||||||
LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
|
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
|
||||||
Reference in New Issue
Block a user