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 --param=ssp-buffer-size=4 \ 43 -Werror \ 44 -fno-exceptions \ 45 -fno-strict-aliasing \ 46 -Wall \ 47 -Wno-unused-parameter \ 48 -Wno-missing-field-initializers \ 49 -fvisibility=hidden \ 50 -pipe \ 51 -fPIC \ 52 -m32 \ 53 -mmmx \ 54 -march=pentium4 \ 55 -msse2 \ 56 -mfpmath=sse \ 57 -fuse-ld=gold \ 58 -ffunction-sections \ 59 -funwind-tables \ 60 -g \ 61 -fno-short-enums \ 62 -finline-limit=64 \ 63 -Wa,--noexecstack \ 64 -U_FORTIFY_SOURCE \ 65 -Wno-extra \ 66 -Wno-ignored-qualifiers \ 67 -Wno-type-limits \ 68 -fno-stack-protector \ 69 -Os \ 70 -g \ 71 -fomit-frame-pointer \ 72 -fdata-sections \ 73 -ffunction-sections 74 75MY_DEFS_Debug := \ 76 '-DV8_DEPRECATION_WARNINGS' \ 77 '-D_FILE_OFFSET_BITS=64' \ 78 '-DNO_TCMALLOC' \ 79 '-DDISABLE_NACL' \ 80 '-DCHROMIUM_BUILD' \ 81 '-DUSE_LIBJPEG_TURBO=1' \ 82 '-DUSE_PROPRIETARY_CODECS' \ 83 '-DENABLE_CONFIGURATION_POLICY' \ 84 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 85 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 86 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 87 '-DUSE_OPENSSL=1' \ 88 '-DENABLE_EGLIMAGE=1' \ 89 '-DCLD_VERSION=1' \ 90 '-DENABLE_PRINTING=1' \ 91 '-DENABLE_MANAGED_USERS=1' \ 92 '-DSHELL_DIALOGS_IMPLEMENTATION' \ 93 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 94 '-DU_USING_ICU_NAMESPACE=0' \ 95 '-D__STDC_CONSTANT_MACROS' \ 96 '-D__STDC_FORMAT_MACROS' \ 97 '-DANDROID' \ 98 '-D__GNU_SOURCE=1' \ 99 '-DUSE_STLPORT=1' \ 100 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 101 '-DCHROME_BUILD_ID=""' \ 102 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 103 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 104 '-D_DEBUG' 105 106 107# Include paths placed before CFLAGS/CPPFLAGS 108LOCAL_C_INCLUDES_Debug := \ 109 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 110 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 111 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 112 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 113 $(gyp_shared_intermediate_dir)/ui \ 114 $(LOCAL_PATH) \ 115 $(LOCAL_PATH)/skia/config \ 116 $(PWD)/external/skia/include \ 117 $(PWD)/external/skia/include/core \ 118 $(LOCAL_PATH)/third_party/skia/src/core \ 119 $(LOCAL_PATH)/skia/ext \ 120 $(gyp_shared_intermediate_dir)/ui/app_locale_settings \ 121 $(gyp_shared_intermediate_dir)/ui/ui_strings \ 122 $(PWD)/external/icu4c/common \ 123 $(PWD)/external/icu4c/i18n \ 124 $(PWD)/frameworks/wilhelm/include \ 125 $(PWD)/bionic \ 126 $(PWD)/external/stlport/stlport 127 128 129# Flags passed to only C++ (and not C) files. 130LOCAL_CPPFLAGS_Debug := \ 131 -fno-rtti \ 132 -fno-threadsafe-statics \ 133 -fvisibility-inlines-hidden \ 134 -Wsign-compare \ 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 --param=ssp-buffer-size=4 \ 143 -Werror \ 144 -fno-exceptions \ 145 -fno-strict-aliasing \ 146 -Wall \ 147 -Wno-unused-parameter \ 148 -Wno-missing-field-initializers \ 149 -fvisibility=hidden \ 150 -pipe \ 151 -fPIC \ 152 -m32 \ 153 -mmmx \ 154 -march=pentium4 \ 155 -msse2 \ 156 -mfpmath=sse \ 157 -fuse-ld=gold \ 158 -ffunction-sections \ 159 -funwind-tables \ 160 -g \ 161 -fno-short-enums \ 162 -finline-limit=64 \ 163 -Wa,--noexecstack \ 164 -U_FORTIFY_SOURCE \ 165 -Wno-extra \ 166 -Wno-ignored-qualifiers \ 167 -Wno-type-limits \ 168 -fno-stack-protector \ 169 -Os \ 170 -fno-ident \ 171 -fdata-sections \ 172 -ffunction-sections \ 173 -fomit-frame-pointer \ 174 -fno-unwind-tables \ 175 -fno-asynchronous-unwind-tables 176 177MY_DEFS_Release := \ 178 '-DV8_DEPRECATION_WARNINGS' \ 179 '-D_FILE_OFFSET_BITS=64' \ 180 '-DNO_TCMALLOC' \ 181 '-DDISABLE_NACL' \ 182 '-DCHROMIUM_BUILD' \ 183 '-DUSE_LIBJPEG_TURBO=1' \ 184 '-DUSE_PROPRIETARY_CODECS' \ 185 '-DENABLE_CONFIGURATION_POLICY' \ 186 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 187 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 188 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 189 '-DUSE_OPENSSL=1' \ 190 '-DENABLE_EGLIMAGE=1' \ 191 '-DCLD_VERSION=1' \ 192 '-DENABLE_PRINTING=1' \ 193 '-DENABLE_MANAGED_USERS=1' \ 194 '-DSHELL_DIALOGS_IMPLEMENTATION' \ 195 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 196 '-DU_USING_ICU_NAMESPACE=0' \ 197 '-D__STDC_CONSTANT_MACROS' \ 198 '-D__STDC_FORMAT_MACROS' \ 199 '-DANDROID' \ 200 '-D__GNU_SOURCE=1' \ 201 '-DUSE_STLPORT=1' \ 202 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 203 '-DCHROME_BUILD_ID=""' \ 204 '-DNDEBUG' \ 205 '-DNVALGRIND' \ 206 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 207 '-D_FORTIFY_SOURCE=2' 208 209 210# Include paths placed before CFLAGS/CPPFLAGS 211LOCAL_C_INCLUDES_Release := \ 212 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 213 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 214 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 215 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 216 $(gyp_shared_intermediate_dir)/ui \ 217 $(LOCAL_PATH) \ 218 $(LOCAL_PATH)/skia/config \ 219 $(PWD)/external/skia/include \ 220 $(PWD)/external/skia/include/core \ 221 $(LOCAL_PATH)/third_party/skia/src/core \ 222 $(LOCAL_PATH)/skia/ext \ 223 $(gyp_shared_intermediate_dir)/ui/app_locale_settings \ 224 $(gyp_shared_intermediate_dir)/ui/ui_strings \ 225 $(PWD)/external/icu4c/common \ 226 $(PWD)/external/icu4c/i18n \ 227 $(PWD)/frameworks/wilhelm/include \ 228 $(PWD)/bionic \ 229 $(PWD)/external/stlport/stlport 230 231 232# Flags passed to only C++ (and not C) files. 233LOCAL_CPPFLAGS_Release := \ 234 -fno-rtti \ 235 -fno-threadsafe-statics \ 236 -fvisibility-inlines-hidden \ 237 -Wsign-compare \ 238 -Wno-error=c++0x-compat \ 239 -Wno-non-virtual-dtor \ 240 -Wno-sign-promo 241 242 243LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 244LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 245LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 246### Rules for final target. 247 248LOCAL_LDFLAGS_Debug := \ 249 -Wl,-z,now \ 250 -Wl,-z,relro \ 251 -Wl,-z,noexecstack \ 252 -fPIC \ 253 -m32 \ 254 -fuse-ld=gold \ 255 -nostdlib \ 256 -Wl,--no-undefined \ 257 -Wl,--exclude-libs=ALL \ 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 -m32 \ 271 -fuse-ld=gold \ 272 -nostdlib \ 273 -Wl,--no-undefined \ 274 -Wl,--exclude-libs=ALL \ 275 -Wl,-O1 \ 276 -Wl,--as-needed \ 277 -Wl,--gc-sections \ 278 -Wl,--fatal-warnings \ 279 -Wl,--warn-shared-textrel 280 281 282LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 283 284LOCAL_STATIC_LIBRARIES := \ 285 ui_ui_gyp 286 287# Enable grouping to fix circular references 288LOCAL_GROUP_STATIC_LIBRARIES := true 289 290LOCAL_SHARED_LIBRARIES := \ 291 libskia \ 292 libstlport \ 293 libdl 294 295# Add target alias to "gyp_all_modules" target. 296.PHONY: gyp_all_modules 297gyp_all_modules: ui_shell_dialogs_shell_dialogs_gyp 298 299# Alias gyp target name. 300.PHONY: shell_dialogs 301shell_dialogs: ui_shell_dialogs_shell_dialogs_gyp 302 303include $(BUILD_STATIC_LIBRARY) 304