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_encryptor_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 components/webdata/encryptor/encryptor_posix.cc 27 28 29 # Flags passed to both C and C++ files. 30 MY_CFLAGS_Debug := \ 31 --param=ssp-buffer-size=4 \ 32 -Werror \ 33 -fno-exceptions \ 34 -fno-strict-aliasing \ 35 -Wall \ 36 -Wno-unused-parameter \ 37 -Wno-missing-field-initializers \ 38 -fvisibility=hidden \ 39 -pipe \ 40 -fPIC \ 41 -m32 \ 42 -mmmx \ 43 -march=pentium4 \ 44 -msse2 \ 45 -mfpmath=sse \ 46 -fuse-ld=gold \ 47 -ffunction-sections \ 48 -funwind-tables \ 49 -g \ 50 -fno-short-enums \ 51 -finline-limit=64 \ 52 -Wa,--noexecstack \ 53 -U_FORTIFY_SOURCE \ 54 -Wno-extra \ 55 -Wno-ignored-qualifiers \ 56 -Wno-type-limits \ 57 -fno-stack-protector \ 58 -Os \ 59 -g \ 60 -fomit-frame-pointer \ 61 -fdata-sections \ 62 -ffunction-sections 63 64 MY_DEFS_Debug := \ 65 '-DANGLE_DX11' \ 66 '-D_FILE_OFFSET_BITS=64' \ 67 '-DNO_TCMALLOC' \ 68 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 69 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 70 '-DDISABLE_NACL' \ 71 '-DCHROMIUM_BUILD' \ 72 '-DUSE_LIBJPEG_TURBO=1' \ 73 '-DUSE_PROPRIETARY_CODECS' \ 74 '-DENABLE_CONFIGURATION_POLICY' \ 75 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 76 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 77 '-DENABLE_GPU=1' \ 78 '-DUSE_OPENSSL=1' \ 79 '-DENABLE_EGLIMAGE=1' \ 80 '-DENABLE_PRINTING=1' \ 81 '-D__STDC_CONSTANT_MACROS' \ 82 '-D__STDC_FORMAT_MACROS' \ 83 '-DANDROID' \ 84 '-D__GNU_SOURCE=1' \ 85 '-DUSE_STLPORT=1' \ 86 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 87 '-DCHROME_BUILD_ID=""' \ 88 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 89 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 90 '-D_DEBUG' 91 92 93 # Include paths placed before CFLAGS/CPPFLAGS 94 LOCAL_C_INCLUDES_Debug := \ 95 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 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 -Wsign-compare \ 108 -Wno-error=c++0x-compat \ 109 -Wno-non-virtual-dtor \ 110 -Wno-sign-promo 111 112 113 # Flags passed to both C and C++ files. 114 MY_CFLAGS_Release := \ 115 --param=ssp-buffer-size=4 \ 116 -Werror \ 117 -fno-exceptions \ 118 -fno-strict-aliasing \ 119 -Wall \ 120 -Wno-unused-parameter \ 121 -Wno-missing-field-initializers \ 122 -fvisibility=hidden \ 123 -pipe \ 124 -fPIC \ 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 -Os \ 143 -fno-ident \ 144 -fdata-sections \ 145 -ffunction-sections \ 146 -fomit-frame-pointer \ 147 -fno-unwind-tables \ 148 -fno-asynchronous-unwind-tables 149 150 MY_DEFS_Release := \ 151 '-DANGLE_DX11' \ 152 '-D_FILE_OFFSET_BITS=64' \ 153 '-DNO_TCMALLOC' \ 154 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 155 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 156 '-DDISABLE_NACL' \ 157 '-DCHROMIUM_BUILD' \ 158 '-DUSE_LIBJPEG_TURBO=1' \ 159 '-DUSE_PROPRIETARY_CODECS' \ 160 '-DENABLE_CONFIGURATION_POLICY' \ 161 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 162 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 163 '-DENABLE_GPU=1' \ 164 '-DUSE_OPENSSL=1' \ 165 '-DENABLE_EGLIMAGE=1' \ 166 '-DENABLE_PRINTING=1' \ 167 '-D__STDC_CONSTANT_MACROS' \ 168 '-D__STDC_FORMAT_MACROS' \ 169 '-DANDROID' \ 170 '-D__GNU_SOURCE=1' \ 171 '-DUSE_STLPORT=1' \ 172 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 173 '-DCHROME_BUILD_ID=""' \ 174 '-DNDEBUG' \ 175 '-DNVALGRIND' \ 176 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 177 '-D_FORTIFY_SOURCE=2' 178 179 180 # Include paths placed before CFLAGS/CPPFLAGS 181 LOCAL_C_INCLUDES_Release := \ 182 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 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 -Wsign-compare \ 195 -Wno-error=c++0x-compat \ 196 -Wno-non-virtual-dtor \ 197 -Wno-sign-promo 198 199 200 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 201 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 202 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 203 ### Rules for final target. 204 205 LOCAL_LDFLAGS_Debug := \ 206 -Wl,-z,now \ 207 -Wl,-z,relro \ 208 -Wl,-z,noexecstack \ 209 -fPIC \ 210 -m32 \ 211 -fuse-ld=gold \ 212 -nostdlib \ 213 -Wl,--no-undefined \ 214 -Wl,--exclude-libs=ALL \ 215 -Wl,--fatal-warnings \ 216 -Wl,--gc-sections \ 217 -Wl,--warn-shared-textrel \ 218 -Wl,-O1 \ 219 -Wl,--as-needed 220 221 222 LOCAL_LDFLAGS_Release := \ 223 -Wl,-z,now \ 224 -Wl,-z,relro \ 225 -Wl,-z,noexecstack \ 226 -fPIC \ 227 -m32 \ 228 -fuse-ld=gold \ 229 -nostdlib \ 230 -Wl,--no-undefined \ 231 -Wl,--exclude-libs=ALL \ 232 -Wl,-O1 \ 233 -Wl,--as-needed \ 234 -Wl,--gc-sections \ 235 -Wl,--fatal-warnings \ 236 -Wl,--warn-shared-textrel 237 238 239 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 240 241 LOCAL_STATIC_LIBRARIES := 242 243 # Enable grouping to fix circular references 244 LOCAL_GROUP_STATIC_LIBRARIES := true 245 246 LOCAL_SHARED_LIBRARIES := \ 247 libstlport \ 248 libdl 249 250 # Add target alias to "gyp_all_modules" target. 251 .PHONY: gyp_all_modules 252 gyp_all_modules: components_encryptor_gyp 253 254 # Alias gyp target name. 255 .PHONY: encryptor 256 encryptor: components_encryptor_gyp 257 258 include $(BUILD_STATIC_LIBRARY) 259