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