Home | History | Annotate | Download | only in skia
      1 # This file is generated by gyp; do not edit.
      2 
      3 include $(CLEAR_VARS)
      4 
      5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
      6 LOCAL_MODULE := skia_skia_opts_ssse3_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
      9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES :=
     14 
     15 GYP_GENERATED_OUTPUTS :=
     16 
     17 # Make sure our deps and generated files are built first.
     18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     19 
     20 LOCAL_GENERATED_SOURCES :=
     21 
     22 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     23 
     24 LOCAL_SRC_FILES := \
     25 	third_party/skia/src/opts/SkBitmapProcState_opts_SSSE3.cpp
     26 
     27 
     28 # Flags passed to both C and C++ files.
     29 MY_CFLAGS_Debug := \
     30 	-fstack-protector \
     31 	--param=ssp-buffer-size=4 \
     32 	-fno-strict-aliasing \
     33 	-Wno-unused-parameter \
     34 	-Wno-missing-field-initializers \
     35 	-fvisibility=hidden \
     36 	-pipe \
     37 	-fPIC \
     38 	-Wno-unused-local-typedefs \
     39 	-mssse3 \
     40 	-Wno-format \
     41 	-m64 \
     42 	-march=x86-64 \
     43 	-ffunction-sections \
     44 	-funwind-tables \
     45 	-g \
     46 	-fstack-protector \
     47 	-fno-short-enums \
     48 	-finline-limit=64 \
     49 	-Wa,--noexecstack \
     50 	-U_FORTIFY_SOURCE \
     51 	-Wno-extra \
     52 	-Wno-ignored-qualifiers \
     53 	-Wno-type-limits \
     54 	-Wno-unused-but-set-variable \
     55 	-Wno-address \
     56 	-Wno-format-security \
     57 	-Wno-return-type \
     58 	-Wno-sequence-point \
     59 	-Os \
     60 	-g \
     61 	-gdwarf-4 \
     62 	-fdata-sections \
     63 	-ffunction-sections \
     64 	-fomit-frame-pointer \
     65 	-funwind-tables
     66 
     67 MY_DEFS_Debug := \
     68 	'-DV8_DEPRECATION_WARNINGS' \
     69 	'-D_FILE_OFFSET_BITS=64' \
     70 	'-DNO_TCMALLOC' \
     71 	'-DDISABLE_NACL' \
     72 	'-DCHROMIUM_BUILD' \
     73 	'-DUSE_LIBJPEG_TURBO=1' \
     74 	'-DENABLE_WEBRTC=1' \
     75 	'-DUSE_PROPRIETARY_CODECS' \
     76 	'-DENABLE_BROWSER_CDMS' \
     77 	'-DENABLE_CONFIGURATION_POLICY' \
     78 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     79 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     80 	'-DENABLE_EGLIMAGE=1' \
     81 	'-DCLD_VERSION=1' \
     82 	'-DENABLE_PRINTING=1' \
     83 	'-DENABLE_MANAGED_USERS=1' \
     84 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     85 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     86 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     87 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     88 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     89 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     90 	'-DVIDEO_HOLE=1' \
     91 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     92 	'-DSK_ENABLE_INST_COUNT=0' \
     93 	'-DSK_SUPPORT_GPU=1' \
     94 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
     95 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
     96 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
     97 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
     98 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
     99 	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
    100 	'-DSK_BUILD_FOR_ANDROID' \
    101 	'-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0' \
    102 	'-DSK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION' \
    103 	'-DIGNORE_ROT_AA_RECT_OPT' \
    104 	'-DSK_IGNORE_BLURRED_RRECT_OPT' \
    105 	'-DSK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' \
    106 	'-DSK_DEFAULT_FONT_CACHE_LIMIT=(1*1024*1024)' \
    107 	'-DSK_USE_DISCARDABLE_SCALEDIMAGECACHE' \
    108 	'-DSK_GAMMA_APPLY_TO_A8' \
    109 	'-DSK_GAMMA_EXPONENT=1.4' \
    110 	'-DSK_GAMMA_CONTRAST=0.0' \
    111 	'-DSK_USE_POSIX_THREADS' \
    112 	'-DUSE_OPENSSL=1' \
    113 	'-DUSE_OPENSSL_CERTS=1' \
    114 	'-DANDROID' \
    115 	'-D__GNU_SOURCE=1' \
    116 	'-DUSE_STLPORT=1' \
    117 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    118 	'-DCHROME_BUILD_ID=""' \
    119 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    120 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    121 	'-D_DEBUG'
    122 
    123 
    124 # Include paths placed before CFLAGS/CPPFLAGS
    125 LOCAL_C_INCLUDES_Debug := \
    126 	$(gyp_shared_intermediate_dir) \
    127 	$(LOCAL_PATH)/third_party/skia/include/core \
    128 	$(LOCAL_PATH)/third_party/skia/include/effects \
    129 	$(LOCAL_PATH)/third_party/skia/src/core \
    130 	$(LOCAL_PATH) \
    131 	$(LOCAL_PATH)/skia/config \
    132 	$(PWD)/frameworks/wilhelm/include \
    133 	$(PWD)/bionic \
    134 	$(PWD)/external/stlport/stlport
    135 
    136 
    137 # Flags passed to only C++ (and not C) files.
    138 LOCAL_CPPFLAGS_Debug := \
    139 	-fno-exceptions \
    140 	-fno-rtti \
    141 	-fno-threadsafe-statics \
    142 	-fvisibility-inlines-hidden \
    143 	-Wno-deprecated \
    144 	-std=gnu++11 \
    145 	-Wno-narrowing \
    146 	-Wno-literal-suffix \
    147 	-Wno-non-virtual-dtor \
    148 	-Wno-sign-promo \
    149 	-Wno-non-virtual-dtor
    150 
    151 
    152 # Flags passed to both C and C++ files.
    153 MY_CFLAGS_Release := \
    154 	-fstack-protector \
    155 	--param=ssp-buffer-size=4 \
    156 	-fno-strict-aliasing \
    157 	-Wno-unused-parameter \
    158 	-Wno-missing-field-initializers \
    159 	-fvisibility=hidden \
    160 	-pipe \
    161 	-fPIC \
    162 	-Wno-unused-local-typedefs \
    163 	-mssse3 \
    164 	-Wno-format \
    165 	-m64 \
    166 	-march=x86-64 \
    167 	-ffunction-sections \
    168 	-funwind-tables \
    169 	-g \
    170 	-fstack-protector \
    171 	-fno-short-enums \
    172 	-finline-limit=64 \
    173 	-Wa,--noexecstack \
    174 	-U_FORTIFY_SOURCE \
    175 	-Wno-extra \
    176 	-Wno-ignored-qualifiers \
    177 	-Wno-type-limits \
    178 	-Wno-unused-but-set-variable \
    179 	-Wno-address \
    180 	-Wno-format-security \
    181 	-Wno-return-type \
    182 	-Wno-sequence-point \
    183 	-fno-ident \
    184 	-fdata-sections \
    185 	-ffunction-sections \
    186 	-fomit-frame-pointer \
    187 	-funwind-tables \
    188 	-O2
    189 
    190 MY_DEFS_Release := \
    191 	'-DV8_DEPRECATION_WARNINGS' \
    192 	'-D_FILE_OFFSET_BITS=64' \
    193 	'-DNO_TCMALLOC' \
    194 	'-DDISABLE_NACL' \
    195 	'-DCHROMIUM_BUILD' \
    196 	'-DUSE_LIBJPEG_TURBO=1' \
    197 	'-DENABLE_WEBRTC=1' \
    198 	'-DUSE_PROPRIETARY_CODECS' \
    199 	'-DENABLE_BROWSER_CDMS' \
    200 	'-DENABLE_CONFIGURATION_POLICY' \
    201 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    202 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    203 	'-DENABLE_EGLIMAGE=1' \
    204 	'-DCLD_VERSION=1' \
    205 	'-DENABLE_PRINTING=1' \
    206 	'-DENABLE_MANAGED_USERS=1' \
    207 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    208 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    209 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    210 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    211 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    212 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    213 	'-DVIDEO_HOLE=1' \
    214 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    215 	'-DSK_ENABLE_INST_COUNT=0' \
    216 	'-DSK_SUPPORT_GPU=1' \
    217 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    218 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    219 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    220 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    221 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    222 	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
    223 	'-DSK_BUILD_FOR_ANDROID' \
    224 	'-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0' \
    225 	'-DSK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION' \
    226 	'-DIGNORE_ROT_AA_RECT_OPT' \
    227 	'-DSK_IGNORE_BLURRED_RRECT_OPT' \
    228 	'-DSK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' \
    229 	'-DSK_DEFAULT_FONT_CACHE_LIMIT=(1*1024*1024)' \
    230 	'-DSK_USE_DISCARDABLE_SCALEDIMAGECACHE' \
    231 	'-DSK_GAMMA_APPLY_TO_A8' \
    232 	'-DSK_GAMMA_EXPONENT=1.4' \
    233 	'-DSK_GAMMA_CONTRAST=0.0' \
    234 	'-DSK_USE_POSIX_THREADS' \
    235 	'-DUSE_OPENSSL=1' \
    236 	'-DUSE_OPENSSL_CERTS=1' \
    237 	'-DANDROID' \
    238 	'-D__GNU_SOURCE=1' \
    239 	'-DUSE_STLPORT=1' \
    240 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    241 	'-DCHROME_BUILD_ID=""' \
    242 	'-DNDEBUG' \
    243 	'-DNVALGRIND' \
    244 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    245 
    246 
    247 # Include paths placed before CFLAGS/CPPFLAGS
    248 LOCAL_C_INCLUDES_Release := \
    249 	$(gyp_shared_intermediate_dir) \
    250 	$(LOCAL_PATH)/third_party/skia/include/core \
    251 	$(LOCAL_PATH)/third_party/skia/include/effects \
    252 	$(LOCAL_PATH)/third_party/skia/src/core \
    253 	$(LOCAL_PATH) \
    254 	$(LOCAL_PATH)/skia/config \
    255 	$(PWD)/frameworks/wilhelm/include \
    256 	$(PWD)/bionic \
    257 	$(PWD)/external/stlport/stlport
    258 
    259 
    260 # Flags passed to only C++ (and not C) files.
    261 LOCAL_CPPFLAGS_Release := \
    262 	-fno-exceptions \
    263 	-fno-rtti \
    264 	-fno-threadsafe-statics \
    265 	-fvisibility-inlines-hidden \
    266 	-Wno-deprecated \
    267 	-std=gnu++11 \
    268 	-Wno-narrowing \
    269 	-Wno-literal-suffix \
    270 	-Wno-non-virtual-dtor \
    271 	-Wno-sign-promo \
    272 	-Wno-non-virtual-dtor
    273 
    274 
    275 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    276 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    277 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    278 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    279 ### Rules for final target.
    280 
    281 LOCAL_SHARED_LIBRARIES := \
    282 	libstlport \
    283 	libdl
    284 
    285 ### Set directly by aosp_build_settings.
    286 LOCAL_FDO_SUPPORT := true
    287 
    288 # Add target alias to "gyp_all_modules" target.
    289 .PHONY: gyp_all_modules
    290 gyp_all_modules: skia_skia_opts_ssse3_gyp
    291 
    292 # Alias gyp target name.
    293 .PHONY: skia_opts_ssse3
    294 skia_opts_ssse3: skia_skia_opts_ssse3_gyp
    295 
    296 include $(BUILD_STATIC_LIBRARY)
    297