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 -m64 \ 57 -march=x86-64 \ 58 -ffunction-sections \ 59 -funwind-tables \ 60 -g \ 61 -fstack-protector \ 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 -Os \ 71 -g \ 72 -fdata-sections \ 73 -ffunction-sections \ 74 -fomit-frame-pointer \ 75 -funwind-tables 76 77 MY_DEFS_Debug := \ 78 '-DV8_DEPRECATION_WARNINGS' \ 79 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 80 '-D_FILE_OFFSET_BITS=64' \ 81 '-DNO_TCMALLOC' \ 82 '-DDISABLE_NACL' \ 83 '-DCHROMIUM_BUILD' \ 84 '-DUSE_LIBJPEG_TURBO=1' \ 85 '-DENABLE_WEBRTC=1' \ 86 '-DUSE_PROPRIETARY_CODECS' \ 87 '-DENABLE_BROWSER_CDMS' \ 88 '-DENABLE_CONFIGURATION_POLICY' \ 89 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 90 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 91 '-DENABLE_EGLIMAGE=1' \ 92 '-DCLD_VERSION=1' \ 93 '-DENABLE_PRINTING=1' \ 94 '-DENABLE_MANAGED_USERS=1' \ 95 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 96 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 97 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 98 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 99 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 100 '-DVIDEO_HOLE=1' \ 101 '-DSHELL_DIALOGS_IMPLEMENTATION' \ 102 '-DSK_ENABLE_INST_COUNT=0' \ 103 '-DSK_SUPPORT_GPU=1' \ 104 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 105 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 106 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 107 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 108 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 109 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 110 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 111 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 112 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 113 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 114 '-DSK_IGNORE_ETC1_SUPPORT' \ 115 '-DSK_IGNORE_GPU_DITHER' \ 116 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 117 '-DSK_BUILD_FOR_ANDROID' \ 118 '-DSK_USE_POSIX_THREADS' \ 119 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 120 '-DPOSIX_AVOID_MMAP' \ 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 -fstack-protector \ 180 --param=ssp-buffer-size=4 \ 181 -Werror \ 182 -fno-exceptions \ 183 -fno-strict-aliasing \ 184 -Wall \ 185 -Wno-unused-parameter \ 186 -Wno-missing-field-initializers \ 187 -fvisibility=hidden \ 188 -pipe \ 189 -fPIC \ 190 -Wno-unused-local-typedefs \ 191 -m64 \ 192 -march=x86-64 \ 193 -ffunction-sections \ 194 -funwind-tables \ 195 -g \ 196 -fstack-protector \ 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 -Os \ 206 -fno-ident \ 207 -fdata-sections \ 208 -ffunction-sections \ 209 -fomit-frame-pointer \ 210 -funwind-tables 211 212 MY_DEFS_Release := \ 213 '-DV8_DEPRECATION_WARNINGS' \ 214 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 215 '-D_FILE_OFFSET_BITS=64' \ 216 '-DNO_TCMALLOC' \ 217 '-DDISABLE_NACL' \ 218 '-DCHROMIUM_BUILD' \ 219 '-DUSE_LIBJPEG_TURBO=1' \ 220 '-DENABLE_WEBRTC=1' \ 221 '-DUSE_PROPRIETARY_CODECS' \ 222 '-DENABLE_BROWSER_CDMS' \ 223 '-DENABLE_CONFIGURATION_POLICY' \ 224 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 225 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 226 '-DENABLE_EGLIMAGE=1' \ 227 '-DCLD_VERSION=1' \ 228 '-DENABLE_PRINTING=1' \ 229 '-DENABLE_MANAGED_USERS=1' \ 230 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 231 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 232 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 233 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 234 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 235 '-DVIDEO_HOLE=1' \ 236 '-DSHELL_DIALOGS_IMPLEMENTATION' \ 237 '-DSK_ENABLE_INST_COUNT=0' \ 238 '-DSK_SUPPORT_GPU=1' \ 239 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 240 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 241 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 242 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 243 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 244 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 245 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 246 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 247 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 248 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 249 '-DSK_IGNORE_ETC1_SUPPORT' \ 250 '-DSK_IGNORE_GPU_DITHER' \ 251 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 252 '-DSK_BUILD_FOR_ANDROID' \ 253 '-DSK_USE_POSIX_THREADS' \ 254 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 255 '-DPOSIX_AVOID_MMAP' \ 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 -m64 \ 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 -m64 \ 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