Home | History | Annotate | Download | only in libpixelflinger
      1 LOCAL_PATH:= $(call my-dir)
      2 include $(CLEAR_VARS)
      3 
      4 #
      5 # C/C++ and ARMv5 objects
      6 #
      7 
      8 include $(CLEAR_VARS)
      9 PIXELFLINGER_SRC_FILES:= \
     10     codeflinger/ARMAssemblerInterface.cpp \
     11     codeflinger/ARMAssemblerProxy.cpp \
     12     codeflinger/ARMAssembler.cpp \
     13     codeflinger/CodeCache.cpp \
     14     codeflinger/GGLAssembler.cpp \
     15     codeflinger/load_store.cpp \
     16     codeflinger/blending.cpp \
     17     codeflinger/texturing.cpp \
     18     codeflinger/disassem.c \
     19 	tinyutils/SharedBuffer.cpp \
     20 	tinyutils/VectorImpl.cpp \
     21 	fixed.cpp.arm \
     22 	picker.cpp.arm \
     23 	pixelflinger.cpp.arm \
     24 	trap.cpp.arm \
     25 	scanline.cpp.arm \
     26 	format.cpp \
     27 	clear.cpp \
     28 	raster.cpp \
     29 	buffer.cpp
     30 
     31 ifeq ($(TARGET_ARCH),arm)
     32 ifeq ($(TARGET_ARCH_VERSION),armv7-a)
     33 PIXELFLINGER_SRC_FILES += col32cb16blend_neon.S
     34 PIXELFLINGER_SRC_FILES += col32cb16blend.S
     35 else
     36 PIXELFLINGER_SRC_FILES += t32cb16blend.S
     37 PIXELFLINGER_SRC_FILES += col32cb16blend.S
     38 endif
     39 endif
     40 
     41 ifeq ($(TARGET_ARCH),arm)
     42 # special optimization flags for pixelflinger
     43 PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer
     44 endif
     45 
     46 LOCAL_SHARED_LIBRARIES := libcutils
     47 
     48 ifneq ($(TARGET_ARCH),arm)
     49 # Required to define logging functions on the simulator.
     50 # TODO: move the simulator logging functions into libcutils with
     51 # the rest of the basic log stuff.
     52 LOCAL_SHARED_LIBRARIES += libutils
     53 endif
     54 
     55 #
     56 # Shared library
     57 #
     58 
     59 LOCAL_MODULE:= libpixelflinger
     60 LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
     61 LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS)
     62 
     63 ifneq ($(BUILD_TINY_ANDROID),true)
     64 # Really this should go away entirely or at least not depend on
     65 # libhardware, but this at least gets us built.
     66 LOCAL_SHARED_LIBRARIES += libhardware_legacy
     67 LOCAL_CFLAGS += -DWITH_LIB_HARDWARE
     68 endif
     69 include $(BUILD_SHARED_LIBRARY)
     70 
     71 #
     72 # Static library version
     73 #
     74 
     75 include $(CLEAR_VARS)
     76 LOCAL_MODULE:= libpixelflinger_static
     77 LOCAL_SRC_FILES := $(PIXELFLINGER_SRC_FILES)
     78 LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS) 
     79 include $(BUILD_STATIC_LIBRARY)
     80 
     81 
     82 include $(call all-makefiles-under,$(LOCAL_PATH))
     83