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