"Fossies" - the Fresh Open Source Software Archive

Member "SDL2_ttf-2.20.2/Android.mk" (25 May 2022, 1356 Bytes) of package /linux/misc/SDL2_ttf-2.20.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "Android.mk": 2.0.18_vs_2.20.0.

    1 # Save the local path
    2 SDL_TTF_LOCAL_PATH := $(call my-dir)
    3 
    4 # Enable this if you want to use HarfBuzz
    5 SUPPORT_HARFBUZZ ?= true
    6 HARFBUZZ_LIBRARY_PATH := external/harfbuzz
    7 
    8 FREETYPE_LIBRARY_PATH := external/freetype
    9 
   10 # Build freetype library
   11 ifneq ($(FREETYPE_LIBRARY_PATH),)
   12     include $(SDL_TTF_LOCAL_PATH)/$(FREETYPE_LIBRARY_PATH)/Android.mk
   13 endif
   14 
   15 # Build the library
   16 ifeq ($(SUPPORT_HARFBUZZ),true)
   17     include $(SDL_TTF_LOCAL_PATH)/$(HARFBUZZ_LIBRARY_PATH)/Android.mk
   18 endif
   19 
   20 # Restore local path
   21 LOCAL_PATH := $(SDL_TTF_LOCAL_PATH)
   22 include $(CLEAR_VARS)
   23 
   24 LOCAL_MODULE := SDL2_ttf
   25 
   26 LOCAL_C_INCLUDES := $(LOCAL_PATH)
   27 
   28 LOCAL_SRC_FILES := SDL_ttf.c.neon
   29 
   30 LOCAL_CFLAGS += -O2
   31 
   32 ifneq ($(FREETYPE_LIBRARY_PATH),)
   33     LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(FREETYPE_LIBRARY_PATH)/include
   34     LOCAL_STATIC_LIBRARIES += freetype
   35 endif
   36 
   37 ifeq ($(SUPPORT_HARFBUZZ),true)
   38     LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(HARFBUZZ_LIBRARY_PATH)/src
   39     LOCAL_CFLAGS += -DTTF_USE_HARFBUZZ
   40     LOCAL_STATIC_LIBRARIES += harfbuzz
   41 endif
   42 
   43 LOCAL_SHARED_LIBRARIES := SDL2
   44 
   45 LOCAL_EXPORT_C_INCLUDES += $(LOCAL_C_INCLUDES)
   46 
   47 include $(BUILD_SHARED_LIBRARY)
   48 
   49 ###########################
   50 #
   51 # SDL2_ttf static library
   52 #
   53 ###########################
   54 
   55 LOCAL_MODULE := SDL2_ttf_static
   56 
   57 LOCAL_MODULE_FILENAME := libSDL2_ttf
   58 
   59 LOCAL_LDLIBS :=
   60 LOCAL_EXPORT_LDLIBS :=
   61 
   62 include $(BUILD_STATIC_LIBRARY)
   63