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