Yohann Roussel | b6b1f82 | 2015-07-01 16:54:15 +0200 | [diff] [blame] | 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 | # |
Yohann Roussel | e93ca1a | 2016-03-24 16:20:12 +0100 | [diff] [blame] | 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 |
Yohann Roussel | b6b1f82 | 2015-07-01 16:54:15 +0200 | [diff] [blame] | 20 | |
Benoit Lamarche | 196c0c9 | 2016-10-10 14:49:20 +0000 | [diff] [blame] | 21 | JACK_STABLE_VERSION := 4.10.BETA |
Benoit Lamarche | 19bd018 | 2016-10-17 17:32:14 +0200 | [diff] [blame] | 22 | JACK_DOGFOOD_VERSION := 4.12.BETA |
Benoit Lamarche | 196c0c9 | 2016-10-10 14:49:20 +0000 | [diff] [blame] | 23 | JACK_SDKTOOL_VERSION := 4.10.BETA |
| 24 | JACK_LANG_DEV_VERSION := 4.10.BETA |
Yohann Roussel | e93ca1a | 2016-03-24 16:20:12 +0100 | [diff] [blame] | 25 | ifneq ("$(wildcard $(jack_eng_jar))","") |
| 26 | JACK_ENGINEERING_VERSION := $(shell java -jar $(jack_jar_tools) --version-code jack $(jack_eng_jar)) |
| 27 | endif |
Yohann Roussel | b6b1f82 | 2015-07-01 16:54:15 +0200 | [diff] [blame] | 28 | |
Yohann Roussel | 64d8129 | 2015-11-20 18:10:22 +0100 | [diff] [blame] | 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 |
mikaelpeltier | 7770c24 | 2016-02-02 16:45:03 +0100 | [diff] [blame] | 34 | JACK_APPS_VERSION := $(ANDROID_JACK_DEFAULT_VERSION) |
Yohann Roussel | 64d8129 | 2015-11-20 18:10:22 +0100 | [diff] [blame] | 35 | else |
Yohann Roussel | 9c0beee | 2016-01-28 10:18:58 +0100 | [diff] [blame] | 36 | ifneq (,$(TARGET_BUILD_APPS)) |
Yohann Roussel | b6b1f82 | 2015-07-01 16:54:15 +0200 | [diff] [blame] | 37 | # Unbundled branches |
Yohann Roussel | 589cf80 | 2016-03-29 15:26:14 +0200 | [diff] [blame] | 38 | JACK_DEFAULT_VERSION := $(JACK_STABLE_VERSION) |
Yohann Roussel | b6b1f82 | 2015-07-01 16:54:15 +0200 | [diff] [blame] | 39 | else |
| 40 | # Complete android tree |
Yohann Roussel | 589cf80 | 2016-03-29 15:26:14 +0200 | [diff] [blame] | 41 | JACK_DEFAULT_VERSION := $(JACK_STABLE_VERSION) |
Benoit Lamarche | 58c85eb | 2015-10-23 12:06:54 +0200 | [diff] [blame] | 42 | endif |
Yohann Roussel | 589cf80 | 2016-03-29 15:26:14 +0200 | [diff] [blame] | 43 | JACK_APPS_VERSION := STABLE |
mikaelpeltier | 869a1d0 | 2015-12-24 08:55:34 +0100 | [diff] [blame] | 44 | endif |