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