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