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