1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := components_cdm_common_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13# Make sure our deps are built first. 14GYP_TARGET_DEPENDENCIES := 15 16GYP_GENERATED_OUTPUTS := 17 18# Make sure our deps and generated files are built first. 19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21LOCAL_CPP_EXTENSION := .cc 22LOCAL_GENERATED_SOURCES := 23 24GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26LOCAL_SRC_FILES := \ 27 components/cdm/common/cdm_message_generator.cc 28 29 30# Flags passed to both C and C++ files. 31MY_CFLAGS_Debug := \ 32 -fstack-protector \ 33 --param=ssp-buffer-size=4 \ 34 -Werror \ 35 -fno-exceptions \ 36 -fno-strict-aliasing \ 37 -Wall \ 38 -Wno-unused-parameter \ 39 -Wno-missing-field-initializers \ 40 -fvisibility=hidden \ 41 -pipe \ 42 -fPIC \ 43 -Wno-unused-local-typedefs \ 44 -fno-tree-sra \ 45 -fno-partial-inlining \ 46 -fno-early-inlining \ 47 -fno-tree-copy-prop \ 48 -fno-tree-loop-optimize \ 49 -fno-move-loop-invariants \ 50 -fno-caller-saves \ 51 -Wno-psabi \ 52 -ffunction-sections \ 53 -funwind-tables \ 54 -g \ 55 -fstack-protector \ 56 -fno-short-enums \ 57 -finline-limit=64 \ 58 -Wa,--noexecstack \ 59 -U_FORTIFY_SOURCE \ 60 -Wno-extra \ 61 -Wno-ignored-qualifiers \ 62 -Wno-type-limits \ 63 -Wno-unused-but-set-variable \ 64 -Os \ 65 -g \ 66 -fdata-sections \ 67 -ffunction-sections \ 68 -fomit-frame-pointer \ 69 -funwind-tables 70 71MY_DEFS_Debug := \ 72 '-DV8_DEPRECATION_WARNINGS' \ 73 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 74 '-D_FILE_OFFSET_BITS=64' \ 75 '-DNO_TCMALLOC' \ 76 '-DDISABLE_NACL' \ 77 '-DCHROMIUM_BUILD' \ 78 '-DUSE_LIBJPEG_TURBO=1' \ 79 '-DENABLE_WEBRTC=1' \ 80 '-DUSE_PROPRIETARY_CODECS' \ 81 '-DENABLE_BROWSER_CDMS' \ 82 '-DENABLE_CONFIGURATION_POLICY' \ 83 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 84 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 85 '-DENABLE_EGLIMAGE=1' \ 86 '-DCLD_VERSION=1' \ 87 '-DENABLE_PRINTING=1' \ 88 '-DENABLE_MANAGED_USERS=1' \ 89 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 90 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 91 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 92 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 93 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 94 '-DVIDEO_HOLE=1' \ 95 '-DMOJO_USE_SYSTEM_IMPL' \ 96 '-DUSE_OPENSSL=1' \ 97 '-DUSE_OPENSSL_CERTS=1' \ 98 '-D__STDC_CONSTANT_MACROS' \ 99 '-D__STDC_FORMAT_MACROS' \ 100 '-DANDROID' \ 101 '-D__GNU_SOURCE=1' \ 102 '-DUSE_STLPORT=1' \ 103 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 104 '-DCHROME_BUILD_ID=""' \ 105 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 106 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 107 '-D_DEBUG' 108 109 110# Include paths placed before CFLAGS/CPPFLAGS 111LOCAL_C_INCLUDES_Debug := \ 112 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 113 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 114 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 115 $(gyp_shared_intermediate_dir) \ 116 $(LOCAL_PATH)/third_party/khronos \ 117 $(LOCAL_PATH)/gpu \ 118 $(LOCAL_PATH) \ 119 $(LOCAL_PATH)/skia/config \ 120 $(LOCAL_PATH)/third_party/WebKit/Source \ 121 $(LOCAL_PATH)/third_party/WebKit \ 122 $(PWD)/frameworks/wilhelm/include \ 123 $(PWD)/bionic \ 124 $(PWD)/external/stlport/stlport 125 126 127# Flags passed to only C++ (and not C) files. 128LOCAL_CPPFLAGS_Debug := \ 129 -fno-rtti \ 130 -fno-threadsafe-statics \ 131 -fvisibility-inlines-hidden \ 132 -Wsign-compare \ 133 -Wno-abi \ 134 -Wno-non-virtual-dtor \ 135 -Wno-sign-promo 136 137 138LOCAL_FDO_SUPPORT_Debug := false 139 140# Flags passed to both C and C++ files. 141MY_CFLAGS_Release := \ 142 -fstack-protector \ 143 --param=ssp-buffer-size=4 \ 144 -Werror \ 145 -fno-exceptions \ 146 -fno-strict-aliasing \ 147 -Wall \ 148 -Wno-unused-parameter \ 149 -Wno-missing-field-initializers \ 150 -fvisibility=hidden \ 151 -pipe \ 152 -fPIC \ 153 -Wno-unused-local-typedefs \ 154 -fno-tree-sra \ 155 -fno-partial-inlining \ 156 -fno-early-inlining \ 157 -fno-tree-copy-prop \ 158 -fno-tree-loop-optimize \ 159 -fno-move-loop-invariants \ 160 -fno-caller-saves \ 161 -Wno-psabi \ 162 -ffunction-sections \ 163 -funwind-tables \ 164 -g \ 165 -fstack-protector \ 166 -fno-short-enums \ 167 -finline-limit=64 \ 168 -Wa,--noexecstack \ 169 -U_FORTIFY_SOURCE \ 170 -Wno-extra \ 171 -Wno-ignored-qualifiers \ 172 -Wno-type-limits \ 173 -Wno-unused-but-set-variable \ 174 -Os \ 175 -fno-ident \ 176 -fdata-sections \ 177 -ffunction-sections \ 178 -fomit-frame-pointer \ 179 -funwind-tables 180 181MY_DEFS_Release := \ 182 '-DV8_DEPRECATION_WARNINGS' \ 183 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 184 '-D_FILE_OFFSET_BITS=64' \ 185 '-DNO_TCMALLOC' \ 186 '-DDISABLE_NACL' \ 187 '-DCHROMIUM_BUILD' \ 188 '-DUSE_LIBJPEG_TURBO=1' \ 189 '-DENABLE_WEBRTC=1' \ 190 '-DUSE_PROPRIETARY_CODECS' \ 191 '-DENABLE_BROWSER_CDMS' \ 192 '-DENABLE_CONFIGURATION_POLICY' \ 193 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 194 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 195 '-DENABLE_EGLIMAGE=1' \ 196 '-DCLD_VERSION=1' \ 197 '-DENABLE_PRINTING=1' \ 198 '-DENABLE_MANAGED_USERS=1' \ 199 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 200 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 201 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 202 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 203 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 204 '-DVIDEO_HOLE=1' \ 205 '-DMOJO_USE_SYSTEM_IMPL' \ 206 '-DUSE_OPENSSL=1' \ 207 '-DUSE_OPENSSL_CERTS=1' \ 208 '-D__STDC_CONSTANT_MACROS' \ 209 '-D__STDC_FORMAT_MACROS' \ 210 '-DANDROID' \ 211 '-D__GNU_SOURCE=1' \ 212 '-DUSE_STLPORT=1' \ 213 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 214 '-DCHROME_BUILD_ID=""' \ 215 '-DNDEBUG' \ 216 '-DNVALGRIND' \ 217 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 218 '-D_FORTIFY_SOURCE=2' 219 220 221# Include paths placed before CFLAGS/CPPFLAGS 222LOCAL_C_INCLUDES_Release := \ 223 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 224 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 225 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 226 $(gyp_shared_intermediate_dir) \ 227 $(LOCAL_PATH)/third_party/khronos \ 228 $(LOCAL_PATH)/gpu \ 229 $(LOCAL_PATH) \ 230 $(LOCAL_PATH)/skia/config \ 231 $(LOCAL_PATH)/third_party/WebKit/Source \ 232 $(LOCAL_PATH)/third_party/WebKit \ 233 $(PWD)/frameworks/wilhelm/include \ 234 $(PWD)/bionic \ 235 $(PWD)/external/stlport/stlport 236 237 238# Flags passed to only C++ (and not C) files. 239LOCAL_CPPFLAGS_Release := \ 240 -fno-rtti \ 241 -fno-threadsafe-statics \ 242 -fvisibility-inlines-hidden \ 243 -Wsign-compare \ 244 -Wno-abi \ 245 -Wno-non-virtual-dtor \ 246 -Wno-sign-promo 247 248 249LOCAL_FDO_SUPPORT_Release := false 250 251LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 252LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 253LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 254LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 255LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 256### Rules for final target. 257 258LOCAL_LDFLAGS_Debug := \ 259 -Wl,-z,now \ 260 -Wl,-z,relro \ 261 -Wl,--fatal-warnings \ 262 -Wl,-z,noexecstack \ 263 -fPIC \ 264 -Wl,-z,relro \ 265 -Wl,-z,now \ 266 -fuse-ld=gold \ 267 -nostdlib \ 268 -Wl,--no-undefined \ 269 -Wl,--exclude-libs=ALL \ 270 -Wl,--icf=safe \ 271 -Wl,--warn-shared-textrel \ 272 -Wl,-O1 \ 273 -Wl,--as-needed 274 275 276LOCAL_LDFLAGS_Release := \ 277 -Wl,-z,now \ 278 -Wl,-z,relro \ 279 -Wl,--fatal-warnings \ 280 -Wl,-z,noexecstack \ 281 -fPIC \ 282 -Wl,-z,relro \ 283 -Wl,-z,now \ 284 -fuse-ld=gold \ 285 -nostdlib \ 286 -Wl,--no-undefined \ 287 -Wl,--exclude-libs=ALL \ 288 -Wl,--icf=safe \ 289 -Wl,-O1 \ 290 -Wl,--as-needed \ 291 -Wl,--gc-sections \ 292 -Wl,--warn-shared-textrel 293 294 295LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 296 297LOCAL_STATIC_LIBRARIES := 298 299# Enable grouping to fix circular references 300LOCAL_GROUP_STATIC_LIBRARIES := true 301 302LOCAL_SHARED_LIBRARIES := \ 303 libstlport \ 304 libdl 305 306# Add target alias to "gyp_all_modules" target. 307.PHONY: gyp_all_modules 308gyp_all_modules: components_cdm_common_gyp 309 310# Alias gyp target name. 311.PHONY: cdm_common 312cdm_common: components_cdm_common_gyp 313 314include $(BUILD_STATIC_LIBRARY) 315