1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := ui_shell_dialogs_shell_dialogs_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \ 15 $(call intermediates-dir-for,GYP,ui_base_strings_ui_strings_gyp)/ui_strings.stamp \ 16 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \ 17 $(call intermediates-dir-for,GYP,ui_ui_base_jni_headers_gyp)/ui_base_jni_headers.stamp 18 19GYP_GENERATED_OUTPUTS := 20 21# Make sure our deps and generated files are built first. 22LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 23 24LOCAL_CPP_EXTENSION := .cc 25LOCAL_GENERATED_SOURCES := 26 27GYP_COPIED_SOURCE_ORIGIN_DIRS := 28 29LOCAL_SRC_FILES := \ 30 ui/shell_dialogs/android/shell_dialogs_jni_registrar.cc \ 31 ui/shell_dialogs/base_shell_dialog.cc \ 32 ui/shell_dialogs/linux_shell_dialog.cc \ 33 ui/shell_dialogs/select_file_dialog.cc \ 34 ui/shell_dialogs/select_file_dialog_android.cc \ 35 ui/shell_dialogs/select_file_dialog_factory.cc \ 36 ui/shell_dialogs/select_file_policy.cc \ 37 ui/shell_dialogs/selected_file_info.cc 38 39 40# Flags passed to both C and C++ files. 41MY_CFLAGS_Debug := \ 42 -fstack-protector \ 43 --param=ssp-buffer-size=4 \ 44 -Werror \ 45 -fno-exceptions \ 46 -fno-strict-aliasing \ 47 -Wall \ 48 -Wno-unused-parameter \ 49 -Wno-missing-field-initializers \ 50 -fvisibility=hidden \ 51 -pipe \ 52 -fPIC \ 53 -fno-tree-sra \ 54 -fuse-ld=gold \ 55 -Wno-psabi \ 56 -ffunction-sections \ 57 -funwind-tables \ 58 -g \ 59 -fstack-protector \ 60 -fno-short-enums \ 61 -finline-limit=64 \ 62 -Wa,--noexecstack \ 63 -U_FORTIFY_SOURCE \ 64 -Wno-extra \ 65 -Wno-ignored-qualifiers \ 66 -Wno-type-limits \ 67 -Os \ 68 -g \ 69 -fomit-frame-pointer \ 70 -fdata-sections \ 71 -ffunction-sections 72 73MY_DEFS_Debug := \ 74 '-DV8_DEPRECATION_WARNINGS' \ 75 '-D_FILE_OFFSET_BITS=64' \ 76 '-DNO_TCMALLOC' \ 77 '-DDISABLE_NACL' \ 78 '-DCHROMIUM_BUILD' \ 79 '-DUSE_LIBJPEG_TURBO=1' \ 80 '-DUSE_PROPRIETARY_CODECS' \ 81 '-DENABLE_CONFIGURATION_POLICY' \ 82 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 83 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 84 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 85 '-DUSE_OPENSSL=1' \ 86 '-DENABLE_EGLIMAGE=1' \ 87 '-DCLD_VERSION=1' \ 88 '-DENABLE_PRINTING=1' \ 89 '-DENABLE_MANAGED_USERS=1' \ 90 '-DSHELL_DIALOGS_IMPLEMENTATION' \ 91 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 92 '-DPOSIX_AVOID_MMAP' \ 93 '-DU_USING_ICU_NAMESPACE=0' \ 94 '-D__STDC_CONSTANT_MACROS' \ 95 '-D__STDC_FORMAT_MACROS' \ 96 '-DANDROID' \ 97 '-D__GNU_SOURCE=1' \ 98 '-DUSE_STLPORT=1' \ 99 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 100 '-DCHROME_BUILD_ID=""' \ 101 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 102 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 103 '-D_DEBUG' 104 105 106# Include paths placed before CFLAGS/CPPFLAGS 107LOCAL_C_INCLUDES_Debug := \ 108 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 109 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 110 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 111 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 112 $(gyp_shared_intermediate_dir)/ui \ 113 $(LOCAL_PATH) \ 114 $(LOCAL_PATH)/skia/config \ 115 $(PWD)/external/skia/include \ 116 $(PWD)/external/skia/include/core \ 117 $(LOCAL_PATH)/third_party/skia/src/core \ 118 $(LOCAL_PATH)/skia/ext \ 119 $(gyp_shared_intermediate_dir)/ui/app_locale_settings \ 120 $(gyp_shared_intermediate_dir)/ui/ui_strings \ 121 $(PWD)/external/icu4c/common \ 122 $(PWD)/external/icu4c/i18n \ 123 $(PWD)/frameworks/wilhelm/include \ 124 $(PWD)/bionic \ 125 $(PWD)/external/stlport/stlport 126 127 128# Flags passed to only C++ (and not C) files. 129LOCAL_CPPFLAGS_Debug := \ 130 -fno-rtti \ 131 -fno-threadsafe-statics \ 132 -fvisibility-inlines-hidden \ 133 -Wsign-compare \ 134 -Wno-abi \ 135 -Wno-error=c++0x-compat \ 136 -Wno-non-virtual-dtor \ 137 -Wno-sign-promo 138 139 140# Flags passed to both C and C++ files. 141MY_CFLAGS_Release := \ 142 -fstack-protector \ 143 --param=ssp-buffer-size=4 \ 144 -Werror \ 145 -fno-exceptions \ 146 -fno-strict-aliasing \ 147 -Wall \ 148 -Wno-unused-parameter \ 149 -Wno-missing-field-initializers \ 150 -fvisibility=hidden \ 151 -pipe \ 152 -fPIC \ 153 -fno-tree-sra \ 154 -fuse-ld=gold \ 155 -Wno-psabi \ 156 -ffunction-sections \ 157 -funwind-tables \ 158 -g \ 159 -fstack-protector \ 160 -fno-short-enums \ 161 -finline-limit=64 \ 162 -Wa,--noexecstack \ 163 -U_FORTIFY_SOURCE \ 164 -Wno-extra \ 165 -Wno-ignored-qualifiers \ 166 -Wno-type-limits \ 167 -Os \ 168 -fno-ident \ 169 -fdata-sections \ 170 -ffunction-sections \ 171 -fomit-frame-pointer 172 173MY_DEFS_Release := \ 174 '-DV8_DEPRECATION_WARNINGS' \ 175 '-D_FILE_OFFSET_BITS=64' \ 176 '-DNO_TCMALLOC' \ 177 '-DDISABLE_NACL' \ 178 '-DCHROMIUM_BUILD' \ 179 '-DUSE_LIBJPEG_TURBO=1' \ 180 '-DUSE_PROPRIETARY_CODECS' \ 181 '-DENABLE_CONFIGURATION_POLICY' \ 182 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 183 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 184 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 185 '-DUSE_OPENSSL=1' \ 186 '-DENABLE_EGLIMAGE=1' \ 187 '-DCLD_VERSION=1' \ 188 '-DENABLE_PRINTING=1' \ 189 '-DENABLE_MANAGED_USERS=1' \ 190 '-DSHELL_DIALOGS_IMPLEMENTATION' \ 191 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 192 '-DPOSIX_AVOID_MMAP' \ 193 '-DU_USING_ICU_NAMESPACE=0' \ 194 '-D__STDC_CONSTANT_MACROS' \ 195 '-D__STDC_FORMAT_MACROS' \ 196 '-DANDROID' \ 197 '-D__GNU_SOURCE=1' \ 198 '-DUSE_STLPORT=1' \ 199 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 200 '-DCHROME_BUILD_ID=""' \ 201 '-DNDEBUG' \ 202 '-DNVALGRIND' \ 203 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 204 '-D_FORTIFY_SOURCE=2' 205 206 207# Include paths placed before CFLAGS/CPPFLAGS 208LOCAL_C_INCLUDES_Release := \ 209 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 210 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 211 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 212 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 213 $(gyp_shared_intermediate_dir)/ui \ 214 $(LOCAL_PATH) \ 215 $(LOCAL_PATH)/skia/config \ 216 $(PWD)/external/skia/include \ 217 $(PWD)/external/skia/include/core \ 218 $(LOCAL_PATH)/third_party/skia/src/core \ 219 $(LOCAL_PATH)/skia/ext \ 220 $(gyp_shared_intermediate_dir)/ui/app_locale_settings \ 221 $(gyp_shared_intermediate_dir)/ui/ui_strings \ 222 $(PWD)/external/icu4c/common \ 223 $(PWD)/external/icu4c/i18n \ 224 $(PWD)/frameworks/wilhelm/include \ 225 $(PWD)/bionic \ 226 $(PWD)/external/stlport/stlport 227 228 229# Flags passed to only C++ (and not C) files. 230LOCAL_CPPFLAGS_Release := \ 231 -fno-rtti \ 232 -fno-threadsafe-statics \ 233 -fvisibility-inlines-hidden \ 234 -Wsign-compare \ 235 -Wno-abi \ 236 -Wno-error=c++0x-compat \ 237 -Wno-non-virtual-dtor \ 238 -Wno-sign-promo 239 240 241LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 242LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 243LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 244### Rules for final target. 245 246LOCAL_LDFLAGS_Debug := \ 247 -Wl,-z,now \ 248 -Wl,-z,relro \ 249 -Wl,-z,noexecstack \ 250 -fPIC \ 251 -Wl,-z,relro \ 252 -Wl,-z,now \ 253 -fuse-ld=gold \ 254 -nostdlib \ 255 -Wl,--no-undefined \ 256 -Wl,--exclude-libs=ALL \ 257 -Wl,--icf=safe \ 258 -Wl,--fatal-warnings \ 259 -Wl,--gc-sections \ 260 -Wl,--warn-shared-textrel \ 261 -Wl,-O1 \ 262 -Wl,--as-needed 263 264 265LOCAL_LDFLAGS_Release := \ 266 -Wl,-z,now \ 267 -Wl,-z,relro \ 268 -Wl,-z,noexecstack \ 269 -fPIC \ 270 -Wl,-z,relro \ 271 -Wl,-z,now \ 272 -fuse-ld=gold \ 273 -nostdlib \ 274 -Wl,--no-undefined \ 275 -Wl,--exclude-libs=ALL \ 276 -Wl,--icf=safe \ 277 -Wl,-O1 \ 278 -Wl,--as-needed \ 279 -Wl,--gc-sections \ 280 -Wl,--fatal-warnings \ 281 -Wl,--warn-shared-textrel 282 283 284LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 285 286LOCAL_STATIC_LIBRARIES := \ 287 ui_ui_gyp 288 289# Enable grouping to fix circular references 290LOCAL_GROUP_STATIC_LIBRARIES := true 291 292LOCAL_SHARED_LIBRARIES := \ 293 libskia \ 294 libstlport \ 295 libdl 296 297# Add target alias to "gyp_all_modules" target. 298.PHONY: gyp_all_modules 299gyp_all_modules: ui_shell_dialogs_shell_dialogs_gyp 300 301# Alias gyp target name. 302.PHONY: shell_dialogs 303shell_dialogs: ui_shell_dialogs_shell_dialogs_gyp 304 305include $(BUILD_STATIC_LIBRARY) 306