blob: 393e2da88ea939acc20b7bb99f376759595df30f [file] [log] [blame]
Yohann Rousselb6b1f822015-07-01 16:54:15 +02001#
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#
Yohann Roussele93ca1a2016-03-24 16:20:12 +010016LOCAL_PATH:= $(call my-dir)
17
18jack_jar_tools := $(LOCAL_PATH)/jack-jar-tools.jar
19jack_eng_jar := $(LOCAL_PATH)/jacks/jack.jar
Yohann Rousselb6b1f822015-07-01 16:54:15 +020020
Benoit Lamarchebbfc8b52016-10-18 11:52:12 +020021JACK_STABLE_VERSION := 4.12.BETA
Benoit Lamarche19bd0182016-10-17 17:32:14 +020022JACK_DOGFOOD_VERSION := 4.12.BETA
Benoit Lamarchebbfc8b52016-10-18 11:52:12 +020023JACK_SDKTOOL_VERSION := 4.12.BETA
24JACK_LANG_DEV_VERSION := 4.12.BETA
Yohann Roussele93ca1a2016-03-24 16:20:12 +010025ifneq ("$(wildcard $(jack_eng_jar))","")
26JACK_ENGINEERING_VERSION := $(shell java -jar $(jack_jar_tools) --version-code jack $(jack_eng_jar))
27endif
Yohann Rousselb6b1f822015-07-01 16:54:15 +020028
Yohann Roussel64d81292015-11-20 18:10:22 +010029ifneq ($(ANDROID_JACK_DEFAULT_VERSION),)
30JACK_DEFAULT_VERSION := $(JACK_$(ANDROID_JACK_DEFAULT_VERSION)_VERSION)
31ifeq ($(JACK_DEFAULT_VERSION),)
32$(error "$(ANDROID_JACK_DEFAULT_VERSION)" is an invalid value for ANDROID_JACK_DEFAULT_VERSION)
33endif
mikaelpeltier7770c242016-02-02 16:45:03 +010034JACK_APPS_VERSION := $(ANDROID_JACK_DEFAULT_VERSION)
Yohann Roussel64d81292015-11-20 18:10:22 +010035else
Yohann Roussel9c0beee2016-01-28 10:18:58 +010036ifneq (,$(TARGET_BUILD_APPS))
Yohann Rousselb6b1f822015-07-01 16:54:15 +020037# Unbundled branches
Yohann Roussel589cf802016-03-29 15:26:14 +020038JACK_DEFAULT_VERSION := $(JACK_STABLE_VERSION)
Yohann Rousselb6b1f822015-07-01 16:54:15 +020039else
40# Complete android tree
Yohann Roussel589cf802016-03-29 15:26:14 +020041JACK_DEFAULT_VERSION := $(JACK_STABLE_VERSION)
Benoit Lamarche58c85eb2015-10-23 12:06:54 +020042endif
Yohann Roussel589cf802016-03-29 15:26:14 +020043JACK_APPS_VERSION := STABLE
mikaelpeltier869a1d02015-12-24 08:55:34 +010044endif