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