162550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell# Copyright (C) 2015 The Android Open Source Project 262550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell# 362550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell# Licensed under the Apache License, Version 2.0 (the "License"); 462550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell# you may not use this file except in compliance with the License. 562550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell# You may obtain a copy of the License at 662550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell# 762550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell# http://www.apache.org/licenses/LICENSE-2.0 862550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell# 962550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell# Unless required by applicable law or agreed to in writing, software 1062550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell# distributed under the License is distributed on an "AS IS" BASIS, 1162550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1262550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell# See the License for the specific language governing permissions and 1362550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell# limitations under the License. 1462550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell 1562550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam PowellLOCAL_PATH := $(call my-dir) 1662550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell 1762550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell# Here is the final static library that apps can link against. 1862550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powellinclude $(CLEAR_VARS) 1962550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell 2062550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powellpreviewsdk_generate_constants_exe := $(LOCAL_PATH)/previewconstants.sh 2162550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powellpreviewsdk_gen_java_files := $(TARGET_OUT_COMMON_GEN)/previewsdk/PreviewSdkConstants.java 2262550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell 2362550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell$(previewsdk_gen_java_files): $(previewsdk_generate_constants_exe) 2462550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell $(hide) mkdir -p $(dir $@) 2562550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell $(hide) PLATFORM_PREVIEW_SDK_VERSION="$(PLATFORM_PREVIEW_SDK_VERSION)" \ 2662550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell bash $< > $@ 2762550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powell 2862550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam PowellLOCAL_MODULE := android-support-previewsdk 2962550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam PowellLOCAL_SDK_VERSION := current 3062550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam PowellLOCAL_GENERATED_SOURCES := $(previewsdk_gen_java_files) 3162550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam PowellLOCAL_SRC_FILES := $(call all-java-files-under, src) 3262550cb0fdbd11d09bc8d38186117ae98e7fd2e5Adam Powellinclude $(BUILD_STATIC_JAVA_LIBRARY) 33