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