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