Home | History | Annotate | Download | only in tools
      1 #
      2 # Copyright (C) 2010 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 LOCAL_PATH:= $(call my-dir)
     18 
     19 ifneq ($(TARGET_BUILD_APPS),)
     20 
     21 ##################################
     22 include $(CLEAR_VARS)
     23 
     24 # We can't simple call $(BUILD_PREBUILT) here, because $(ACP) is not
     25 # available yet..
     26 
     27 LOCAL_MODULE := acp
     28 LOCAL_IS_HOST_MODULE := true
     29 LOCAL_MODULE_CLASS := EXECUTABLES
     30 LOCAL_MODULE_TAGS := optional
     31 
     32 $(ACP): $(LOCAL_PATH)/$(HOST_OS)/acp$(HOST_EXECUTABLE_SUFFIX)
     33 	@echo "Copy: acp ($@)"
     34 	$(copy-file-to-target-with-cp)
     35 	$(hide) chmod 755 $@
     36 
     37 ##################################
     38 include $(CLEAR_VARS)
     39 
     40 LOCAL_MODULE := aidl
     41 LOCAL_SRC_FILES := $(HOST_OS)/aidl$(HOST_EXECUTABLE_SUFFIX)
     42 LOCAL_MODULE_CLASS := EXECUTABLES
     43 LOCAL_MODULE_TAGS := optional
     44 LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX)
     45 LOCAL_BUILT_MODULE_STEM := aidl$(HOST_EXECUTABLE_SUFFIX)
     46 LOCAL_IS_HOST_MODULE := true
     47 
     48 include $(BUILD_PREBUILT)
     49 
     50 ##################################
     51 include $(CLEAR_VARS)
     52 
     53 LOCAL_MODULE := aapt
     54 LOCAL_SRC_FILES := $(HOST_OS)/aapt$(HOST_EXECUTABLE_SUFFIX)
     55 LOCAL_MODULE_CLASS := EXECUTABLES
     56 LOCAL_MODULE_TAGS := optional
     57 LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX)
     58 LOCAL_BUILT_MODULE_STEM := aapt$(HOST_EXECUTABLE_SUFFIX)
     59 LOCAL_IS_HOST_MODULE := true
     60 
     61 include $(BUILD_PREBUILT)
     62 
     63 ##################################
     64 include $(CLEAR_VARS)
     65 
     66 LOCAL_MODULE := llvm-rs-cc
     67 LOCAL_SRC_FILES := $(HOST_OS)/llvm-rs-cc$(HOST_EXECUTABLE_SUFFIX)
     68 LOCAL_MODULE_CLASS := EXECUTABLES
     69 LOCAL_MODULE_TAGS := optional
     70 LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX)
     71 LOCAL_BUILT_MODULE_STEM := llvm-rs-cc$(HOST_EXECUTABLE_SUFFIX)
     72 LOCAL_IS_HOST_MODULE := true
     73 
     74 include $(BUILD_PREBUILT)
     75 
     76 ##################################
     77 include $(CLEAR_VARS)
     78 
     79 LOCAL_MODULE := zipalign
     80 LOCAL_SRC_FILES := $(HOST_OS)/zipalign$(HOST_EXECUTABLE_SUFFIX)
     81 LOCAL_MODULE_CLASS := EXECUTABLES
     82 LOCAL_MODULE_TAGS := optional
     83 LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX)
     84 LOCAL_BUILT_MODULE_STEM := zipalign$(HOST_EXECUTABLE_SUFFIX)
     85 LOCAL_IS_HOST_MODULE := true
     86 
     87 include $(BUILD_PREBUILT)
     88 
     89 ##################################
     90 include $(CLEAR_VARS)
     91 
     92 LOCAL_MODULE := dx
     93 LOCAL_SRC_FILES := lib/dx.jar
     94 LOCAL_MODULE_CLASS := JAVA_LIBRARIES
     95 LOCAL_MODULE_TAGS := optional
     96 LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX)
     97 LOCAL_BUILT_MODULE_STEM := dx$(COMMON_JAVA_PACKAGE_SUFFIX)
     98 LOCAL_IS_HOST_MODULE := true
     99 
    100 include $(BUILD_PREBUILT)
    101 
    102 ##################################
    103 include $(CLEAR_VARS)
    104 
    105 # We have to call copy-file-to-new-target instead of simply including
    106 # $(BUILD_PREBUILT) here, because we must put dx.jar as dependecy of dx.
    107 
    108 LOCAL_MODULE := dx
    109 LOCAL_IS_HOST_MODULE := true
    110 LOCAL_MODULE_CLASS := EXECUTABLES
    111 LOCAL_MODULE_TAGS := optional
    112 
    113 include $(BUILD_SYSTEM)/base_rules.mk
    114 
    115 $(LOCAL_BUILT_MODULE): $(HOST_OUT_JAVA_LIBRARIES)/dx$(COMMON_JAVA_PACKAGE_SUFFIX)
    116 $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/dx | $(ACP)
    117 	@echo "Copy: $(PRIVATE_MODULE) ($@)"
    118 	$(copy-file-to-new-target)
    119 	$(hide) chmod 755 $@
    120 
    121 ##################################
    122 endif # TARGET_BUILD_APPS
    123