blob: c59528e81ef2b78802d1b4f64dcf61dbc141a6f5 [file] [log] [blame]
Deepanshu Guptab988c8f2014-09-03 12:57:12 -07001# Copyright (C) 2014 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH := $(call my-dir)
16include $(CLEAR_VARS)
17
Deepanshu Gupta7914e4c2016-02-17 20:42:31 -080018LOCAL_JAVA_LANGUAGE_VERSION := 1.8
19
Deepanshu Guptab988c8f2014-09-03 12:57:12 -070020# Only compile source java files in this lib.
21LOCAL_SRC_FILES := $(call all-java-files-under, com)
22
23LOCAL_JAVA_RESOURCE_DIRS := data mock_data
24
25LOCAL_MODULE := layoutlib-create-tests
26LOCAL_MODULE_TAGS := optional
27
28LOCAL_JAVA_LIBRARIES := layoutlib_create junit
Deepanshu Gupta23e47f52016-01-07 15:54:27 -080029LOCAL_STATIC_JAVA_LIBRARIES := asm-5.0
Deepanshu Guptab988c8f2014-09-03 12:57:12 -070030
31include $(BUILD_HOST_JAVA_LIBRARY)
32
Deepanshu Guptaa0904bf2014-09-04 19:07:40 -070033# Copy the jar to DIST_DIR for sdk builds
34$(call dist-for-goals, sdk win_sdk, $(LOCAL_INSTALLED_MODULE))
35
Deepanshu Guptab988c8f2014-09-03 12:57:12 -070036# Build all sub-directories
37include $(call all-makefiles-under,$(LOCAL_PATH))