Home | History | Annotate | Download | only in components
      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 := components_autofill_content_renderer_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,GYP,components_component_strings_gyp)/component_strings.stamp
     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 	components/autofill/content/renderer/autofill_agent.cc \
     29 	components/autofill/content/renderer/form_autofill_util.cc \
     30 	components/autofill/content/renderer/form_cache.cc \
     31 	components/autofill/content/renderer/page_click_tracker.cc \
     32 	components/autofill/content/renderer/password_autofill_agent.cc \
     33 	components/autofill/content/renderer/password_generation_manager.cc
     34 
     35 
     36 # Flags passed to both C and C++ files.
     37 MY_CFLAGS_Debug := \
     38 	--param=ssp-buffer-size=4 \
     39 	-Werror \
     40 	-fno-exceptions \
     41 	-fno-strict-aliasing \
     42 	-Wall \
     43 	-Wno-unused-parameter \
     44 	-Wno-missing-field-initializers \
     45 	-fvisibility=hidden \
     46 	-pipe \
     47 	-fPIC \
     48 	-m32 \
     49 	-mmmx \
     50 	-march=pentium4 \
     51 	-msse2 \
     52 	-mfpmath=sse \
     53 	-fuse-ld=gold \
     54 	-ffunction-sections \
     55 	-funwind-tables \
     56 	-g \
     57 	-fno-short-enums \
     58 	-finline-limit=64 \
     59 	-Wa,--noexecstack \
     60 	-U_FORTIFY_SOURCE \
     61 	-Wno-extra \
     62 	-Wno-ignored-qualifiers \
     63 	-Wno-type-limits \
     64 	-fno-stack-protector \
     65 	-Os \
     66 	-g \
     67 	-fomit-frame-pointer \
     68 	-fdata-sections \
     69 	-ffunction-sections
     70 
     71 MY_DEFS_Debug := \
     72 	'-DANGLE_DX11' \
     73 	'-D_FILE_OFFSET_BITS=64' \
     74 	'-DNO_TCMALLOC' \
     75 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     76 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     77 	'-DDISABLE_NACL' \
     78 	'-DCHROMIUM_BUILD' \
     79 	'-DUSE_LIBJPEG_TURBO=1' \
     80 	'-DUSE_PROPRIETARY_CODECS' \
     81 	'-DENABLE_CONFIGURATION_POLICY' \
     82 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
     83 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
     84 	'-DENABLE_GPU=1' \
     85 	'-DUSE_OPENSSL=1' \
     86 	'-DENABLE_EGLIMAGE=1' \
     87 	'-DENABLE_PRINTING=1' \
     88 	'-D__STDC_CONSTANT_MACROS' \
     89 	'-D__STDC_FORMAT_MACROS' \
     90 	'-DANDROID' \
     91 	'-D__GNU_SOURCE=1' \
     92 	'-DUSE_STLPORT=1' \
     93 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     94 	'-DCHROME_BUILD_ID=""' \
     95 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     96 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     97 	'-D_DEBUG'
     98 
     99 
    100 # Include paths placed before CFLAGS/CPPFLAGS
    101 LOCAL_C_INCLUDES_Debug := \
    102 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    103 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    104 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    105 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    106 	$(LOCAL_PATH) \
    107 	$(LOCAL_PATH)/third_party/khronos \
    108 	$(LOCAL_PATH)/gpu \
    109 	$(LOCAL_PATH)/third_party/skia/src/core \
    110 	$(LOCAL_PATH)/skia/ext \
    111 	$(gyp_shared_intermediate_dir)/components/strings \
    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-error=c++0x-compat \
    124 	-Wno-non-virtual-dtor \
    125 	-Wno-sign-promo
    126 
    127 
    128 # Flags passed to both C and C++ files.
    129 MY_CFLAGS_Release := \
    130 	--param=ssp-buffer-size=4 \
    131 	-Werror \
    132 	-fno-exceptions \
    133 	-fno-strict-aliasing \
    134 	-Wall \
    135 	-Wno-unused-parameter \
    136 	-Wno-missing-field-initializers \
    137 	-fvisibility=hidden \
    138 	-pipe \
    139 	-fPIC \
    140 	-m32 \
    141 	-mmmx \
    142 	-march=pentium4 \
    143 	-msse2 \
    144 	-mfpmath=sse \
    145 	-fuse-ld=gold \
    146 	-ffunction-sections \
    147 	-funwind-tables \
    148 	-g \
    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 	-fno-stack-protector \
    157 	-Os \
    158 	-fno-ident \
    159 	-fdata-sections \
    160 	-ffunction-sections \
    161 	-fomit-frame-pointer \
    162 	-fno-unwind-tables \
    163 	-fno-asynchronous-unwind-tables
    164 
    165 MY_DEFS_Release := \
    166 	'-DANGLE_DX11' \
    167 	'-D_FILE_OFFSET_BITS=64' \
    168 	'-DNO_TCMALLOC' \
    169 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    170 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    171 	'-DDISABLE_NACL' \
    172 	'-DCHROMIUM_BUILD' \
    173 	'-DUSE_LIBJPEG_TURBO=1' \
    174 	'-DUSE_PROPRIETARY_CODECS' \
    175 	'-DENABLE_CONFIGURATION_POLICY' \
    176 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    177 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    178 	'-DENABLE_GPU=1' \
    179 	'-DUSE_OPENSSL=1' \
    180 	'-DENABLE_EGLIMAGE=1' \
    181 	'-DENABLE_PRINTING=1' \
    182 	'-D__STDC_CONSTANT_MACROS' \
    183 	'-D__STDC_FORMAT_MACROS' \
    184 	'-DANDROID' \
    185 	'-D__GNU_SOURCE=1' \
    186 	'-DUSE_STLPORT=1' \
    187 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    188 	'-DCHROME_BUILD_ID=""' \
    189 	'-DNDEBUG' \
    190 	'-DNVALGRIND' \
    191 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    192 	'-D_FORTIFY_SOURCE=2'
    193 
    194 
    195 # Include paths placed before CFLAGS/CPPFLAGS
    196 LOCAL_C_INCLUDES_Release := \
    197 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    198 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    199 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    200 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    201 	$(LOCAL_PATH) \
    202 	$(LOCAL_PATH)/third_party/khronos \
    203 	$(LOCAL_PATH)/gpu \
    204 	$(LOCAL_PATH)/third_party/skia/src/core \
    205 	$(LOCAL_PATH)/skia/ext \
    206 	$(gyp_shared_intermediate_dir)/components/strings \
    207 	$(PWD)/frameworks/wilhelm/include \
    208 	$(PWD)/bionic \
    209 	$(PWD)/external/stlport/stlport
    210 
    211 
    212 # Flags passed to only C++ (and not C) files.
    213 LOCAL_CPPFLAGS_Release := \
    214 	-fno-rtti \
    215 	-fno-threadsafe-statics \
    216 	-fvisibility-inlines-hidden \
    217 	-Wsign-compare \
    218 	-Wno-error=c++0x-compat \
    219 	-Wno-non-virtual-dtor \
    220 	-Wno-sign-promo
    221 
    222 
    223 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    224 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    225 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    226 ### Rules for final target.
    227 
    228 LOCAL_LDFLAGS_Debug := \
    229 	-Wl,-z,now \
    230 	-Wl,-z,relro \
    231 	-Wl,-z,noexecstack \
    232 	-fPIC \
    233 	-m32 \
    234 	-fuse-ld=gold \
    235 	-nostdlib \
    236 	-Wl,--no-undefined \
    237 	-Wl,--exclude-libs=ALL \
    238 	-Wl,--fatal-warnings \
    239 	-Wl,--gc-sections \
    240 	-Wl,--warn-shared-textrel \
    241 	-Wl,-O1 \
    242 	-Wl,--as-needed
    243 
    244 
    245 LOCAL_LDFLAGS_Release := \
    246 	-Wl,-z,now \
    247 	-Wl,-z,relro \
    248 	-Wl,-z,noexecstack \
    249 	-fPIC \
    250 	-m32 \
    251 	-fuse-ld=gold \
    252 	-nostdlib \
    253 	-Wl,--no-undefined \
    254 	-Wl,--exclude-libs=ALL \
    255 	-Wl,-O1 \
    256 	-Wl,--as-needed \
    257 	-Wl,--gc-sections \
    258 	-Wl,--fatal-warnings \
    259 	-Wl,--warn-shared-textrel
    260 
    261 
    262 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    263 
    264 LOCAL_STATIC_LIBRARIES :=
    265 
    266 # Enable grouping to fix circular references
    267 LOCAL_GROUP_STATIC_LIBRARIES := true
    268 
    269 LOCAL_SHARED_LIBRARIES := \
    270 	libskia \
    271 	libstlport \
    272 	libdl
    273 
    274 # Add target alias to "gyp_all_modules" target.
    275 .PHONY: gyp_all_modules
    276 gyp_all_modules: components_autofill_content_renderer_gyp
    277 
    278 # Alias gyp target name.
    279 .PHONY: autofill_content_renderer
    280 autofill_content_renderer: components_autofill_content_renderer_gyp
    281 
    282 include $(BUILD_STATIC_LIBRARY)
    283