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_fips181_fips181_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 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/fips181/convert.cc \ 27 third_party/fips181/fips181.cc \ 28 third_party/fips181/randpass.cc 29 30 31 # Flags passed to both C and C++ files. 32 MY_CFLAGS_Debug := \ 33 --param=ssp-buffer-size=4 \ 34 -fno-strict-aliasing \ 35 -Wno-unused-parameter \ 36 -Wno-missing-field-initializers \ 37 -fvisibility=hidden \ 38 -pipe \ 39 -fPIC \ 40 -Wno-unused-local-typedefs \ 41 -Wno-format \ 42 -ffunction-sections \ 43 -funwind-tables \ 44 -g \ 45 -fno-short-enums \ 46 -finline-limit=64 \ 47 -Wa,--noexecstack \ 48 -U_FORTIFY_SOURCE \ 49 -Wno-extra \ 50 -Wno-ignored-qualifiers \ 51 -Wno-type-limits \ 52 -Wno-unused-but-set-variable \ 53 -Wno-address \ 54 -Wno-format-security \ 55 -Wno-return-type \ 56 -Wno-sequence-point \ 57 -Os \ 58 -g \ 59 -gdwarf-4 \ 60 -fdata-sections \ 61 -ffunction-sections \ 62 -funwind-tables 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 '-DENABLE_WEBRTC=1' \ 72 '-DUSE_PROPRIETARY_CODECS' \ 73 '-DENABLE_BROWSER_CDMS' \ 74 '-DENABLE_CONFIGURATION_POLICY' \ 75 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 76 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 77 '-DENABLE_EGLIMAGE=1' \ 78 '-DCLD_VERSION=1' \ 79 '-DENABLE_PRINTING=1' \ 80 '-DENABLE_MANAGED_USERS=1' \ 81 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 82 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 83 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 84 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 85 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 86 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 87 '-DVIDEO_HOLE=1' \ 88 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 89 '-DUSE_OPENSSL=1' \ 90 '-DUSE_OPENSSL_CERTS=1' \ 91 '-DANDROID' \ 92 '-D__GNU_SOURCE=1' \ 93 '-DUSE_STLPORT=1' \ 94 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 95 '-DCHROME_BUILD_ID=""' \ 96 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 97 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 98 '-D_DEBUG' 99 100 101 # Include paths placed before CFLAGS/CPPFLAGS 102 LOCAL_C_INCLUDES_Debug := \ 103 $(gyp_shared_intermediate_dir) \ 104 $(LOCAL_PATH)/third_party/fips181 \ 105 $(LOCAL_PATH) \ 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-exceptions \ 114 -fno-rtti \ 115 -fno-threadsafe-statics \ 116 -fvisibility-inlines-hidden \ 117 -Wno-deprecated \ 118 -std=gnu++11 \ 119 -Wno-narrowing \ 120 -Wno-literal-suffix \ 121 -Wno-non-virtual-dtor \ 122 -Wno-sign-promo \ 123 -Wno-non-virtual-dtor 124 125 126 # Flags passed to both C and C++ files. 127 MY_CFLAGS_Release := \ 128 --param=ssp-buffer-size=4 \ 129 -fno-strict-aliasing \ 130 -Wno-unused-parameter \ 131 -Wno-missing-field-initializers \ 132 -fvisibility=hidden \ 133 -pipe \ 134 -fPIC \ 135 -Wno-unused-local-typedefs \ 136 -Wno-format \ 137 -ffunction-sections \ 138 -funwind-tables \ 139 -g \ 140 -fno-short-enums \ 141 -finline-limit=64 \ 142 -Wa,--noexecstack \ 143 -U_FORTIFY_SOURCE \ 144 -Wno-extra \ 145 -Wno-ignored-qualifiers \ 146 -Wno-type-limits \ 147 -Wno-unused-but-set-variable \ 148 -Wno-address \ 149 -Wno-format-security \ 150 -Wno-return-type \ 151 -Wno-sequence-point \ 152 -Os \ 153 -fno-ident \ 154 -fdata-sections \ 155 -ffunction-sections \ 156 -funwind-tables 157 158 MY_DEFS_Release := \ 159 '-DV8_DEPRECATION_WARNINGS' \ 160 '-D_FILE_OFFSET_BITS=64' \ 161 '-DNO_TCMALLOC' \ 162 '-DDISABLE_NACL' \ 163 '-DCHROMIUM_BUILD' \ 164 '-DUSE_LIBJPEG_TURBO=1' \ 165 '-DENABLE_WEBRTC=1' \ 166 '-DUSE_PROPRIETARY_CODECS' \ 167 '-DENABLE_BROWSER_CDMS' \ 168 '-DENABLE_CONFIGURATION_POLICY' \ 169 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 170 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 171 '-DENABLE_EGLIMAGE=1' \ 172 '-DCLD_VERSION=1' \ 173 '-DENABLE_PRINTING=1' \ 174 '-DENABLE_MANAGED_USERS=1' \ 175 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 176 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 177 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 178 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 179 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 180 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 181 '-DVIDEO_HOLE=1' \ 182 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 183 '-DUSE_OPENSSL=1' \ 184 '-DUSE_OPENSSL_CERTS=1' \ 185 '-DANDROID' \ 186 '-D__GNU_SOURCE=1' \ 187 '-DUSE_STLPORT=1' \ 188 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 189 '-DCHROME_BUILD_ID=""' \ 190 '-DNDEBUG' \ 191 '-DNVALGRIND' \ 192 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 193 194 195 # Include paths placed before CFLAGS/CPPFLAGS 196 LOCAL_C_INCLUDES_Release := \ 197 $(gyp_shared_intermediate_dir) \ 198 $(LOCAL_PATH)/third_party/fips181 \ 199 $(LOCAL_PATH) \ 200 $(PWD)/frameworks/wilhelm/include \ 201 $(PWD)/bionic \ 202 $(PWD)/external/stlport/stlport 203 204 205 # Flags passed to only C++ (and not C) files. 206 LOCAL_CPPFLAGS_Release := \ 207 -fno-exceptions \ 208 -fno-rtti \ 209 -fno-threadsafe-statics \ 210 -fvisibility-inlines-hidden \ 211 -Wno-deprecated \ 212 -std=gnu++11 \ 213 -Wno-narrowing \ 214 -Wno-literal-suffix \ 215 -Wno-non-virtual-dtor \ 216 -Wno-sign-promo \ 217 -Wno-non-virtual-dtor 218 219 220 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 221 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 222 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 223 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 224 ### Rules for final target. 225 226 LOCAL_SHARED_LIBRARIES := \ 227 libstlport \ 228 libdl 229 230 # Add target alias to "gyp_all_modules" target. 231 .PHONY: gyp_all_modules 232 gyp_all_modules: third_party_fips181_fips181_gyp 233 234 # Alias gyp target name. 235 .PHONY: fips181 236 fips181: third_party_fips181_fips181_gyp 237 238 include $(BUILD_STATIC_LIBRARY) 239