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