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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \ 15 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \ 16 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_base_ui_base_gyp,,,$(GYP_VAR_PREFIX))/ui_base_ui_base_gyp.a \ 17 $(call intermediates-dir-for,GYP,ui_strings_ui_strings_gyp,,,$(GYP_VAR_PREFIX))/ui_strings.stamp \ 18 $(call intermediates-dir-for,GYP,ui_base_ui_base_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/ui_base_jni_headers.stamp 19 20 GYP_GENERATED_OUTPUTS := 21 22 # Make sure our deps and generated files are built first. 23 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 24 25 LOCAL_CPP_EXTENSION := .cc 26 LOCAL_GENERATED_SOURCES := 27 28 GYP_COPIED_SOURCE_ORIGIN_DIRS := 29 30 LOCAL_SRC_FILES := \ 31 ui/shell_dialogs/android/shell_dialogs_jni_registrar.cc \ 32 ui/shell_dialogs/base_shell_dialog.cc \ 33 ui/shell_dialogs/linux_shell_dialog.cc \ 34 ui/shell_dialogs/select_file_dialog.cc \ 35 ui/shell_dialogs/select_file_dialog_android.cc \ 36 ui/shell_dialogs/select_file_dialog_factory.cc \ 37 ui/shell_dialogs/select_file_policy.cc \ 38 ui/shell_dialogs/selected_file_info.cc 39 40 41 # Flags passed to both C and C++ files. 42 MY_CFLAGS_Debug := \ 43 -fstack-protector \ 44 --param=ssp-buffer-size=4 \ 45 \ 46 -fno-strict-aliasing \ 47 -Wall \ 48 -Wno-unused-parameter \ 49 -Wno-missing-field-initializers \ 50 -fvisibility=hidden \ 51 -pipe \ 52 -fPIC \ 53 -Wno-unused-local-typedefs \ 54 -ffunction-sections \ 55 -funwind-tables \ 56 -g \ 57 -fstack-protector \ 58 -fno-short-enums \ 59 -finline-limit=64 \ 60 -Wa,--noexecstack \ 61 -U_FORTIFY_SOURCE \ 62 -Wno-extra \ 63 -Wno-ignored-qualifiers \ 64 -Wno-type-limits \ 65 -Wno-unused-but-set-variable \ 66 -Os \ 67 -g \ 68 -gdwarf-4 \ 69 -fdata-sections \ 70 -ffunction-sections \ 71 -fomit-frame-pointer \ 72 -funwind-tables 73 74 MY_DEFS_Debug := \ 75 '-DV8_DEPRECATION_WARNINGS' \ 76 '-D_FILE_OFFSET_BITS=64' \ 77 '-DNO_TCMALLOC' \ 78 '-DDISABLE_NACL' \ 79 '-DCHROMIUM_BUILD' \ 80 '-DUSE_LIBJPEG_TURBO=1' \ 81 '-DENABLE_WEBRTC=1' \ 82 '-DUSE_PROPRIETARY_CODECS' \ 83 '-DENABLE_BROWSER_CDMS' \ 84 '-DENABLE_CONFIGURATION_POLICY' \ 85 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 86 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 87 '-DENABLE_EGLIMAGE=1' \ 88 '-DCLD_VERSION=1' \ 89 '-DENABLE_PRINTING=1' \ 90 '-DENABLE_MANAGED_USERS=1' \ 91 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 92 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 93 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 94 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 95 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 96 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 97 '-DVIDEO_HOLE=1' \ 98 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 99 '-DSHELL_DIALOGS_IMPLEMENTATION' \ 100 '-DSK_ENABLE_INST_COUNT=0' \ 101 '-DSK_SUPPORT_GPU=1' \ 102 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 103 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 104 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 105 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 106 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 107 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 108 '-DSK_BUILD_FOR_ANDROID' \ 109 '-DSK_USE_POSIX_THREADS' \ 110 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 111 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 112 '-DPOSIX_AVOID_MMAP' \ 113 '-DU_USING_ICU_NAMESPACE=0' \ 114 '-DU_ENABLE_DYLOAD=0' \ 115 '-DUSE_OPENSSL=1' \ 116 '-DUSE_OPENSSL_CERTS=1' \ 117 '-D__STDC_CONSTANT_MACROS' \ 118 '-D__STDC_FORMAT_MACROS' \ 119 '-DANDROID' \ 120 '-D__GNU_SOURCE=1' \ 121 '-DUSE_STLPORT=1' \ 122 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 123 '-DCHROME_BUILD_ID=""' \ 124 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 125 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 126 '-D_DEBUG' 127 128 129 # Include paths placed before CFLAGS/CPPFLAGS 130 LOCAL_C_INCLUDES_Debug := \ 131 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 132 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 133 $(gyp_shared_intermediate_dir) \ 134 $(gyp_shared_intermediate_dir)/ui \ 135 $(LOCAL_PATH) \ 136 $(LOCAL_PATH)/skia/config \ 137 $(LOCAL_PATH)/third_party/skia/src/core \ 138 $(LOCAL_PATH)/third_party/skia/include/core \ 139 $(LOCAL_PATH)/third_party/skia/include/effects \ 140 $(LOCAL_PATH)/third_party/skia/include/pdf \ 141 $(LOCAL_PATH)/third_party/skia/include/gpu \ 142 $(LOCAL_PATH)/third_party/skia/include/lazy \ 143 $(LOCAL_PATH)/third_party/skia/include/pathops \ 144 $(LOCAL_PATH)/third_party/skia/include/pipe \ 145 $(LOCAL_PATH)/third_party/skia/include/ports \ 146 $(LOCAL_PATH)/third_party/skia/include/utils \ 147 $(LOCAL_PATH)/skia/ext \ 148 $(PWD)/external/icu/icu4c/source/common \ 149 $(PWD)/external/icu/icu4c/source/i18n \ 150 $(PWD)/frameworks/wilhelm/include \ 151 $(PWD)/bionic \ 152 $(PWD)/external/stlport/stlport 153 154 155 # Flags passed to only C++ (and not C) files. 156 LOCAL_CPPFLAGS_Debug := \ 157 -fno-exceptions \ 158 -fno-rtti \ 159 -fno-threadsafe-statics \ 160 -fvisibility-inlines-hidden \ 161 -Wsign-compare \ 162 -Wno-uninitialized \ 163 -std=gnu++11 \ 164 -Wno-narrowing \ 165 -Wno-literal-suffix \ 166 -Wno-non-virtual-dtor \ 167 -Wno-sign-promo 168 169 170 # Flags passed to both C and C++ files. 171 MY_CFLAGS_Release := \ 172 -fstack-protector \ 173 --param=ssp-buffer-size=4 \ 174 \ 175 -fno-strict-aliasing \ 176 -Wall \ 177 -Wno-unused-parameter \ 178 -Wno-missing-field-initializers \ 179 -fvisibility=hidden \ 180 -pipe \ 181 -fPIC \ 182 -Wno-unused-local-typedefs \ 183 -ffunction-sections \ 184 -funwind-tables \ 185 -g \ 186 -fstack-protector \ 187 -fno-short-enums \ 188 -finline-limit=64 \ 189 -Wa,--noexecstack \ 190 -U_FORTIFY_SOURCE \ 191 -Wno-extra \ 192 -Wno-ignored-qualifiers \ 193 -Wno-type-limits \ 194 -Wno-unused-but-set-variable \ 195 -Os \ 196 -fno-ident \ 197 -fdata-sections \ 198 -ffunction-sections \ 199 -fomit-frame-pointer \ 200 -funwind-tables 201 202 MY_DEFS_Release := \ 203 '-DV8_DEPRECATION_WARNINGS' \ 204 '-D_FILE_OFFSET_BITS=64' \ 205 '-DNO_TCMALLOC' \ 206 '-DDISABLE_NACL' \ 207 '-DCHROMIUM_BUILD' \ 208 '-DUSE_LIBJPEG_TURBO=1' \ 209 '-DENABLE_WEBRTC=1' \ 210 '-DUSE_PROPRIETARY_CODECS' \ 211 '-DENABLE_BROWSER_CDMS' \ 212 '-DENABLE_CONFIGURATION_POLICY' \ 213 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 214 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 215 '-DENABLE_EGLIMAGE=1' \ 216 '-DCLD_VERSION=1' \ 217 '-DENABLE_PRINTING=1' \ 218 '-DENABLE_MANAGED_USERS=1' \ 219 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 220 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 221 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 222 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 223 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 224 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 225 '-DVIDEO_HOLE=1' \ 226 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 227 '-DSHELL_DIALOGS_IMPLEMENTATION' \ 228 '-DSK_ENABLE_INST_COUNT=0' \ 229 '-DSK_SUPPORT_GPU=1' \ 230 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 231 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 232 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 233 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 234 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 235 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 236 '-DSK_BUILD_FOR_ANDROID' \ 237 '-DSK_USE_POSIX_THREADS' \ 238 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 239 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 240 '-DPOSIX_AVOID_MMAP' \ 241 '-DU_USING_ICU_NAMESPACE=0' \ 242 '-DU_ENABLE_DYLOAD=0' \ 243 '-DUSE_OPENSSL=1' \ 244 '-DUSE_OPENSSL_CERTS=1' \ 245 '-D__STDC_CONSTANT_MACROS' \ 246 '-D__STDC_FORMAT_MACROS' \ 247 '-DANDROID' \ 248 '-D__GNU_SOURCE=1' \ 249 '-DUSE_STLPORT=1' \ 250 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 251 '-DCHROME_BUILD_ID=""' \ 252 '-DNDEBUG' \ 253 '-DNVALGRIND' \ 254 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 255 '-D_FORTIFY_SOURCE=2' 256 257 258 # Include paths placed before CFLAGS/CPPFLAGS 259 LOCAL_C_INCLUDES_Release := \ 260 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 261 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 262 $(gyp_shared_intermediate_dir) \ 263 $(gyp_shared_intermediate_dir)/ui \ 264 $(LOCAL_PATH) \ 265 $(LOCAL_PATH)/skia/config \ 266 $(LOCAL_PATH)/third_party/skia/src/core \ 267 $(LOCAL_PATH)/third_party/skia/include/core \ 268 $(LOCAL_PATH)/third_party/skia/include/effects \ 269 $(LOCAL_PATH)/third_party/skia/include/pdf \ 270 $(LOCAL_PATH)/third_party/skia/include/gpu \ 271 $(LOCAL_PATH)/third_party/skia/include/lazy \ 272 $(LOCAL_PATH)/third_party/skia/include/pathops \ 273 $(LOCAL_PATH)/third_party/skia/include/pipe \ 274 $(LOCAL_PATH)/third_party/skia/include/ports \ 275 $(LOCAL_PATH)/third_party/skia/include/utils \ 276 $(LOCAL_PATH)/skia/ext \ 277 $(PWD)/external/icu/icu4c/source/common \ 278 $(PWD)/external/icu/icu4c/source/i18n \ 279 $(PWD)/frameworks/wilhelm/include \ 280 $(PWD)/bionic \ 281 $(PWD)/external/stlport/stlport 282 283 284 # Flags passed to only C++ (and not C) files. 285 LOCAL_CPPFLAGS_Release := \ 286 -fno-exceptions \ 287 -fno-rtti \ 288 -fno-threadsafe-statics \ 289 -fvisibility-inlines-hidden \ 290 -Wsign-compare \ 291 -Wno-uninitialized \ 292 -std=gnu++11 \ 293 -Wno-narrowing \ 294 -Wno-literal-suffix \ 295 -Wno-non-virtual-dtor \ 296 -Wno-sign-promo 297 298 299 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 300 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 301 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 302 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 303 ### Rules for final target. 304 305 LOCAL_SHARED_LIBRARIES := \ 306 libstlport \ 307 libdl 308 309 # Add target alias to "gyp_all_modules" target. 310 .PHONY: gyp_all_modules 311 gyp_all_modules: ui_shell_dialogs_shell_dialogs_gyp 312 313 # Alias gyp target name. 314 .PHONY: shell_dialogs 315 shell_dialogs: ui_shell_dialogs_shell_dialogs_gyp 316 317 include $(BUILD_STATIC_LIBRARY) 318