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 \ 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 -EL \ 57 -mhard-float \ 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-uninitialized \ 172 -Wno-non-virtual-dtor \ 173 -Wno-sign-promo 174 175 176 LOCAL_FDO_SUPPORT_Debug := false 177 178 # Flags passed to both C and C++ files. 179 MY_CFLAGS_Release := \ 180 -fstack-protector \ 181 --param=ssp-buffer-size=4 \ 182 \ 183 -fno-exceptions \ 184 -fno-strict-aliasing \ 185 -Wall \ 186 -Wno-unused-parameter \ 187 -Wno-missing-field-initializers \ 188 -fvisibility=hidden \ 189 -pipe \ 190 -fPIC \ 191 -Wno-unused-local-typedefs \ 192 -EL \ 193 -mhard-float \ 194 -ffunction-sections \ 195 -funwind-tables \ 196 -g \ 197 -fstack-protector \ 198 -fno-short-enums \ 199 -finline-limit=64 \ 200 -Wa,--noexecstack \ 201 -U_FORTIFY_SOURCE \ 202 -Wno-extra \ 203 -Wno-ignored-qualifiers \ 204 -Wno-type-limits \ 205 -Wno-unused-but-set-variable \ 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 '-DPOSIX_AVOID_MMAP' \ 257 '-DU_USING_ICU_NAMESPACE=0' \ 258 '-DUSE_OPENSSL=1' \ 259 '-DUSE_OPENSSL_CERTS=1' \ 260 '-D__STDC_CONSTANT_MACROS' \ 261 '-D__STDC_FORMAT_MACROS' \ 262 '-DANDROID' \ 263 '-D__GNU_SOURCE=1' \ 264 '-DUSE_STLPORT=1' \ 265 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 266 '-DCHROME_BUILD_ID=""' \ 267 '-DNDEBUG' \ 268 '-DNVALGRIND' \ 269 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 270 '-D_FORTIFY_SOURCE=2' 271 272 273 # Include paths placed before CFLAGS/CPPFLAGS 274 LOCAL_C_INCLUDES_Release := \ 275 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 276 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 277 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 278 $(gyp_shared_intermediate_dir) \ 279 $(gyp_shared_intermediate_dir)/ui \ 280 $(LOCAL_PATH) \ 281 $(LOCAL_PATH)/skia/config \ 282 $(LOCAL_PATH)/third_party/skia/src/core \ 283 $(LOCAL_PATH)/third_party/skia/include/core \ 284 $(LOCAL_PATH)/third_party/skia/include/effects \ 285 $(LOCAL_PATH)/third_party/skia/include/pdf \ 286 $(LOCAL_PATH)/third_party/skia/include/gpu \ 287 $(LOCAL_PATH)/third_party/skia/include/lazy \ 288 $(LOCAL_PATH)/third_party/skia/include/pathops \ 289 $(LOCAL_PATH)/third_party/skia/include/pipe \ 290 $(LOCAL_PATH)/third_party/skia/include/ports \ 291 $(LOCAL_PATH)/third_party/skia/include/utils \ 292 $(LOCAL_PATH)/skia/ext \ 293 $(PWD)/external/icu/icu4c/source/common \ 294 $(PWD)/external/icu/icu4c/source/i18n \ 295 $(gyp_shared_intermediate_dir)/ui/app_locale_settings \ 296 $(gyp_shared_intermediate_dir)/ui/ui_strings \ 297 $(PWD)/frameworks/wilhelm/include \ 298 $(PWD)/bionic \ 299 $(PWD)/external/stlport/stlport 300 301 302 # Flags passed to only C++ (and not C) files. 303 LOCAL_CPPFLAGS_Release := \ 304 -fno-rtti \ 305 -fno-threadsafe-statics \ 306 -fvisibility-inlines-hidden \ 307 -Wsign-compare \ 308 -Wno-uninitialized \ 309 -Wno-non-virtual-dtor \ 310 -Wno-sign-promo 311 312 313 LOCAL_FDO_SUPPORT_Release := false 314 315 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 316 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 317 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 318 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 319 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 320 ### Rules for final target. 321 322 LOCAL_LDFLAGS_Debug := \ 323 -Wl,-z,now \ 324 -Wl,-z,relro \ 325 -Wl,--fatal-warnings \ 326 -Wl,-z,noexecstack \ 327 -fPIC \ 328 -EL \ 329 -Wl,--no-keep-memory \ 330 -nostdlib \ 331 -Wl,--no-undefined \ 332 -Wl,--exclude-libs=ALL \ 333 -Wl,--warn-shared-textrel \ 334 -Wl,-O1 \ 335 -Wl,--as-needed 336 337 338 LOCAL_LDFLAGS_Release := \ 339 -Wl,-z,now \ 340 -Wl,-z,relro \ 341 -Wl,--fatal-warnings \ 342 -Wl,-z,noexecstack \ 343 -fPIC \ 344 -EL \ 345 -Wl,--no-keep-memory \ 346 -nostdlib \ 347 -Wl,--no-undefined \ 348 -Wl,--exclude-libs=ALL \ 349 -Wl,-O1 \ 350 -Wl,--as-needed \ 351 -Wl,--gc-sections \ 352 -Wl,--warn-shared-textrel 353 354 355 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 356 357 LOCAL_STATIC_LIBRARIES := \ 358 skia_skia_library_gyp \ 359 ui_base_ui_base_gyp 360 361 # Enable grouping to fix circular references 362 LOCAL_GROUP_STATIC_LIBRARIES := true 363 364 LOCAL_SHARED_LIBRARIES := \ 365 libstlport \ 366 libdl 367 368 # Add target alias to "gyp_all_modules" target. 369 .PHONY: gyp_all_modules 370 gyp_all_modules: ui_shell_dialogs_shell_dialogs_gyp 371 372 # Alias gyp target name. 373 .PHONY: shell_dialogs 374 shell_dialogs: ui_shell_dialogs_shell_dialogs_gyp 375 376 include $(BUILD_STATIC_LIBRARY) 377