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