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_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_arm.cpp \
     26 	third_party/skia/src/opts/memset.arm.S \
     27 	third_party/skia/src/opts/SkBlitMask_opts_arm.cpp \
     28 	third_party/skia/src/opts/SkBlitRow_opts_arm.cpp \
     29 	third_party/skia/src/opts/SkBlurImage_opts_arm.cpp \
     30 	third_party/skia/src/opts/SkMorphology_opts_arm.cpp \
     31 	third_party/skia/src/opts/SkTextureCompression_opts_arm.cpp \
     32 	third_party/skia/src/opts/SkUtils_opts_arm.cpp \
     33 	third_party/skia/src/opts/SkXfermode_opts_none.cpp
     34 
     35 
     36 # Flags passed to both C and C++ files.
     37 MY_CFLAGS_Debug := \
     38 	-fstack-protector \
     39 	--param=ssp-buffer-size=4 \
     40 	-fno-strict-aliasing \
     41 	-Wno-unused-parameter \
     42 	-Wno-missing-field-initializers \
     43 	-fvisibility=hidden \
     44 	-pipe \
     45 	-fPIC \
     46 	-Wno-unused-local-typedefs \
     47 	-fomit-frame-pointer \
     48 	-Wno-format \
     49 	-fno-tree-sra \
     50 	-fno-caller-saves \
     51 	-Wno-psabi \
     52 	-fno-partial-inlining \
     53 	-fno-early-inlining \
     54 	-fno-tree-copy-prop \
     55 	-fno-tree-loop-optimize \
     56 	-fno-move-loop-invariants \
     57 	-ffunction-sections \
     58 	-funwind-tables \
     59 	-g \
     60 	-fstack-protector \
     61 	-fno-short-enums \
     62 	-finline-limit=64 \
     63 	-Wa,--noexecstack \
     64 	-U_FORTIFY_SOURCE \
     65 	-Wno-extra \
     66 	-Wno-ignored-qualifiers \
     67 	-Wno-type-limits \
     68 	-Wno-unused-but-set-variable \
     69 	-Wno-address \
     70 	-Wno-format-security \
     71 	-Wno-return-type \
     72 	-Wno-sequence-point \
     73 	-Os \
     74 	-g \
     75 	-gdwarf-4 \
     76 	-fdata-sections \
     77 	-ffunction-sections \
     78 	-fomit-frame-pointer \
     79 	-funwind-tables
     80 
     81 MY_DEFS_Debug := \
     82 	'-DV8_DEPRECATION_WARNINGS' \
     83 	'-D_FILE_OFFSET_BITS=64' \
     84 	'-DNO_TCMALLOC' \
     85 	'-DDISABLE_NACL' \
     86 	'-DCHROMIUM_BUILD' \
     87 	'-DUSE_LIBJPEG_TURBO=1' \
     88 	'-DENABLE_WEBRTC=1' \
     89 	'-DUSE_PROPRIETARY_CODECS' \
     90 	'-DENABLE_BROWSER_CDMS' \
     91 	'-DENABLE_CONFIGURATION_POLICY' \
     92 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     93 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     94 	'-DENABLE_EGLIMAGE=1' \
     95 	'-DCLD_VERSION=1' \
     96 	'-DENABLE_PRINTING=1' \
     97 	'-DENABLE_MANAGED_USERS=1' \
     98 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     99 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    100 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    101 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    102 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    103 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    104 	'-DVIDEO_HOLE=1' \
    105 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    106 	'-DSK_ENABLE_INST_COUNT=0' \
    107 	'-DSK_SUPPORT_GPU=1' \
    108 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    109 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    110 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    111 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    112 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    113 	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
    114 	'-DSK_BUILD_FOR_ANDROID' \
    115 	'-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0' \
    116 	'-DSK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION' \
    117 	'-DIGNORE_ROT_AA_RECT_OPT' \
    118 	'-DSK_IGNORE_BLURRED_RRECT_OPT' \
    119 	'-DSK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' \
    120 	'-DSK_DEFAULT_FONT_CACHE_LIMIT=(1*1024*1024)' \
    121 	'-DSK_USE_DISCARDABLE_SCALEDIMAGECACHE' \
    122 	'-DSK_GAMMA_APPLY_TO_A8' \
    123 	'-DSK_GAMMA_EXPONENT=1.4' \
    124 	'-DSK_GAMMA_CONTRAST=0.0' \
    125 	'-DSK_USE_POSIX_THREADS' \
    126 	'-DSK_ARM_HAS_OPTIONAL_NEON' \
    127 	'-DUSE_OPENSSL=1' \
    128 	'-DUSE_OPENSSL_CERTS=1' \
    129 	'-DANDROID' \
    130 	'-D__GNU_SOURCE=1' \
    131 	'-DUSE_STLPORT=1' \
    132 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    133 	'-DCHROME_BUILD_ID=""' \
    134 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    135 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    136 	'-D_DEBUG'
    137 
    138 
    139 # Include paths placed before CFLAGS/CPPFLAGS
    140 LOCAL_C_INCLUDES_Debug := \
    141 	$(gyp_shared_intermediate_dir) \
    142 	$(LOCAL_PATH)/third_party/skia/include/core \
    143 	$(LOCAL_PATH)/third_party/skia/include/effects \
    144 	$(LOCAL_PATH)/third_party/skia/src/core \
    145 	$(LOCAL_PATH)/third_party/skia/src/opts \
    146 	$(LOCAL_PATH)/third_party/skia/src/utils \
    147 	$(LOCAL_PATH) \
    148 	$(LOCAL_PATH)/skia/config \
    149 	$(PWD)/frameworks/wilhelm/include \
    150 	$(PWD)/bionic \
    151 	$(PWD)/external/stlport/stlport
    152 
    153 
    154 # Flags passed to only C++ (and not C) files.
    155 LOCAL_CPPFLAGS_Debug := \
    156 	-fno-exceptions \
    157 	-fno-rtti \
    158 	-fno-threadsafe-statics \
    159 	-fvisibility-inlines-hidden \
    160 	-Wno-deprecated \
    161 	-Wno-abi \
    162 	-std=gnu++11 \
    163 	-Wno-narrowing \
    164 	-Wno-literal-suffix \
    165 	-Wno-non-virtual-dtor \
    166 	-Wno-sign-promo \
    167 	-Wno-non-virtual-dtor
    168 
    169 
    170 # Flags passed to both C and C++ files.
    171 MY_CFLAGS_Release := \
    172 	-fstack-protector \
    173 	--param=ssp-buffer-size=4 \
    174 	-fno-strict-aliasing \
    175 	-Wno-unused-parameter \
    176 	-Wno-missing-field-initializers \
    177 	-fvisibility=hidden \
    178 	-pipe \
    179 	-fPIC \
    180 	-Wno-unused-local-typedefs \
    181 	-fomit-frame-pointer \
    182 	-Wno-format \
    183 	-fno-tree-sra \
    184 	-fno-caller-saves \
    185 	-Wno-psabi \
    186 	-fno-partial-inlining \
    187 	-fno-early-inlining \
    188 	-fno-tree-copy-prop \
    189 	-fno-tree-loop-optimize \
    190 	-fno-move-loop-invariants \
    191 	-ffunction-sections \
    192 	-funwind-tables \
    193 	-g \
    194 	-fstack-protector \
    195 	-fno-short-enums \
    196 	-finline-limit=64 \
    197 	-Wa,--noexecstack \
    198 	-U_FORTIFY_SOURCE \
    199 	-Wno-extra \
    200 	-Wno-ignored-qualifiers \
    201 	-Wno-type-limits \
    202 	-Wno-unused-but-set-variable \
    203 	-Wno-address \
    204 	-Wno-format-security \
    205 	-Wno-return-type \
    206 	-Wno-sequence-point \
    207 	-fno-ident \
    208 	-fdata-sections \
    209 	-ffunction-sections \
    210 	-fomit-frame-pointer \
    211 	-funwind-tables \
    212 	-O2
    213 
    214 MY_DEFS_Release := \
    215 	'-DV8_DEPRECATION_WARNINGS' \
    216 	'-D_FILE_OFFSET_BITS=64' \
    217 	'-DNO_TCMALLOC' \
    218 	'-DDISABLE_NACL' \
    219 	'-DCHROMIUM_BUILD' \
    220 	'-DUSE_LIBJPEG_TURBO=1' \
    221 	'-DENABLE_WEBRTC=1' \
    222 	'-DUSE_PROPRIETARY_CODECS' \
    223 	'-DENABLE_BROWSER_CDMS' \
    224 	'-DENABLE_CONFIGURATION_POLICY' \
    225 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    226 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    227 	'-DENABLE_EGLIMAGE=1' \
    228 	'-DCLD_VERSION=1' \
    229 	'-DENABLE_PRINTING=1' \
    230 	'-DENABLE_MANAGED_USERS=1' \
    231 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    232 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    233 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    234 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    235 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    236 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    237 	'-DVIDEO_HOLE=1' \
    238 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    239 	'-DSK_ENABLE_INST_COUNT=0' \
    240 	'-DSK_SUPPORT_GPU=1' \
    241 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    242 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    243 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    244 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    245 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    246 	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
    247 	'-DSK_BUILD_FOR_ANDROID' \
    248 	'-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0' \
    249 	'-DSK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION' \
    250 	'-DIGNORE_ROT_AA_RECT_OPT' \
    251 	'-DSK_IGNORE_BLURRED_RRECT_OPT' \
    252 	'-DSK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS' \
    253 	'-DSK_DEFAULT_FONT_CACHE_LIMIT=(1*1024*1024)' \
    254 	'-DSK_USE_DISCARDABLE_SCALEDIMAGECACHE' \
    255 	'-DSK_GAMMA_APPLY_TO_A8' \
    256 	'-DSK_GAMMA_EXPONENT=1.4' \
    257 	'-DSK_GAMMA_CONTRAST=0.0' \
    258 	'-DSK_USE_POSIX_THREADS' \
    259 	'-DSK_ARM_HAS_OPTIONAL_NEON' \
    260 	'-DUSE_OPENSSL=1' \
    261 	'-DUSE_OPENSSL_CERTS=1' \
    262 	'-DANDROID' \
    263 	'-D__GNU_SOURCE=1' \
    264 	'-DUSE_STLPORT=1' \
    265 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    266 	'-DCHROME_BUILD_ID=""' \
    267 	'-DNDEBUG' \
    268 	'-DNVALGRIND' \
    269 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    270 
    271 
    272 # Include paths placed before CFLAGS/CPPFLAGS
    273 LOCAL_C_INCLUDES_Release := \
    274 	$(gyp_shared_intermediate_dir) \
    275 	$(LOCAL_PATH)/third_party/skia/include/core \
    276 	$(LOCAL_PATH)/third_party/skia/include/effects \
    277 	$(LOCAL_PATH)/third_party/skia/src/core \
    278 	$(LOCAL_PATH)/third_party/skia/src/opts \
    279 	$(LOCAL_PATH)/third_party/skia/src/utils \
    280 	$(LOCAL_PATH) \
    281 	$(LOCAL_PATH)/skia/config \
    282 	$(PWD)/frameworks/wilhelm/include \
    283 	$(PWD)/bionic \
    284 	$(PWD)/external/stlport/stlport
    285 
    286 
    287 # Flags passed to only C++ (and not C) files.
    288 LOCAL_CPPFLAGS_Release := \
    289 	-fno-exceptions \
    290 	-fno-rtti \
    291 	-fno-threadsafe-statics \
    292 	-fvisibility-inlines-hidden \
    293 	-Wno-deprecated \
    294 	-Wno-abi \
    295 	-std=gnu++11 \
    296 	-Wno-narrowing \
    297 	-Wno-literal-suffix \
    298 	-Wno-non-virtual-dtor \
    299 	-Wno-sign-promo \
    300 	-Wno-non-virtual-dtor
    301 
    302 
    303 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    304 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    305 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    306 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    307 ### Rules for final target.
    308 
    309 LOCAL_SHARED_LIBRARIES := \
    310 	libstlport \
    311 	libdl
    312 
    313 ### Set directly by aosp_build_settings.
    314 LOCAL_FDO_SUPPORT := true
    315 
    316 # Add target alias to "gyp_all_modules" target.
    317 .PHONY: gyp_all_modules
    318 gyp_all_modules: skia_skia_opts_gyp
    319 
    320 # Alias gyp target name.
    321 .PHONY: skia_opts
    322 skia_opts: skia_skia_opts_gyp
    323 
    324 include $(BUILD_STATIC_LIBRARY)
    325