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