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