1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := GYP 6 LOCAL_MODULE := testing_gtest_prod_gyp 7 LOCAL_MODULE_STEM := gtest_prod 8 LOCAL_MODULE_SUFFIX := .stamp 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := 26 27 28 # Flags passed to both C and C++ files. 29 MY_CFLAGS_Debug := \ 30 --param=ssp-buffer-size=4 \ 31 -fno-strict-aliasing \ 32 -Wno-unused-parameter \ 33 -Wno-missing-field-initializers \ 34 -fvisibility=hidden \ 35 -pipe \ 36 -fPIC \ 37 -Wno-unused-local-typedefs \ 38 -Wno-format \ 39 -ffunction-sections \ 40 -funwind-tables \ 41 -g \ 42 -fno-short-enums \ 43 -finline-limit=64 \ 44 -Wa,--noexecstack \ 45 -U_FORTIFY_SOURCE \ 46 -Wno-extra \ 47 -Wno-ignored-qualifiers \ 48 -Wno-type-limits \ 49 -Wno-unused-but-set-variable \ 50 -Wno-address \ 51 -Wno-format-security \ 52 -Wno-return-type \ 53 -Wno-sequence-point \ 54 -Os \ 55 -g \ 56 -gdwarf-4 \ 57 -fdata-sections \ 58 -ffunction-sections \ 59 -funwind-tables 60 61 MY_DEFS_Debug := \ 62 '-DV8_DEPRECATION_WARNINGS' \ 63 '-D_FILE_OFFSET_BITS=64' \ 64 '-DNO_TCMALLOC' \ 65 '-DDISABLE_NACL' \ 66 '-DCHROMIUM_BUILD' \ 67 '-DUSE_LIBJPEG_TURBO=1' \ 68 '-DENABLE_WEBRTC=1' \ 69 '-DUSE_PROPRIETARY_CODECS' \ 70 '-DENABLE_BROWSER_CDMS' \ 71 '-DENABLE_CONFIGURATION_POLICY' \ 72 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 73 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 74 '-DENABLE_EGLIMAGE=1' \ 75 '-DCLD_VERSION=1' \ 76 '-DENABLE_PRINTING=1' \ 77 '-DENABLE_MANAGED_USERS=1' \ 78 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 79 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 80 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 81 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 82 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 83 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 84 '-DVIDEO_HOLE=1' \ 85 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 86 '-DUSE_OPENSSL=1' \ 87 '-DUSE_OPENSSL_CERTS=1' \ 88 '-DANDROID' \ 89 '-D__GNU_SOURCE=1' \ 90 '-DUSE_STLPORT=1' \ 91 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 92 '-DCHROME_BUILD_ID=""' \ 93 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 94 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 95 '-D_DEBUG' 96 97 98 # Include paths placed before CFLAGS/CPPFLAGS 99 LOCAL_C_INCLUDES_Debug := \ 100 $(gyp_shared_intermediate_dir) \ 101 $(PWD)/frameworks/wilhelm/include \ 102 $(PWD)/bionic \ 103 $(PWD)/external/stlport/stlport 104 105 106 # Flags passed to only C++ (and not C) files. 107 LOCAL_CPPFLAGS_Debug := \ 108 -fno-exceptions \ 109 -fno-rtti \ 110 -fno-threadsafe-statics \ 111 -fvisibility-inlines-hidden \ 112 -Wno-deprecated \ 113 -std=gnu++11 \ 114 -Wno-narrowing \ 115 -Wno-literal-suffix \ 116 -Wno-non-virtual-dtor \ 117 -Wno-sign-promo \ 118 -Wno-non-virtual-dtor 119 120 121 # Flags passed to both C and C++ files. 122 MY_CFLAGS_Release := \ 123 --param=ssp-buffer-size=4 \ 124 -fno-strict-aliasing \ 125 -Wno-unused-parameter \ 126 -Wno-missing-field-initializers \ 127 -fvisibility=hidden \ 128 -pipe \ 129 -fPIC \ 130 -Wno-unused-local-typedefs \ 131 -Wno-format \ 132 -ffunction-sections \ 133 -funwind-tables \ 134 -g \ 135 -fno-short-enums \ 136 -finline-limit=64 \ 137 -Wa,--noexecstack \ 138 -U_FORTIFY_SOURCE \ 139 -Wno-extra \ 140 -Wno-ignored-qualifiers \ 141 -Wno-type-limits \ 142 -Wno-unused-but-set-variable \ 143 -Wno-address \ 144 -Wno-format-security \ 145 -Wno-return-type \ 146 -Wno-sequence-point \ 147 -Os \ 148 -fno-ident \ 149 -fdata-sections \ 150 -ffunction-sections \ 151 -funwind-tables 152 153 MY_DEFS_Release := \ 154 '-DV8_DEPRECATION_WARNINGS' \ 155 '-D_FILE_OFFSET_BITS=64' \ 156 '-DNO_TCMALLOC' \ 157 '-DDISABLE_NACL' \ 158 '-DCHROMIUM_BUILD' \ 159 '-DUSE_LIBJPEG_TURBO=1' \ 160 '-DENABLE_WEBRTC=1' \ 161 '-DUSE_PROPRIETARY_CODECS' \ 162 '-DENABLE_BROWSER_CDMS' \ 163 '-DENABLE_CONFIGURATION_POLICY' \ 164 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 165 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 166 '-DENABLE_EGLIMAGE=1' \ 167 '-DCLD_VERSION=1' \ 168 '-DENABLE_PRINTING=1' \ 169 '-DENABLE_MANAGED_USERS=1' \ 170 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 171 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 172 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 173 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 174 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 175 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 176 '-DVIDEO_HOLE=1' \ 177 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 178 '-DUSE_OPENSSL=1' \ 179 '-DUSE_OPENSSL_CERTS=1' \ 180 '-DANDROID' \ 181 '-D__GNU_SOURCE=1' \ 182 '-DUSE_STLPORT=1' \ 183 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 184 '-DCHROME_BUILD_ID=""' \ 185 '-DNDEBUG' \ 186 '-DNVALGRIND' \ 187 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 188 189 190 # Include paths placed before CFLAGS/CPPFLAGS 191 LOCAL_C_INCLUDES_Release := \ 192 $(gyp_shared_intermediate_dir) \ 193 $(PWD)/frameworks/wilhelm/include \ 194 $(PWD)/bionic \ 195 $(PWD)/external/stlport/stlport 196 197 198 # Flags passed to only C++ (and not C) files. 199 LOCAL_CPPFLAGS_Release := \ 200 -fno-exceptions \ 201 -fno-rtti \ 202 -fno-threadsafe-statics \ 203 -fvisibility-inlines-hidden \ 204 -Wno-deprecated \ 205 -std=gnu++11 \ 206 -Wno-narrowing \ 207 -Wno-literal-suffix \ 208 -Wno-non-virtual-dtor \ 209 -Wno-sign-promo \ 210 -Wno-non-virtual-dtor 211 212 213 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 214 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 215 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 216 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 217 ### Rules for final target. 218 # Add target alias to "gyp_all_modules" target. 219 .PHONY: gyp_all_modules 220 gyp_all_modules: testing_gtest_prod_gyp 221 222 # Alias gyp target name. 223 .PHONY: gtest_prod 224 gtest_prod: testing_gtest_prod_gyp 225 226 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 227 LOCAL_UNINSTALLABLE_MODULE := true 228 LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_VAR_PREFIX) 229 230 include $(BUILD_SYSTEM)/base_rules.mk 231 232 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 233 $(hide) echo "Gyp timestamp: $@" 234 $(hide) mkdir -p $(dir $@) 235 $(hide) touch $@ 236 237 LOCAL_2ND_ARCH_VAR_PREFIX := 238