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_TAGS := optional
      9 gyp_intermediate_dir := $(call local-intermediates-dir)
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES := \
     14 	$(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \
     15 	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a
     16 
     17 GYP_GENERATED_OUTPUTS :=
     18 
     19 # Make sure our deps and generated files are built first.
     20 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     21 
     22 LOCAL_CPP_EXTENSION := .cc
     23 LOCAL_GENERATED_SOURCES :=
     24 
     25 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     26 
     27 LOCAL_SRC_FILES := \
     28 	ui/snapshot/snapshot_android.cc
     29 
     30 
     31 # Flags passed to both C and C++ files.
     32 MY_CFLAGS_Debug := \
     33 	-fstack-protector \
     34 	--param=ssp-buffer-size=4 \
     35 	-Werror \
     36 	-fno-exceptions \
     37 	-fno-strict-aliasing \
     38 	-Wall \
     39 	-Wno-unused-parameter \
     40 	-Wno-missing-field-initializers \
     41 	-fvisibility=hidden \
     42 	-pipe \
     43 	-fPIC \
     44 	-fno-tree-sra \
     45 	-fuse-ld=gold \
     46 	-Wno-psabi \
     47 	-ffunction-sections \
     48 	-funwind-tables \
     49 	-g \
     50 	-fstack-protector \
     51 	-fno-short-enums \
     52 	-finline-limit=64 \
     53 	-Wa,--noexecstack \
     54 	-U_FORTIFY_SOURCE \
     55 	-Wno-extra \
     56 	-Wno-ignored-qualifiers \
     57 	-Wno-type-limits \
     58 	-Os \
     59 	-g \
     60 	-fomit-frame-pointer \
     61 	-fdata-sections \
     62 	-ffunction-sections
     63 
     64 MY_DEFS_Debug := \
     65 	'-DV8_DEPRECATION_WARNINGS' \
     66 	'-D_FILE_OFFSET_BITS=64' \
     67 	'-DNO_TCMALLOC' \
     68 	'-DDISABLE_NACL' \
     69 	'-DCHROMIUM_BUILD' \
     70 	'-DUSE_LIBJPEG_TURBO=1' \
     71 	'-DUSE_PROPRIETARY_CODECS' \
     72 	'-DENABLE_CONFIGURATION_POLICY' \
     73 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     74 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     75 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     76 	'-DUSE_OPENSSL=1' \
     77 	'-DENABLE_EGLIMAGE=1' \
     78 	'-DCLD_VERSION=1' \
     79 	'-DENABLE_PRINTING=1' \
     80 	'-DENABLE_MANAGED_USERS=1' \
     81 	'-DSNAPSHOT_IMPLEMENTATION' \
     82 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
     83 	'-DU_USING_ICU_NAMESPACE=0' \
     84 	'-DPOSIX_AVOID_MMAP' \
     85 	'-D__STDC_CONSTANT_MACROS' \
     86 	'-D__STDC_FORMAT_MACROS' \
     87 	'-DANDROID' \
     88 	'-D__GNU_SOURCE=1' \
     89 	'-DUSE_STLPORT=1' \
     90 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     91 	'-DCHROME_BUILD_ID=""' \
     92 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     93 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     94 	'-D_DEBUG'
     95 
     96 
     97 # Include paths placed before CFLAGS/CPPFLAGS
     98 LOCAL_C_INCLUDES_Debug := \
     99 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    100 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    101 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    102 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    103 	$(LOCAL_PATH)/ui \
    104 	$(LOCAL_PATH) \
    105 	$(LOCAL_PATH)/skia/config \
    106 	$(PWD)/external/skia/include \
    107 	$(PWD)/external/skia/include/core \
    108 	$(LOCAL_PATH)/third_party/skia/src/core \
    109 	$(LOCAL_PATH)/skia/ext \
    110 	$(PWD)/external/icu4c/common \
    111 	$(PWD)/external/icu4c/i18n \
    112 	$(PWD)/frameworks/wilhelm/include \
    113 	$(PWD)/bionic \
    114 	$(PWD)/external/stlport/stlport
    115 
    116 
    117 # Flags passed to only C++ (and not C) files.
    118 LOCAL_CPPFLAGS_Debug := \
    119 	-fno-rtti \
    120 	-fno-threadsafe-statics \
    121 	-fvisibility-inlines-hidden \
    122 	-Wsign-compare \
    123 	-Wno-abi \
    124 	-Wno-error=c++0x-compat \
    125 	-Wno-non-virtual-dtor \
    126 	-Wno-sign-promo
    127 
    128 
    129 # Flags passed to both C and C++ files.
    130 MY_CFLAGS_Release := \
    131 	-fstack-protector \
    132 	--param=ssp-buffer-size=4 \
    133 	-Werror \
    134 	-fno-exceptions \
    135 	-fno-strict-aliasing \
    136 	-Wall \
    137 	-Wno-unused-parameter \
    138 	-Wno-missing-field-initializers \
    139 	-fvisibility=hidden \
    140 	-pipe \
    141 	-fPIC \
    142 	-fno-tree-sra \
    143 	-fuse-ld=gold \
    144 	-Wno-psabi \
    145 	-ffunction-sections \
    146 	-funwind-tables \
    147 	-g \
    148 	-fstack-protector \
    149 	-fno-short-enums \
    150 	-finline-limit=64 \
    151 	-Wa,--noexecstack \
    152 	-U_FORTIFY_SOURCE \
    153 	-Wno-extra \
    154 	-Wno-ignored-qualifiers \
    155 	-Wno-type-limits \
    156 	-Os \
    157 	-fno-ident \
    158 	-fdata-sections \
    159 	-ffunction-sections \
    160 	-fomit-frame-pointer
    161 
    162 MY_DEFS_Release := \
    163 	'-DV8_DEPRECATION_WARNINGS' \
    164 	'-D_FILE_OFFSET_BITS=64' \
    165 	'-DNO_TCMALLOC' \
    166 	'-DDISABLE_NACL' \
    167 	'-DCHROMIUM_BUILD' \
    168 	'-DUSE_LIBJPEG_TURBO=1' \
    169 	'-DUSE_PROPRIETARY_CODECS' \
    170 	'-DENABLE_CONFIGURATION_POLICY' \
    171 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    172 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    173 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    174 	'-DUSE_OPENSSL=1' \
    175 	'-DENABLE_EGLIMAGE=1' \
    176 	'-DCLD_VERSION=1' \
    177 	'-DENABLE_PRINTING=1' \
    178 	'-DENABLE_MANAGED_USERS=1' \
    179 	'-DSNAPSHOT_IMPLEMENTATION' \
    180 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    181 	'-DU_USING_ICU_NAMESPACE=0' \
    182 	'-DPOSIX_AVOID_MMAP' \
    183 	'-D__STDC_CONSTANT_MACROS' \
    184 	'-D__STDC_FORMAT_MACROS' \
    185 	'-DANDROID' \
    186 	'-D__GNU_SOURCE=1' \
    187 	'-DUSE_STLPORT=1' \
    188 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    189 	'-DCHROME_BUILD_ID=""' \
    190 	'-DNDEBUG' \
    191 	'-DNVALGRIND' \
    192 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    193 	'-D_FORTIFY_SOURCE=2'
    194 
    195 
    196 # Include paths placed before CFLAGS/CPPFLAGS
    197 LOCAL_C_INCLUDES_Release := \
    198 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    199 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    200 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    201 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    202 	$(LOCAL_PATH)/ui \
    203 	$(LOCAL_PATH) \
    204 	$(LOCAL_PATH)/skia/config \
    205 	$(PWD)/external/skia/include \
    206 	$(PWD)/external/skia/include/core \
    207 	$(LOCAL_PATH)/third_party/skia/src/core \
    208 	$(LOCAL_PATH)/skia/ext \
    209 	$(PWD)/external/icu4c/common \
    210 	$(PWD)/external/icu4c/i18n \
    211 	$(PWD)/frameworks/wilhelm/include \
    212 	$(PWD)/bionic \
    213 	$(PWD)/external/stlport/stlport
    214 
    215 
    216 # Flags passed to only C++ (and not C) files.
    217 LOCAL_CPPFLAGS_Release := \
    218 	-fno-rtti \
    219 	-fno-threadsafe-statics \
    220 	-fvisibility-inlines-hidden \
    221 	-Wsign-compare \
    222 	-Wno-abi \
    223 	-Wno-error=c++0x-compat \
    224 	-Wno-non-virtual-dtor \
    225 	-Wno-sign-promo
    226 
    227 
    228 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    229 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    230 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    231 ### Rules for final target.
    232 
    233 LOCAL_LDFLAGS_Debug := \
    234 	-Wl,-z,now \
    235 	-Wl,-z,relro \
    236 	-Wl,-z,noexecstack \
    237 	-fPIC \
    238 	-Wl,-z,relro \
    239 	-Wl,-z,now \
    240 	-fuse-ld=gold \
    241 	-nostdlib \
    242 	-Wl,--no-undefined \
    243 	-Wl,--exclude-libs=ALL \
    244 	-Wl,--icf=safe \
    245 	-Wl,--fatal-warnings \
    246 	-Wl,--gc-sections \
    247 	-Wl,--warn-shared-textrel \
    248 	-Wl,-O1 \
    249 	-Wl,--as-needed
    250 
    251 
    252 LOCAL_LDFLAGS_Release := \
    253 	-Wl,-z,now \
    254 	-Wl,-z,relro \
    255 	-Wl,-z,noexecstack \
    256 	-fPIC \
    257 	-Wl,-z,relro \
    258 	-Wl,-z,now \
    259 	-fuse-ld=gold \
    260 	-nostdlib \
    261 	-Wl,--no-undefined \
    262 	-Wl,--exclude-libs=ALL \
    263 	-Wl,--icf=safe \
    264 	-Wl,-O1 \
    265 	-Wl,--as-needed \
    266 	-Wl,--gc-sections \
    267 	-Wl,--fatal-warnings \
    268 	-Wl,--warn-shared-textrel
    269 
    270 
    271 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    272 
    273 LOCAL_STATIC_LIBRARIES := \
    274 	ui_ui_gyp
    275 
    276 # Enable grouping to fix circular references
    277 LOCAL_GROUP_STATIC_LIBRARIES := true
    278 
    279 LOCAL_SHARED_LIBRARIES := \
    280 	libskia \
    281 	libstlport \
    282 	libdl
    283 
    284 # Add target alias to "gyp_all_modules" target.
    285 .PHONY: gyp_all_modules
    286 gyp_all_modules: ui_snapshot_snapshot_gyp
    287 
    288 # Alias gyp target name.
    289 .PHONY: snapshot
    290 snapshot: ui_snapshot_snapshot_gyp
    291 
    292 include $(BUILD_STATIC_LIBRARY)
    293