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 := tools_json_schema_compiler_api_gen_util_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 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_CPP_EXTENSION := .cc 22 LOCAL_GENERATED_SOURCES := 23 24 GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26 LOCAL_SRC_FILES := \ 27 tools/json_schema_compiler/util.cc 28 29 30 # Flags passed to both C and C++ files. 31 MY_CFLAGS_Debug := \ 32 --param=ssp-buffer-size=4 \ 33 -Werror \ 34 -fno-exceptions \ 35 -fno-strict-aliasing \ 36 -Wall \ 37 -Wno-unused-parameter \ 38 -Wno-missing-field-initializers \ 39 -fvisibility=hidden \ 40 -pipe \ 41 -fPIC \ 42 -Wno-unused-local-typedefs \ 43 -msse2 \ 44 -mfpmath=sse \ 45 -mmmx \ 46 -m32 \ 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 -Wno-unused-but-set-variable \ 58 -fno-stack-protector \ 59 -Os \ 60 -g \ 61 -fdata-sections \ 62 -ffunction-sections \ 63 -fomit-frame-pointer \ 64 -funwind-tables 65 66 MY_DEFS_Debug := \ 67 '-DV8_DEPRECATION_WARNINGS' \ 68 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 69 '-D_FILE_OFFSET_BITS=64' \ 70 '-DNO_TCMALLOC' \ 71 '-DDISABLE_NACL' \ 72 '-DCHROMIUM_BUILD' \ 73 '-DUSE_LIBJPEG_TURBO=1' \ 74 '-DENABLE_WEBRTC=1' \ 75 '-DUSE_PROPRIETARY_CODECS' \ 76 '-DENABLE_BROWSER_CDMS' \ 77 '-DENABLE_CONFIGURATION_POLICY' \ 78 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 79 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 80 '-DENABLE_EGLIMAGE=1' \ 81 '-DCLD_VERSION=1' \ 82 '-DENABLE_PRINTING=1' \ 83 '-DENABLE_MANAGED_USERS=1' \ 84 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 85 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 86 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 87 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 88 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 89 '-DVIDEO_HOLE=1' \ 90 '-DUSE_OPENSSL=1' \ 91 '-DUSE_OPENSSL_CERTS=1' \ 92 '-D__STDC_CONSTANT_MACROS' \ 93 '-D__STDC_FORMAT_MACROS' \ 94 '-DANDROID' \ 95 '-D__GNU_SOURCE=1' \ 96 '-DUSE_STLPORT=1' \ 97 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 98 '-DCHROME_BUILD_ID=""' \ 99 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 100 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 101 '-D_DEBUG' 102 103 104 # Include paths placed before CFLAGS/CPPFLAGS 105 LOCAL_C_INCLUDES_Debug := \ 106 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 107 $(gyp_shared_intermediate_dir) \ 108 $(LOCAL_PATH) \ 109 $(PWD)/frameworks/wilhelm/include \ 110 $(PWD)/bionic \ 111 $(PWD)/external/stlport/stlport 112 113 114 # Flags passed to only C++ (and not C) files. 115 LOCAL_CPPFLAGS_Debug := \ 116 -fno-rtti \ 117 -fno-threadsafe-statics \ 118 -fvisibility-inlines-hidden \ 119 -Wsign-compare \ 120 -Wno-non-virtual-dtor \ 121 -Wno-sign-promo 122 123 124 LOCAL_FDO_SUPPORT_Debug := false 125 126 # Flags passed to both C and C++ files. 127 MY_CFLAGS_Release := \ 128 --param=ssp-buffer-size=4 \ 129 -Werror \ 130 -fno-exceptions \ 131 -fno-strict-aliasing \ 132 -Wall \ 133 -Wno-unused-parameter \ 134 -Wno-missing-field-initializers \ 135 -fvisibility=hidden \ 136 -pipe \ 137 -fPIC \ 138 -Wno-unused-local-typedefs \ 139 -msse2 \ 140 -mfpmath=sse \ 141 -mmmx \ 142 -m32 \ 143 -ffunction-sections \ 144 -funwind-tables \ 145 -g \ 146 -fno-short-enums \ 147 -finline-limit=64 \ 148 -Wa,--noexecstack \ 149 -U_FORTIFY_SOURCE \ 150 -Wno-extra \ 151 -Wno-ignored-qualifiers \ 152 -Wno-type-limits \ 153 -Wno-unused-but-set-variable \ 154 -fno-stack-protector \ 155 -Os \ 156 -fno-ident \ 157 -fdata-sections \ 158 -ffunction-sections \ 159 -fomit-frame-pointer \ 160 -funwind-tables 161 162 MY_DEFS_Release := \ 163 '-DV8_DEPRECATION_WARNINGS' \ 164 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 165 '-D_FILE_OFFSET_BITS=64' \ 166 '-DNO_TCMALLOC' \ 167 '-DDISABLE_NACL' \ 168 '-DCHROMIUM_BUILD' \ 169 '-DUSE_LIBJPEG_TURBO=1' \ 170 '-DENABLE_WEBRTC=1' \ 171 '-DUSE_PROPRIETARY_CODECS' \ 172 '-DENABLE_BROWSER_CDMS' \ 173 '-DENABLE_CONFIGURATION_POLICY' \ 174 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 175 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 176 '-DENABLE_EGLIMAGE=1' \ 177 '-DCLD_VERSION=1' \ 178 '-DENABLE_PRINTING=1' \ 179 '-DENABLE_MANAGED_USERS=1' \ 180 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 181 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 182 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 183 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 184 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 185 '-DVIDEO_HOLE=1' \ 186 '-DUSE_OPENSSL=1' \ 187 '-DUSE_OPENSSL_CERTS=1' \ 188 '-D__STDC_CONSTANT_MACROS' \ 189 '-D__STDC_FORMAT_MACROS' \ 190 '-DANDROID' \ 191 '-D__GNU_SOURCE=1' \ 192 '-DUSE_STLPORT=1' \ 193 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 194 '-DCHROME_BUILD_ID=""' \ 195 '-DNDEBUG' \ 196 '-DNVALGRIND' \ 197 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 198 '-D_FORTIFY_SOURCE=2' 199 200 201 # Include paths placed before CFLAGS/CPPFLAGS 202 LOCAL_C_INCLUDES_Release := \ 203 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 204 $(gyp_shared_intermediate_dir) \ 205 $(LOCAL_PATH) \ 206 $(PWD)/frameworks/wilhelm/include \ 207 $(PWD)/bionic \ 208 $(PWD)/external/stlport/stlport 209 210 211 # Flags passed to only C++ (and not C) files. 212 LOCAL_CPPFLAGS_Release := \ 213 -fno-rtti \ 214 -fno-threadsafe-statics \ 215 -fvisibility-inlines-hidden \ 216 -Wsign-compare \ 217 -Wno-non-virtual-dtor \ 218 -Wno-sign-promo 219 220 221 LOCAL_FDO_SUPPORT_Release := false 222 223 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 224 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 225 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 226 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 227 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 228 ### Rules for final target. 229 230 LOCAL_LDFLAGS_Debug := \ 231 -Wl,-z,now \ 232 -Wl,-z,relro \ 233 -Wl,--fatal-warnings \ 234 -Wl,-z,noexecstack \ 235 -fPIC \ 236 -m32 \ 237 -fuse-ld=gold \ 238 -nostdlib \ 239 -Wl,--no-undefined \ 240 -Wl,--exclude-libs=ALL \ 241 -Wl,--warn-shared-textrel \ 242 -Wl,-O1 \ 243 -Wl,--as-needed 244 245 246 LOCAL_LDFLAGS_Release := \ 247 -Wl,-z,now \ 248 -Wl,-z,relro \ 249 -Wl,--fatal-warnings \ 250 -Wl,-z,noexecstack \ 251 -fPIC \ 252 -m32 \ 253 -fuse-ld=gold \ 254 -nostdlib \ 255 -Wl,--no-undefined \ 256 -Wl,--exclude-libs=ALL \ 257 -Wl,-O1 \ 258 -Wl,--as-needed \ 259 -Wl,--gc-sections \ 260 -Wl,--warn-shared-textrel 261 262 263 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 264 265 LOCAL_STATIC_LIBRARIES := 266 267 # Enable grouping to fix circular references 268 LOCAL_GROUP_STATIC_LIBRARIES := true 269 270 LOCAL_SHARED_LIBRARIES := \ 271 libstlport \ 272 libdl 273 274 # Add target alias to "gyp_all_modules" target. 275 .PHONY: gyp_all_modules 276 gyp_all_modules: tools_json_schema_compiler_api_gen_util_gyp 277 278 # Alias gyp target name. 279 .PHONY: api_gen_util 280 api_gen_util: tools_json_schema_compiler_api_gen_util_gyp 281 282 include $(BUILD_STATIC_LIBRARY) 283