Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 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_webrtc_system_wrappers_source_cpu_features_android_gyp |
| 7 | LOCAL_MODULE_SUFFIX := .a |
| 8 | LOCAL_MODULE_TAGS := optional |
Android Chromium Automerger | c71dd0d | 2014-04-09 18:59:40 +0000 | [diff] [blame] | 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)) |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 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 | third_party/webrtc/system_wrappers/source/cpu_features_android.c |
| 27 | |
| 28 | |
| 29 | # Flags passed to both C and C++ files. |
| 30 | MY_CFLAGS_Debug := \ |
| 31 | -fstack-protector \ |
| 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 \ |
Android Chromium Automerger | 271bf09 | 2014-05-23 18:41:03 +0000 | [diff] [blame] | 42 | -Wno-unused-local-typedefs \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 43 | -fno-builtin-cos \ |
| 44 | -fno-builtin-sin \ |
| 45 | -fno-builtin-cosf \ |
| 46 | -fno-builtin-sinf \ |
| 47 | -m64 \ |
| 48 | -march=x86-64 \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 49 | -ffunction-sections \ |
| 50 | -funwind-tables \ |
| 51 | -g \ |
| 52 | -fstack-protector \ |
| 53 | -fno-short-enums \ |
| 54 | -finline-limit=64 \ |
| 55 | -Wa,--noexecstack \ |
| 56 | -U_FORTIFY_SOURCE \ |
| 57 | -Wno-extra \ |
| 58 | -Wno-ignored-qualifiers \ |
| 59 | -Wno-type-limits \ |
| 60 | -Wno-unused-but-set-variable \ |
| 61 | -Os \ |
| 62 | -g \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 63 | -fdata-sections \ |
| 64 | -ffunction-sections \ |
Android Chromium Automerger | 477e6bc | 2014-07-10 18:45:25 +0000 | [diff] [blame] | 65 | -fomit-frame-pointer \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 66 | -funwind-tables |
| 67 | |
| 68 | MY_DEFS_Debug := \ |
| 69 | '-DV8_DEPRECATION_WARNINGS' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 70 | '-D_FILE_OFFSET_BITS=64' \ |
| 71 | '-DNO_TCMALLOC' \ |
| 72 | '-DDISABLE_NACL' \ |
| 73 | '-DCHROMIUM_BUILD' \ |
| 74 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 75 | '-DENABLE_WEBRTC=1' \ |
| 76 | '-DUSE_PROPRIETARY_CODECS' \ |
Android Chromium Automerger | adda09e | 2014-06-10 23:37:15 +0000 | [diff] [blame] | 77 | '-DENABLE_BROWSER_CDMS' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 78 | '-DENABLE_CONFIGURATION_POLICY' \ |
| 79 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 80 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
| 81 | '-DENABLE_EGLIMAGE=1' \ |
| 82 | '-DCLD_VERSION=1' \ |
| 83 | '-DENABLE_PRINTING=1' \ |
| 84 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 85 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
| 86 | '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ |
| 87 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 88 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Android Chromium Automerger | ad3bcf4 | 2014-06-19 03:36:33 +0000 | [diff] [blame] | 89 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Torne (Richard Coles) | d658c11 | 2014-05-14 10:24:51 +0100 | [diff] [blame] | 90 | '-DVIDEO_HOLE=1' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 91 | '-DWEBRTC_RESTRICT_LOGGING' \ |
Android Chromium Automerger | cb45b28 | 2014-09-08 19:00:33 +0000 | [diff] [blame] | 92 | '-DEXPAT_RELATIVE_PATH' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 93 | '-DWEBRTC_MODULE_UTILITY_VIDEO' \ |
| 94 | '-DWEBRTC_CHROMIUM_BUILD' \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 95 | '-DLOGGING_INSIDE_WEBRTC' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 96 | '-DWEBRTC_POSIX' \ |
| 97 | '-DWEBRTC_LINUX' \ |
| 98 | '-DWEBRTC_ANDROID' \ |
| 99 | '-DWEBRTC_ANDROID_OPENSLES' \ |
| 100 | '-DUSE_OPENSSL=1' \ |
| 101 | '-DUSE_OPENSSL_CERTS=1' \ |
| 102 | '-D__STDC_CONSTANT_MACROS' \ |
| 103 | '-D__STDC_FORMAT_MACROS' \ |
| 104 | '-DANDROID' \ |
| 105 | '-D__GNU_SOURCE=1' \ |
| 106 | '-DUSE_STLPORT=1' \ |
| 107 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 108 | '-DCHROME_BUILD_ID=""' \ |
| 109 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 110 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 111 | '-D_DEBUG' |
| 112 | |
| 113 | |
| 114 | # Include paths placed before CFLAGS/CPPFLAGS |
| 115 | LOCAL_C_INCLUDES_Debug := \ |
Android Chromium Automerger | cb4fdd1 | 2014-06-16 14:50:41 +0000 | [diff] [blame] | 116 | $(gyp_shared_intermediate_dir) \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 117 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 118 | $(LOCAL_PATH)/third_party/webrtc/overrides \ |
| 119 | $(LOCAL_PATH)/third_party \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 120 | $(PWD)/frameworks/wilhelm/include \ |
| 121 | $(PWD)/bionic \ |
| 122 | $(PWD)/external/stlport/stlport |
| 123 | |
| 124 | |
| 125 | # Flags passed to only C++ (and not C) files. |
| 126 | LOCAL_CPPFLAGS_Debug := \ |
| 127 | -fno-rtti \ |
| 128 | -fno-threadsafe-statics \ |
| 129 | -fvisibility-inlines-hidden \ |
| 130 | -Wsign-compare \ |
Android Chromium Automerger | 841f8c8 | 2014-06-25 15:10:10 +0000 | [diff] [blame] | 131 | -std=gnu++11 \ |
| 132 | -Wno-narrowing \ |
| 133 | -Wno-literal-suffix \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 134 | -Wno-non-virtual-dtor \ |
| 135 | -Wno-sign-promo |
| 136 | |
| 137 | |
| 138 | # Flags passed to both C and C++ files. |
| 139 | MY_CFLAGS_Release := \ |
| 140 | -fstack-protector \ |
| 141 | --param=ssp-buffer-size=4 \ |
| 142 | -Werror \ |
| 143 | -fno-exceptions \ |
| 144 | -fno-strict-aliasing \ |
| 145 | -Wall \ |
| 146 | -Wno-unused-parameter \ |
| 147 | -Wno-missing-field-initializers \ |
| 148 | -fvisibility=hidden \ |
| 149 | -pipe \ |
| 150 | -fPIC \ |
Android Chromium Automerger | 271bf09 | 2014-05-23 18:41:03 +0000 | [diff] [blame] | 151 | -Wno-unused-local-typedefs \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 152 | -fno-builtin-cos \ |
| 153 | -fno-builtin-sin \ |
| 154 | -fno-builtin-cosf \ |
| 155 | -fno-builtin-sinf \ |
| 156 | -m64 \ |
| 157 | -march=x86-64 \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 158 | -ffunction-sections \ |
| 159 | -funwind-tables \ |
| 160 | -g \ |
| 161 | -fstack-protector \ |
| 162 | -fno-short-enums \ |
| 163 | -finline-limit=64 \ |
| 164 | -Wa,--noexecstack \ |
| 165 | -U_FORTIFY_SOURCE \ |
| 166 | -Wno-extra \ |
| 167 | -Wno-ignored-qualifiers \ |
| 168 | -Wno-type-limits \ |
| 169 | -Wno-unused-but-set-variable \ |
| 170 | -Os \ |
| 171 | -fno-ident \ |
| 172 | -fdata-sections \ |
| 173 | -ffunction-sections \ |
| 174 | -fomit-frame-pointer \ |
| 175 | -funwind-tables |
| 176 | |
| 177 | MY_DEFS_Release := \ |
| 178 | '-DV8_DEPRECATION_WARNINGS' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 179 | '-D_FILE_OFFSET_BITS=64' \ |
| 180 | '-DNO_TCMALLOC' \ |
| 181 | '-DDISABLE_NACL' \ |
| 182 | '-DCHROMIUM_BUILD' \ |
| 183 | '-DUSE_LIBJPEG_TURBO=1' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 184 | '-DENABLE_WEBRTC=1' \ |
| 185 | '-DUSE_PROPRIETARY_CODECS' \ |
Android Chromium Automerger | adda09e | 2014-06-10 23:37:15 +0000 | [diff] [blame] | 186 | '-DENABLE_BROWSER_CDMS' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 187 | '-DENABLE_CONFIGURATION_POLICY' \ |
| 188 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 189 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
| 190 | '-DENABLE_EGLIMAGE=1' \ |
| 191 | '-DCLD_VERSION=1' \ |
| 192 | '-DENABLE_PRINTING=1' \ |
| 193 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 194 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
| 195 | '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ |
| 196 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 197 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Android Chromium Automerger | ad3bcf4 | 2014-06-19 03:36:33 +0000 | [diff] [blame] | 198 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Torne (Richard Coles) | d658c11 | 2014-05-14 10:24:51 +0100 | [diff] [blame] | 199 | '-DVIDEO_HOLE=1' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 200 | '-DWEBRTC_RESTRICT_LOGGING' \ |
Android Chromium Automerger | cb45b28 | 2014-09-08 19:00:33 +0000 | [diff] [blame] | 201 | '-DEXPAT_RELATIVE_PATH' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 202 | '-DWEBRTC_MODULE_UTILITY_VIDEO' \ |
| 203 | '-DWEBRTC_CHROMIUM_BUILD' \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 204 | '-DLOGGING_INSIDE_WEBRTC' \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 205 | '-DWEBRTC_POSIX' \ |
| 206 | '-DWEBRTC_LINUX' \ |
| 207 | '-DWEBRTC_ANDROID' \ |
| 208 | '-DWEBRTC_ANDROID_OPENSLES' \ |
| 209 | '-DUSE_OPENSSL=1' \ |
| 210 | '-DUSE_OPENSSL_CERTS=1' \ |
| 211 | '-D__STDC_CONSTANT_MACROS' \ |
| 212 | '-D__STDC_FORMAT_MACROS' \ |
| 213 | '-DANDROID' \ |
| 214 | '-D__GNU_SOURCE=1' \ |
| 215 | '-DUSE_STLPORT=1' \ |
| 216 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 217 | '-DCHROME_BUILD_ID=""' \ |
| 218 | '-DNDEBUG' \ |
| 219 | '-DNVALGRIND' \ |
| 220 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ |
| 221 | '-D_FORTIFY_SOURCE=2' |
| 222 | |
| 223 | |
| 224 | # Include paths placed before CFLAGS/CPPFLAGS |
| 225 | LOCAL_C_INCLUDES_Release := \ |
Android Chromium Automerger | cb4fdd1 | 2014-06-16 14:50:41 +0000 | [diff] [blame] | 226 | $(gyp_shared_intermediate_dir) \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 227 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 618be31 | 2014-05-16 13:16:00 +0100 | [diff] [blame] | 228 | $(LOCAL_PATH)/third_party/webrtc/overrides \ |
| 229 | $(LOCAL_PATH)/third_party \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 230 | $(PWD)/frameworks/wilhelm/include \ |
| 231 | $(PWD)/bionic \ |
| 232 | $(PWD)/external/stlport/stlport |
| 233 | |
| 234 | |
| 235 | # Flags passed to only C++ (and not C) files. |
| 236 | LOCAL_CPPFLAGS_Release := \ |
| 237 | -fno-rtti \ |
| 238 | -fno-threadsafe-statics \ |
| 239 | -fvisibility-inlines-hidden \ |
| 240 | -Wsign-compare \ |
Android Chromium Automerger | 841f8c8 | 2014-06-25 15:10:10 +0000 | [diff] [blame] | 241 | -std=gnu++11 \ |
| 242 | -Wno-narrowing \ |
| 243 | -Wno-literal-suffix \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 244 | -Wno-non-virtual-dtor \ |
| 245 | -Wno-sign-promo |
| 246 | |
| 247 | |
| 248 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 249 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 250 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
| 251 | LOCAL_ASFLAGS := $(LOCAL_CFLAGS) |
| 252 | ### Rules for final target. |
| 253 | |
| 254 | LOCAL_LDFLAGS_Debug := \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 255 | -Wl,-z,now \ |
| 256 | -Wl,-z,relro \ |
Android Chromium Automerger | 97a64e2 | 2014-04-07 11:28:24 +0000 | [diff] [blame] | 257 | -Wl,--fatal-warnings \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 258 | -Wl,-z,noexecstack \ |
| 259 | -fPIC \ |
| 260 | -m64 \ |
| 261 | -fuse-ld=gold \ |
| 262 | -nostdlib \ |
| 263 | -Wl,--no-undefined \ |
Android Chromium Automerger | 8097a46 | 2014-06-09 17:44:56 +0000 | [diff] [blame] | 264 | -Wl,--exclude-libs=ALL \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 265 | -Wl,--warn-shared-textrel \ |
| 266 | -Wl,-O1 \ |
| 267 | -Wl,--as-needed |
| 268 | |
| 269 | |
| 270 | LOCAL_LDFLAGS_Release := \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 271 | -Wl,-z,now \ |
| 272 | -Wl,-z,relro \ |
Android Chromium Automerger | 97a64e2 | 2014-04-07 11:28:24 +0000 | [diff] [blame] | 273 | -Wl,--fatal-warnings \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 274 | -Wl,-z,noexecstack \ |
| 275 | -fPIC \ |
| 276 | -m64 \ |
| 277 | -fuse-ld=gold \ |
| 278 | -nostdlib \ |
| 279 | -Wl,--no-undefined \ |
Android Chromium Automerger | 8097a46 | 2014-06-09 17:44:56 +0000 | [diff] [blame] | 280 | -Wl,--exclude-libs=ALL \ |
Android Chromium Automerger | 2ebb6ba | 2014-04-01 19:42:48 +0000 | [diff] [blame] | 281 | -Wl,-O1 \ |
| 282 | -Wl,--as-needed \ |
| 283 | -Wl,--gc-sections \ |
| 284 | -Wl,--warn-shared-textrel |
| 285 | |
| 286 | |
| 287 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 288 | |
| 289 | LOCAL_STATIC_LIBRARIES := \ |
| 290 | cpufeatures |
| 291 | |
| 292 | # Enable grouping to fix circular references |
| 293 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 294 | |
| 295 | LOCAL_SHARED_LIBRARIES := \ |
| 296 | libstlport \ |
| 297 | libdl |
| 298 | |
| 299 | # Add target alias to "gyp_all_modules" target. |
| 300 | .PHONY: gyp_all_modules |
| 301 | gyp_all_modules: third_party_webrtc_system_wrappers_source_cpu_features_android_gyp |
| 302 | |
| 303 | # Alias gyp target name. |
| 304 | .PHONY: cpu_features_android |
| 305 | cpu_features_android: third_party_webrtc_system_wrappers_source_cpu_features_android_gyp |
| 306 | |
| 307 | include $(BUILD_STATIC_LIBRARY) |