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