Home | History | Annotate | Download | only in expectations
      1 
      2 ###############################################################################
      3 #
      4 # THIS FILE IS AUTOGENERATED BY GYP_TO_ANDROID.PY. DO NOT EDIT.
      5 #
      6 # For bugs, please contact scroggo (a] google.com or djsollen (a] google.com
      7 #
      8 ###############################################################################
      9 
     10 BASE_PATH := $(call my-dir)
     11 LOCAL_PATH:= $(call my-dir)
     12 
     13 ###############################################################################
     14 #
     15 # PROBLEMS WITH SKIA DEBUGGING?? READ THIS...
     16 #
     17 # The debug build results in changes to the Skia headers. This means that those
     18 # using libskia must also be built with the debug version of the Skia headers.
     19 # There are a few scenarios where this comes into play:
     20 #
     21 # (1) You're building debug code that depends on libskia.
     22 #   (a) If libskia is built in release, then define SK_RELEASE when building
     23 #       your sources.
     24 #   (b) If libskia is built with debugging (see step 2), then no changes are
     25 #       needed since your sources and libskia have been built with SK_DEBUG.
     26 # (2) You're building libskia in debug mode.
     27 #   (a) RECOMMENDED: You can build the entire system in debug mode. Do this by
     28 #       updating your build/core/config.mk to include -DSK_DEBUG on the line
     29 #       that defines COMMON_GLOBAL_CFLAGS
     30 #   (b) You can update all the users of libskia to define SK_DEBUG when they are
     31 #       building their sources.
     32 #
     33 # NOTE: If neither SK_DEBUG or SK_RELEASE are defined then Skia checks NDEBUG to
     34 #       determine which build type to use.
     35 ###############################################################################
     36 
     37 ###############################################################################
     38 # STATIC LIBRARY
     39 #
     40 # This target is only to be used internally for only one of two purposes...
     41 #  (1) statically linking into testing frameworks
     42 #  (2) as an inclusion target for the libskia.so shared library
     43 ###############################################################################
     44 
     45 include $(CLEAR_VARS)
     46 LOCAL_FDO_SUPPORT := true
     47 ifneq ($(strip $(TARGET_FDO_CFLAGS)),)
     48 	# This should be the last -Oxxx specified in LOCAL_CFLAGS
     49 	LOCAL_CFLAGS += -O2
     50 endif
     51 
     52 LOCAL_ARM_MODE := thumb
     53 # used for testing
     54 #LOCAL_CFLAGS += -g -O0
     55 
     56 LOCAL_CFLAGS += \
     57 	local_cflags
     58 
     59 LOCAL_CPPFLAGS := \
     60 	local_cppflags
     61 
     62 LOCAL_SRC_FILES := \
     63 	local_src_files
     64 
     65 LOCAL_SHARED_LIBRARIES := \
     66 	local_shared_libraries
     67 
     68 LOCAL_STATIC_LIBRARIES := \
     69 	local_static_libraries
     70 
     71 LOCAL_C_INCLUDES := \
     72 	local_c_includes
     73 
     74 LOCAL_EXPORT_C_INCLUDE_DIRS := \
     75 	local_export_c_include_dirs
     76 
     77 LOCAL_CFLAGS += \
     78 	-Ddefines
     79 
     80 LOCAL_MODULE_TAGS := \
     81 	local_module_tags
     82 
     83 LOCAL_MODULE := \
     84 	local_module_static
     85 
     86 ifeq ($(COND), true)
     87 LOCAL_CFLAGS_foo += \
     88 	local_cflags_foo
     89 
     90 LOCAL_CPPFLAGS_foo += \
     91 	local_cppflags_foo
     92 
     93 LOCAL_SRC_FILES_foo += \
     94 	local_src_files_foo
     95 
     96 LOCAL_SHARED_LIBRARIES_foo += \
     97 	local_shared_libraries_foo
     98 
     99 LOCAL_STATIC_LIBRARIES_foo += \
    100 	local_static_libraries_foo
    101 
    102 LOCAL_C_INCLUDES_foo += \
    103 	local_c_includes_foo
    104 
    105 LOCAL_EXPORT_C_INCLUDE_DIRS_foo += \
    106 	local_export_c_include_dirs_foo
    107 
    108 LOCAL_CFLAGS_foo += \
    109 	-Ddefines_foo
    110 
    111 LOCAL_MODULE_TAGS_foo += \
    112 	local_module_tags_foo
    113 
    114 LOCAL_MODULE_foo += \
    115 	local_module_foo
    116 
    117 endif
    118 
    119 LOCAL_CFLAGS_bar += \
    120 	local_cflags_bar
    121 
    122 LOCAL_CPPFLAGS_bar += \
    123 	local_cppflags_bar
    124 
    125 LOCAL_SRC_FILES_bar += \
    126 	local_src_files_bar
    127 
    128 LOCAL_SHARED_LIBRARIES_bar += \
    129 	local_shared_libraries_bar
    130 
    131 LOCAL_STATIC_LIBRARIES_bar += \
    132 	local_static_libraries_bar
    133 
    134 LOCAL_C_INCLUDES_bar += \
    135 	local_c_includes_bar
    136 
    137 LOCAL_EXPORT_C_INCLUDE_DIRS_bar += \
    138 	local_export_c_include_dirs_bar
    139 
    140 LOCAL_CFLAGS_bar += \
    141 	-Ddefines_bar
    142 
    143 LOCAL_MODULE_TAGS_bar += \
    144 	local_module_tags_bar
    145 
    146 LOCAL_MODULE_bar += \
    147 	local_module_bar
    148 
    149 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
    150 include $(BUILD_STATIC_LIBRARY)
    151 
    152 
    153 ###############################################################################
    154 # SHARED LIBRARY
    155 ###############################################################################
    156 
    157 include $(CLEAR_VARS)
    158 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
    159 LOCAL_MODULE := local_module
    160 LOCAL_WHOLE_STATIC_LIBRARIES := local_module_static
    161 LOCAL_EXPORT_C_INCLUDE_DIRS := \
    162 	local_export_c_include_dirs
    163 
    164 include $(BASE_PATH)/skia_static_deps.mk
    165 include $(BUILD_SHARED_LIBRARY)
    166 
    167 #############################################################
    168 # Build the skia tools
    169 #
    170 
    171 # benchmark (timings)
    172 include $(BASE_PATH)/bench/Android.mk
    173 
    174 # diamond-master (one test to rule them all)
    175 include $(BASE_PATH)/dm/Android.mk
    176