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 := ui_shell_dialogs_shell_dialogs_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 $(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \ 16 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \ 17 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_base_ui_base_gyp,,,$(GYP_VAR_PREFIX))/ui_base_ui_base_gyp.a \ 18 $(call intermediates-dir-for,GYP,ui_strings_ui_strings_gyp,,,$(GYP_VAR_PREFIX))/ui_strings.stamp \ 19 $(call intermediates-dir-for,GYP,ui_base_ui_base_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/ui_base_jni_headers.stamp 20 21 GYP_GENERATED_OUTPUTS := 22 23 # Make sure our deps and generated files are built first. 24 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 25 26 LOCAL_CPP_EXTENSION := .cc 27 LOCAL_GENERATED_SOURCES := 28 29 GYP_COPIED_SOURCE_ORIGIN_DIRS := 30 31 LOCAL_SRC_FILES := \ 32 ui/shell_dialogs/android/shell_dialogs_jni_registrar.cc \ 33 ui/shell_dialogs/base_shell_dialog.cc \ 34 ui/shell_dialogs/linux_shell_dialog.cc \ 35 ui/shell_dialogs/select_file_dialog.cc \ 36 ui/shell_dialogs/select_file_dialog_android.cc \ 37 ui/shell_dialogs/select_file_dialog_factory.cc \ 38 ui/shell_dialogs/select_file_policy.cc \ 39 ui/shell_dialogs/selected_file_info.cc 40 41 42 # Flags passed to both C and C++ files. 43 MY_CFLAGS_Debug := \ 44 --param=ssp-buffer-size=4 \ 45 -Werror \ 46 -fno-exceptions \ 47 -fno-strict-aliasing \ 48 -Wall \ 49 -Wno-unused-parameter \ 50 -Wno-missing-field-initializers \ 51 -fvisibility=hidden \ 52 -pipe \ 53 -fPIC \ 54 -Wno-unused-local-typedefs \ 55 -msse2 \ 56 -mfpmath=sse \ 57 -mmmx \ 58 -m32 \ 59 -ffunction-sections \ 60 -funwind-tables \ 61 -g \ 62 -fno-short-enums \ 63 -finline-limit=64 \ 64 -Wa,--noexecstack \ 65 -U_FORTIFY_SOURCE \ 66 -Wno-extra \ 67 -Wno-ignored-qualifiers \ 68 -Wno-type-limits \ 69 -Wno-unused-but-set-variable \ 70 -fno-stack-protector \ 71 -Os \ 72 -g \ 73 -fdata-sections \ 74 -ffunction-sections \ 75 -fomit-frame-pointer \ 76 -funwind-tables 77 78 MY_DEFS_Debug := \ 79 '-DV8_DEPRECATION_WARNINGS' \ 80 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 81 '-D_FILE_OFFSET_BITS=64' \ 82 '-DNO_TCMALLOC' \ 83 '-DDISABLE_NACL' \ 84 '-DCHROMIUM_BUILD' \ 85 '-DUSE_LIBJPEG_TURBO=1' \ 86 '-DENABLE_WEBRTC=1' \ 87 '-DUSE_PROPRIETARY_CODECS' \ 88 '-DENABLE_BROWSER_CDMS' \ 89 '-DENABLE_CONFIGURATION_POLICY' \ 90 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 91 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 92 '-DENABLE_EGLIMAGE=1' \ 93 '-DCLD_VERSION=1' \ 94 '-DENABLE_PRINTING=1' \ 95 '-DENABLE_MANAGED_USERS=1' \ 96 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 97 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 98 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 99 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 100 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 101 '-DVIDEO_HOLE=1' \ 102 '-DSHELL_DIALOGS_IMPLEMENTATION' \ 103 '-DSK_ENABLE_INST_COUNT=0' \ 104 '-DSK_SUPPORT_GPU=1' \ 105 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 106 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 107 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 108 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 109 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 110 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 111 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 112 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 113 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 114 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 115 '-DSK_IGNORE_ETC1_SUPPORT' \ 116 '-DSK_IGNORE_GPU_DITHER' \ 117 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 118 '-DSK_BUILD_FOR_ANDROID' \ 119 '-DSK_USE_POSIX_THREADS' \ 120 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 121 '-DU_USING_ICU_NAMESPACE=0' \ 122 '-DUSE_OPENSSL=1' \ 123 '-DUSE_OPENSSL_CERTS=1' \ 124 '-D__STDC_CONSTANT_MACROS' \ 125 '-D__STDC_FORMAT_MACROS' \ 126 '-DANDROID' \ 127 '-D__GNU_SOURCE=1' \ 128 '-DUSE_STLPORT=1' \ 129 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 130 '-DCHROME_BUILD_ID=""' \ 131 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 132 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 133 '-D_DEBUG' 134 135 136 # Include paths placed before CFLAGS/CPPFLAGS 137 LOCAL_C_INCLUDES_Debug := \ 138 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 139 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 140 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 141 $(gyp_shared_intermediate_dir) \ 142 $(gyp_shared_intermediate_dir)/ui \ 143 $(LOCAL_PATH) \ 144 $(LOCAL_PATH)/skia/config \ 145 $(LOCAL_PATH)/third_party/skia/src/core \ 146 $(LOCAL_PATH)/third_party/skia/include/core \ 147 $(LOCAL_PATH)/third_party/skia/include/effects \ 148 $(LOCAL_PATH)/third_party/skia/include/pdf \ 149 $(LOCAL_PATH)/third_party/skia/include/gpu \ 150 $(LOCAL_PATH)/third_party/skia/include/lazy \ 151 $(LOCAL_PATH)/third_party/skia/include/pathops \ 152 $(LOCAL_PATH)/third_party/skia/include/pipe \ 153 $(LOCAL_PATH)/third_party/skia/include/ports \ 154 $(LOCAL_PATH)/third_party/skia/include/utils \ 155 $(LOCAL_PATH)/skia/ext \ 156 $(PWD)/external/icu/icu4c/source/common \ 157 $(PWD)/external/icu/icu4c/source/i18n \ 158 $(gyp_shared_intermediate_dir)/ui/app_locale_settings \ 159 $(gyp_shared_intermediate_dir)/ui/ui_strings \ 160 $(PWD)/frameworks/wilhelm/include \ 161 $(PWD)/bionic \ 162 $(PWD)/external/stlport/stlport 163 164 165 # Flags passed to only C++ (and not C) files. 166 LOCAL_CPPFLAGS_Debug := \ 167 -fno-rtti \ 168 -fno-threadsafe-statics \ 169 -fvisibility-inlines-hidden \ 170 -Wsign-compare \ 171 -Wno-non-virtual-dtor \ 172 -Wno-sign-promo 173 174 175 LOCAL_FDO_SUPPORT_Debug := false 176 177 # Flags passed to both C and C++ files. 178 MY_CFLAGS_Release := \ 179 --param=ssp-buffer-size=4 \ 180 -Werror \ 181 -fno-exceptions \ 182 -fno-strict-aliasing \ 183 -Wall \ 184 -Wno-unused-parameter \ 185 -Wno-missing-field-initializers \ 186 -fvisibility=hidden \ 187 -pipe \ 188 -fPIC \ 189 -Wno-unused-local-typedefs \ 190 -msse2 \ 191 -mfpmath=sse \ 192 -mmmx \ 193 -m32 \ 194 -ffunction-sections \ 195 -funwind-tables \ 196 -g \ 197 -fno-short-enums \ 198 -finline-limit=64 \ 199 -Wa,--noexecstack \ 200 -U_FORTIFY_SOURCE \ 201 -Wno-extra \ 202 -Wno-ignored-qualifiers \ 203 -Wno-type-limits \ 204 -Wno-unused-but-set-variable \ 205 -fno-stack-protector \ 206 -Os \ 207 -fno-ident \ 208 -fdata-sections \ 209 -ffunction-sections \ 210 -fomit-frame-pointer \ 211 -funwind-tables 212 213 MY_DEFS_Release := \ 214 '-DV8_DEPRECATION_WARNINGS' \ 215 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 216 '-D_FILE_OFFSET_BITS=64' \ 217 '-DNO_TCMALLOC' \ 218 '-DDISABLE_NACL' \ 219 '-DCHROMIUM_BUILD' \ 220 '-DUSE_LIBJPEG_TURBO=1' \ 221 '-DENABLE_WEBRTC=1' \ 222 '-DUSE_PROPRIETARY_CODECS' \ 223 '-DENABLE_BROWSER_CDMS' \ 224 '-DENABLE_CONFIGURATION_POLICY' \ 225 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 226 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 227 '-DENABLE_EGLIMAGE=1' \ 228 '-DCLD_VERSION=1' \ 229 '-DENABLE_PRINTING=1' \ 230 '-DENABLE_MANAGED_USERS=1' \ 231 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 232 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 233 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 234 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 235 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 236 '-DVIDEO_HOLE=1' \ 237 '-DSHELL_DIALOGS_IMPLEMENTATION' \ 238 '-DSK_ENABLE_INST_COUNT=0' \ 239 '-DSK_SUPPORT_GPU=1' \ 240 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 241 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 242 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 243 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 244 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 245 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 246 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 247 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 248 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 249 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 250 '-DSK_IGNORE_ETC1_SUPPORT' \ 251 '-DSK_IGNORE_GPU_DITHER' \ 252 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 253 '-DSK_BUILD_FOR_ANDROID' \ 254 '-DSK_USE_POSIX_THREADS' \ 255 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 256 '-DU_USING_ICU_NAMESPACE=0' \ 257 '-DUSE_OPENSSL=1' \ 258 '-DUSE_OPENSSL_CERTS=1' \ 259 '-D__STDC_CONSTANT_MACROS' \ 260 '-D__STDC_FORMAT_MACROS' \ 261 '-DANDROID' \ 262 '-D__GNU_SOURCE=1' \ 263 '-DUSE_STLPORT=1' \ 264 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 265 '-DCHROME_BUILD_ID=""' \ 266 '-DNDEBUG' \ 267 '-DNVALGRIND' \ 268 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 269 '-D_FORTIFY_SOURCE=2' 270 271 272 # Include paths placed before CFLAGS/CPPFLAGS 273 LOCAL_C_INCLUDES_Release := \ 274 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 275 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 276 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 277 $(gyp_shared_intermediate_dir) \ 278 $(gyp_shared_intermediate_dir)/ui \ 279 $(LOCAL_PATH) \ 280 $(LOCAL_PATH)/skia/config \ 281 $(LOCAL_PATH)/third_party/skia/src/core \ 282 $(LOCAL_PATH)/third_party/skia/include/core \ 283 $(LOCAL_PATH)/third_party/skia/include/effects \ 284 $(LOCAL_PATH)/third_party/skia/include/pdf \ 285 $(LOCAL_PATH)/third_party/skia/include/gpu \ 286 $(LOCAL_PATH)/third_party/skia/include/lazy \ 287 $(LOCAL_PATH)/third_party/skia/include/pathops \ 288 $(LOCAL_PATH)/third_party/skia/include/pipe \ 289 $(LOCAL_PATH)/third_party/skia/include/ports \ 290 $(LOCAL_PATH)/third_party/skia/include/utils \ 291 $(LOCAL_PATH)/skia/ext \ 292 $(PWD)/external/icu/icu4c/source/common \ 293 $(PWD)/external/icu/icu4c/source/i18n \ 294 $(gyp_shared_intermediate_dir)/ui/app_locale_settings \ 295 $(gyp_shared_intermediate_dir)/ui/ui_strings \ 296 $(PWD)/frameworks/wilhelm/include \ 297 $(PWD)/bionic \ 298 $(PWD)/external/stlport/stlport 299 300 301 # Flags passed to only C++ (and not C) files. 302 LOCAL_CPPFLAGS_Release := \ 303 -fno-rtti \ 304 -fno-threadsafe-statics \ 305 -fvisibility-inlines-hidden \ 306 -Wsign-compare \ 307 -Wno-non-virtual-dtor \ 308 -Wno-sign-promo 309 310 311 LOCAL_FDO_SUPPORT_Release := false 312 313 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 314 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 315 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 316 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 317 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 318 ### Rules for final target. 319 320 LOCAL_LDFLAGS_Debug := \ 321 -Wl,-z,now \ 322 -Wl,-z,relro \ 323 -Wl,--fatal-warnings \ 324 -Wl,-z,noexecstack \ 325 -fPIC \ 326 -m32 \ 327 -fuse-ld=gold \ 328 -nostdlib \ 329 -Wl,--no-undefined \ 330 -Wl,--exclude-libs=ALL \ 331 -Wl,--warn-shared-textrel \ 332 -Wl,-O1 \ 333 -Wl,--as-needed 334 335 336 LOCAL_LDFLAGS_Release := \ 337 -Wl,-z,now \ 338 -Wl,-z,relro \ 339 -Wl,--fatal-warnings \ 340 -Wl,-z,noexecstack \ 341 -fPIC \ 342 -m32 \ 343 -fuse-ld=gold \ 344 -nostdlib \ 345 -Wl,--no-undefined \ 346 -Wl,--exclude-libs=ALL \ 347 -Wl,-O1 \ 348 -Wl,--as-needed \ 349 -Wl,--gc-sections \ 350 -Wl,--warn-shared-textrel 351 352 353 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 354 355 LOCAL_STATIC_LIBRARIES := \ 356 skia_skia_library_gyp \ 357 ui_base_ui_base_gyp 358 359 # Enable grouping to fix circular references 360 LOCAL_GROUP_STATIC_LIBRARIES := true 361 362 LOCAL_SHARED_LIBRARIES := \ 363 libstlport \ 364 libdl 365 366 # Add target alias to "gyp_all_modules" target. 367 .PHONY: gyp_all_modules 368 gyp_all_modules: ui_shell_dialogs_shell_dialogs_gyp 369 370 # Alias gyp target name. 371 .PHONY: shell_dialogs 372 shell_dialogs: ui_shell_dialogs_shell_dialogs_gyp 373 374 include $(BUILD_STATIC_LIBRARY) 375