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