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