1#
2# Copyright (C) 2015 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH := $(call my-dir)
18
19#
20# Everything below here is used for integration testing of generated AIDL code.
21#
22
23# aidl on its own doesn't need the framework, but testing native/java
24# compatibility introduces java dependencies.
25ifndef BRILLO
26
27include $(CLEAR_VARS)
28LOCAL_PACKAGE_NAME := aidl_test_services
29# Turn off Java optimization tools to speed up our test iterations.
30LOCAL_PROGUARD_ENABLED := disabled
31LOCAL_DEX_PREOPT := false
32LOCAL_CERTIFICATE := platform
33LOCAL_MANIFEST_FILE := tests/java_app/AndroidManifest.xml
34LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/tests/java_app/resources
35LOCAL_SRC_FILES := \
36    tests/android/aidl/tests/INamedCallback.aidl \
37    tests/android/aidl/tests/ITestService.aidl \
38    tests/java_app/src/android/aidl/tests/NullableTests.java \
39    tests/java_app/src/android/aidl/tests/SimpleParcelable.java \
40    tests/java_app/src/android/aidl/tests/TestFailException.java \
41    tests/java_app/src/android/aidl/tests/TestLogger.java \
42    tests/java_app/src/android/aidl/tests/TestServiceClient.java
43LOCAL_AIDL_INCLUDES := \
44    system/tools/aidl/tests/ \
45    frameworks/native/aidl/binder
46include $(BUILD_PACKAGE)
47
48endif  # not defined BRILLO
49