Keun young Park | 5eba08f | 2012-03-26 18:31:29 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2012 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 | |
| 17 | # build only for linux |
| 18 | ifeq ($(HOST_OS),linux) |
| 19 | |
| 20 | CTS_AUDIO_TOP:= $(call my-dir) |
| 21 | |
Keun young Park | 51a36fa | 2012-07-27 09:52:08 -0700 | [diff] [blame] | 22 | CTS_AUDIO_INSTALL_DIR := $(HOST_OUT)/cts-audio-quality/android-cts-audio-quality |
| 23 | CTS_AUDIO_QUALITY_ZIP := $(HOST_OUT)/cts-audio-quality/android-cts-audio-quality.zip |
Keun young Park | 5eba08f | 2012-03-26 18:31:29 -0700 | [diff] [blame] | 24 | |
Keun young Park | 51a36fa | 2012-07-27 09:52:08 -0700 | [diff] [blame] | 25 | $(CTS_AUDIO_QUALITY_ZIP): cts_audio_quality_test cts_audio_quality \ |
Keun young Park | f442636 | 2012-07-26 13:06:04 -0700 | [diff] [blame] | 26 | CtsAudioClient $(CTS_AUDIO_TOP)/test_description |
Keun young Park | 5eba08f | 2012-03-26 18:31:29 -0700 | [diff] [blame] | 27 | $(hide) mkdir -p $(CTS_AUDIO_INSTALL_DIR) |
| 28 | $(hide) mkdir -p $(CTS_AUDIO_INSTALL_DIR)/client |
Keun young Park | 1ca0866 | 2012-07-26 18:25:34 -0700 | [diff] [blame] | 29 | $(hide) $(ACP) -fp $(PRODUCT_OUT)/data/app/CtsAudioClient.apk \ |
Keun young Park | 5eba08f | 2012-03-26 18:31:29 -0700 | [diff] [blame] | 30 | $(CTS_AUDIO_INSTALL_DIR)/client |
| 31 | $(hide) $(ACP) -fp $(HOST_OUT)/bin/cts_audio_quality_test $(CTS_AUDIO_INSTALL_DIR) |
| 32 | $(hide) $(ACP) -fp $(HOST_OUT)/bin/cts_audio_quality $(CTS_AUDIO_INSTALL_DIR) |
| 33 | $(hide) $(ACP) -fr $(CTS_AUDIO_TOP)/test_description $(CTS_AUDIO_INSTALL_DIR) |
Keun young Park | f442636 | 2012-07-26 13:06:04 -0700 | [diff] [blame] | 34 | $(hide) echo "Package cts_audio: $@" |
Keun young Park | 51a36fa | 2012-07-27 09:52:08 -0700 | [diff] [blame] | 35 | $(hide) cd $(HOST_OUT)/cts-audio-quality && \ |
| 36 | zip -rq android-cts-audio-quality.zip android-cts-audio-quality -x android-cts-audio-quality/reports/\* |
Keun young Park | f442636 | 2012-07-26 13:06:04 -0700 | [diff] [blame] | 37 | |
Keun young Park | 69adcd7 | 2012-09-25 15:23:16 -0700 | [diff] [blame] | 38 | # target to build only this package |
| 39 | .PHONY: cts_audio_quality_package |
| 40 | cts_audio_quality_package: $(CTS_AUDIO_QUALITY_ZIP) |
| 41 | |
Keun young Park | 51a36fa | 2012-07-27 09:52:08 -0700 | [diff] [blame] | 42 | cts: $(CTS_AUDIO_QUALITY_ZIP) |
Keun young Park | 69adcd7 | 2012-09-25 15:23:16 -0700 | [diff] [blame] | 43 | |
Keun young Park | f442636 | 2012-07-26 13:06:04 -0700 | [diff] [blame] | 44 | ifneq ($(filter cts, $(MAKECMDGOALS)),) |
Keun young Park | 51a36fa | 2012-07-27 09:52:08 -0700 | [diff] [blame] | 45 | $(call dist-for-goals, cts, $(CTS_AUDIO_QUALITY_ZIP)) |
Keun young Park | f442636 | 2012-07-26 13:06:04 -0700 | [diff] [blame] | 46 | endif # cts |
Keun young Park | 5eba08f | 2012-03-26 18:31:29 -0700 | [diff] [blame] | 47 | |
| 48 | include $(call all-subdir-makefiles) |
| 49 | |
| 50 | endif # linux |