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 LOCAL_PATH:= $(call my-dir) 17 18 jack_jar_tools := $(LOCAL_PATH)/jack-jar-tools.jar 19 jack_eng_jar := $(LOCAL_PATH)/jacks/jack.jar 20 21 JACK_STABLE_VERSION := 4.31.CANDIDATE 22 JACK_DOGFOOD_VERSION := 4.31.CANDIDATE 23 JACK_SDKTOOL_VERSION := 4.31.CANDIDATE 24 JACK_LANG_DEV_VERSION := 4.31.CANDIDATE 25 ifneq ("$(wildcard $(jack_eng_jar))","") 26 JACK_ENGINEERING_VERSION := $(shell java -jar $(jack_jar_tools) --version-code jack $(jack_eng_jar)) 27 endif 28 29 ifneq ($(ANDROID_JACK_DEFAULT_VERSION),) 30 JACK_DEFAULT_VERSION := $(JACK_$(ANDROID_JACK_DEFAULT_VERSION)_VERSION) 31 ifeq ($(JACK_DEFAULT_VERSION),) 32 $(error "$(ANDROID_JACK_DEFAULT_VERSION)" is an invalid value for ANDROID_JACK_DEFAULT_VERSION) 33 endif 34 JACK_APPS_VERSION := $(ANDROID_JACK_DEFAULT_VERSION) 35 else 36 ifneq (,$(TARGET_BUILD_APPS)) 37 # Unbundled branches 38 JACK_DEFAULT_VERSION := $(JACK_STABLE_VERSION) 39 else 40 # Complete android tree 41 JACK_DEFAULT_VERSION := $(JACK_STABLE_VERSION) 42 endif 43 JACK_APPS_VERSION := STABLE 44 endif 45