| // |
| // Copyright (C) 2010 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: "libteeservice_server", |
| |
| aidl: { |
| local_include_dirs: ["aidl"], |
| }, |
| |
| srcs: [ |
| ":teeservice_aidl", |
| "teeserviceserver.cpp", |
| "TeeService.cpp", |
| ], |
| |
| shared_libs: [ |
| "libutils", |
| "libcutils", |
| "liblog", |
| "libbinder", |
| "libdl", |
| "libselinux", |
| "libhidlbase", |
| "libhidlmemory", |
| "libnativehelper", |
| "android.hidl.allocator@1.0", |
| "android.hidl.memory@1.0", |
| "vendor.trustonic.tee@1.1", |
| ], |
| |
| cflags: [ |
| "-Wall", |
| "-Wextra", |
| "-Werror", |
| "-DTBASE_API_LEVEL=11" |
| ], |
| |
| include_dirs: [ |
| "hardware/samsung_slsi-linaro/exynos/tee/kinibi500/vendor/ClientLib/include", |
| "hardware/samsung_slsi-linaro/exynos/tee/kinibi500/vendor/ClientLib/include/GP", |
| ], |
| |
| } |
| |
| cc_library_shared { |
| name: "libteeservice_client.trustonic", |
| |
| aidl: { |
| export_aidl_headers: true, |
| local_include_dirs: ["aidl"], |
| }, |
| |
| srcs: [ |
| ":teeservice_aidl", |
| "teeservice_client.cpp", |
| ], |
| |
| shared_libs: [ |
| "libcutils", |
| "libutils", |
| "liblog", |
| "libbinder", |
| ], |
| |
| cflags: [ |
| "-Wall", |
| "-Wextra", |
| "-Werror", |
| "-DTBASE_API_LEVEL=11" |
| ], |
| |
| include_dirs: [ |
| "hardware/samsung_slsi-linaro/exynos/tee/kinibi500/vendor/ClientLib/include", |
| "hardware/samsung_slsi-linaro/exynos/tee/kinibi500/vendor/ClientLib/include/GP", |
| ], |
| |
| export_include_dirs: [ |
| ".", |
| ], |
| } |
| |
| prebuilt_etc { |
| name: "tee_whitelist", |
| owner: "samsung", |
| src: "public.libraries-trustonic.txt", |
| filename_from_src: true, |
| } |
| |
| filegroup { |
| name: "teeservice_aidl", |
| |
| srcs: [ |
| "aidl/vendor/trustonic/teeservice/ITeeService.aidl", |
| "aidl/vendor/trustonic/teeservice/ITeeServiceListener.aidl", |
| ], |
| |
| path: "aidl", |
| } |