Home | History | Annotate | Download | only in main
      1 # Copyright (C) 2014 The Android Open Source Project
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License");
      4 # you may not use this file except in compliance with the License.
      5 # You may obtain a copy of the License at
      6 #
      7 #      http://www.apache.org/licenses/LICENSE-2.0
      8 #
      9 # Unless required by applicable law or agreed to in writing, software
     10 # distributed under the License is distributed on an "AS IS" BASIS,
     11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 # See the License for the specific language governing permissions and
     13 # limitations under the License.
     14 
     15 include $(CLEAR_VARS)
     16 
     17 ifeq ($(vg_build_second_arch),true)
     18 LOCAL_MULTILIB := 32
     19 LOCAL_ARM_MODE := arm
     20 vg_local_arch := $(TARGET_2ND_ARCH)
     21 else
     22 LOCAL_MULTILIB := first
     23 LOCAL_ARM_MODE := arm64
     24 vg_local_arch  := $(TARGET_ARCH)
     25 endif
     26 
     27 LOCAL_MODULE := $(vg_local_module)-$(vg_local_arch)-linux
     28 
     29 LOCAL_SRC_FILES := $(vg_local_src_files)
     30 
     31 LOCAL_C_INCLUDES := $(common_includes) $(vg_local_c_includes)
     32 
     33 LOCAL_CFLAGS := $(vg_local_cflags)
     34 LOCAL_CFLAGS_$(TARGET_ARCH) := $(vg_local_arch_cflags)
     35 LOCAL_CFLAGS_$(TARGET_2ND_ARCH) := $(vg_local_2nd_arch_cflags)
     36 
     37 LOCAL_ASFLAGS := $(common_cflags)
     38 LOCAL_ASFLAGS_$(TARGET_ARCH) := $(vg_local_arch_cflags)
     39 LOCAL_ASFLAGS_$(TARGET_2ND_ARCH) := $(vg_local_2nd_arch_cflags)
     40 
     41 
     42 LOCAL_LDFLAGS := $(vg_local_ldflags)
     43 
     44 LOCAL_MODULE_CLASS := $(vg_local_module_class)
     45 
     46 LOCAL_STATIC_LIBRARIES := \
     47     $(foreach l,$(vg_local_static_libraries),$l-$(vg_local_arch)-linux)
     48 LOCAL_WHOLE_STATIC_LIBRARIES := \
     49     $(foreach l,$(vg_local_whole_static_libraries),$l-$(vg_local_arch)-linux)
     50 
     51 ifeq ($(vg_local_target),EXECUTABLE)
     52   LOCAL_FORCE_STATIC_EXECUTABLE := true
     53 endif
     54 
     55 ifneq ($(vg_local_target),STATIC_LIBRARY)
     56   LOCAL_MODULE_PATH=$(PRODUCT_OUT)$(vg_module_path)
     57 endif
     58 
     59 ifeq ($(vg_local_without_system_shared_libraries),true)
     60   LOCAL_SYSTEM_SHARED_LIBRARIES :=
     61 endif
     62 
     63 ifeq ($(vg_local_no_crt),true)
     64   LOCAL_NO_CRT := true
     65 endif
     66 
     67 include $(BUILD_$(vg_local_target))
     68 
     69