1120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin# Copyright (C) 2016 The Android Open Source Project
2120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin#
3120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin# Licensed under the Apache License, Version 2.0 (the "License");
4120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin# you may not use this file except in compliance with the License.
5120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin# You may obtain a copy of the License at
6120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin#
7120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin#      http://www.apache.org/licenses/LICENSE-2.0
8120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin#
9120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin# Unless required by applicable law or agreed to in writing, software
10120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin# distributed under the License is distributed on an "AS IS" BASIS,
11120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin# See the License for the specific language governing permissions and
13120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin# limitations under the License.
14120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin#
15120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin
16120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin#
17120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin# Build support for jsr330 within the Android Open Source Project
18120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin# See https://source.android.com/source/building.html for more information
19120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin#
20120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin
21120d55ed85ca460ab29241916bf23743f6bc65daIgor MurashkinLOCAL_PATH := $(call my-dir)
22120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin
23120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkinjsr330_src_files := $(call all-java-files-under, src)
24120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin
2557916beef7b9401b594906d26833e0867bf60829Igor Murashkin# Target build
2657916beef7b9401b594906d26833e0867bf60829Igor Murashkininclude $(CLEAR_VARS)
2757916beef7b9401b594906d26833e0867bf60829Igor MurashkinLOCAL_SRC_FILES := $(jsr330_src_files)
2857916beef7b9401b594906d26833e0867bf60829Igor MurashkinLOCAL_MODULE := jsr330
2957916beef7b9401b594906d26833e0867bf60829Igor Murashkininclude $(BUILD_STATIC_JAVA_LIBRARY)
3057916beef7b9401b594906d26833e0867bf60829Igor Murashkin
31120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin# Host-side Java build
32120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkininclude $(CLEAR_VARS)
33120d55ed85ca460ab29241916bf23743f6bc65daIgor MurashkinLOCAL_SRC_FILES := $(jsr330_src_files)
34120d55ed85ca460ab29241916bf23743f6bc65daIgor MurashkinLOCAL_MODULE := jsr330-host
35120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkininclude $(BUILD_HOST_JAVA_LIBRARY)
36120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin
37120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin# Host-side Dalvik build
38120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkininclude $(CLEAR_VARS)
39120d55ed85ca460ab29241916bf23743f6bc65daIgor MurashkinLOCAL_SRC_FILES := $(jsr330_src_files)
40120d55ed85ca460ab29241916bf23743f6bc65daIgor MurashkinLOCAL_MODULE := jsr330-hostdex
41120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkininclude $(BUILD_HOST_DALVIK_JAVA_LIBRARY)
42120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin
43120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin#
44120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin# TCK (Test Compatibility Kit)
45120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkin# -- For DI frameworks that want to test compatibility with javax.
46120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkininclude $(CLEAR_VARS)
47120d55ed85ca460ab29241916bf23743f6bc65daIgor MurashkinLOCAL_SRC_FILES := $(call all-java-files-under, tck)
48120d55ed85ca460ab29241916bf23743f6bc65daIgor MurashkinLOCAL_MODULE := jsr330-tck-host
49120d55ed85ca460ab29241916bf23743f6bc65daIgor MurashkinLOCAL_JAVA_LIBRARIES := jsr330-host junit
50120d55ed85ca460ab29241916bf23743f6bc65daIgor Murashkininclude $(BUILD_HOST_JAVA_LIBRARY)
51