| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 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,STATIC_LIBRARIES,skia_skia_gyp)/skia_skia_gyp.a \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 16 | $(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \ |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 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 := \ |
| 42 | --param=ssp-buffer-size=4 \ |
| 43 | -Werror \ |
| 44 | -fno-exceptions \ |
| 45 | -fno-strict-aliasing \ |
| 46 | -Wall \ |
| 47 | -Wno-unused-parameter \ |
| 48 | -Wno-missing-field-initializers \ |
| 49 | -fvisibility=hidden \ |
| 50 | -pipe \ |
| 51 | -fPIC \ |
| 52 | -m32 \ |
| 53 | -mmmx \ |
| 54 | -march=pentium4 \ |
| 55 | -msse2 \ |
| 56 | -mfpmath=sse \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 57 | -fuse-ld=gold \ |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 58 | -ffunction-sections \ |
| 59 | -funwind-tables \ |
| 60 | -g \ |
| 61 | -fno-short-enums \ |
| 62 | -finline-limit=64 \ |
| 63 | -Wa,--noexecstack \ |
| 64 | -U_FORTIFY_SOURCE \ |
| 65 | -Wno-extra \ |
| 66 | -Wno-ignored-qualifiers \ |
| 67 | -Wno-type-limits \ |
| 68 | -fno-stack-protector \ |
| 69 | -Os \ |
| 70 | -g \ |
| 71 | -fomit-frame-pointer \ |
| 72 | -fdata-sections \ |
| 73 | -ffunction-sections |
| 74 | |
| 75 | MY_CFLAGS_C := |
| 76 | |
| 77 | MY_DEFS := \ |
| Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame^] | 78 | '-DANGLE_DX11' \ |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 79 | '-D_FILE_OFFSET_BITS=64' \ |
| 80 | '-DUSE_LINUX_BREAKPAD' \ |
| 81 | '-DNO_TCMALLOC' \ |
| 82 | '-DDISABLE_NACL' \ |
| 83 | '-DCHROMIUM_BUILD' \ |
| 84 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 85 | '-DUSE_PROPRIETARY_CODECS' \ |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 86 | '-DENABLE_GPU=1' \ |
| 87 | '-DUSE_OPENSSL=1' \ |
| 88 | '-DENABLE_EGLIMAGE=1' \ |
| 89 | '-DENABLE_LANGUAGE_DETECTION=1' \ |
| 90 | '-DSHELL_DIALOGS_IMPLEMENTATION' \ |
| 91 | '-DSK_BUILD_NO_IMAGE_ENCODE' \ |
| 92 | '-DSK_DEFERRED_CANVAS_USES_GPIPE=1' \ |
| 93 | '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ |
| 94 | '-DGR_AGGRESSIVE_SHADER_OPTS=1' \ |
| 95 | '-DSK_ENABLE_INST_COUNT=0' \ |
| 96 | '-DSK_USE_POSIX_THREADS' \ |
| Torne (Richard Coles) | a93a17c | 2013-05-15 11:34:50 +0100 | [diff] [blame] | 97 | '-DSK_BUILD_FOR_ANDROID' \ |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 98 | '-DU_USING_ICU_NAMESPACE=0' \ |
| 99 | '-D__STDC_CONSTANT_MACROS' \ |
| 100 | '-D__STDC_FORMAT_MACROS' \ |
| 101 | '-DANDROID' \ |
| 102 | '-D__GNU_SOURCE=1' \ |
| 103 | '-DUSE_STLPORT=1' \ |
| 104 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 105 | '-DCHROME_BUILD_ID=""' \ |
| 106 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 107 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 108 | '-D_DEBUG' |
| 109 | |
| 110 | LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS) |
| 111 | |
| 112 | # Include paths placed before CFLAGS/CPPFLAGS |
| 113 | LOCAL_C_INCLUDES := \ |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 114 | $(LOCAL_PATH) \ |
| 115 | $(gyp_shared_intermediate_dir)/ui \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 116 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
| 117 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
| 118 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 119 | $(LOCAL_PATH) \ |
| 120 | $(gyp_shared_intermediate_dir)/ui/app_locale_settings \ |
| 121 | $(gyp_shared_intermediate_dir)/ui/ui_strings \ |
| 122 | $(LOCAL_PATH)/skia/config \ |
| 123 | $(LOCAL_PATH)/third_party/skia/src/core \ |
| 124 | $(LOCAL_PATH)/third_party/skia/include/config \ |
| 125 | $(LOCAL_PATH)/third_party/skia/include/core \ |
| 126 | $(LOCAL_PATH)/third_party/skia/include/effects \ |
| 127 | $(LOCAL_PATH)/third_party/skia/include/pdf \ |
| 128 | $(LOCAL_PATH)/third_party/skia/include/gpu \ |
| 129 | $(LOCAL_PATH)/third_party/skia/include/gpu/gl \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 130 | $(LOCAL_PATH)/third_party/skia/include/pathops \ |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 131 | $(LOCAL_PATH)/third_party/skia/include/pipe \ |
| 132 | $(LOCAL_PATH)/third_party/skia/include/ports \ |
| 133 | $(LOCAL_PATH)/third_party/skia/include/utils \ |
| 134 | $(LOCAL_PATH)/skia/ext \ |
| Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 135 | $(PWD)/external/icu4c/common \ |
| 136 | $(PWD)/external/icu4c/i18n \ |
| 137 | $(PWD)/frameworks/wilhelm/include \ |
| 138 | $(PWD)/bionic \ |
| 139 | $(PWD)/external/stlport/stlport |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 140 | |
| 141 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES) |
| 142 | |
| 143 | # Flags passed to only C++ (and not C) files. |
| 144 | LOCAL_CPPFLAGS := \ |
| 145 | -fno-rtti \ |
| 146 | -fno-threadsafe-statics \ |
| 147 | -fvisibility-inlines-hidden \ |
| 148 | -Wsign-compare \ |
| 149 | -Wno-error=c++0x-compat \ |
| 150 | -Wno-non-virtual-dtor \ |
| 151 | -Wno-sign-promo |
| 152 | |
| 153 | ### Rules for final target. |
| 154 | |
| 155 | LOCAL_LDFLAGS := \ |
| 156 | -Wl,-z,now \ |
| 157 | -Wl,-z,relro \ |
| 158 | -Wl,-z,noexecstack \ |
| 159 | -fPIC \ |
| 160 | -m32 \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 161 | -fuse-ld=gold \ |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 162 | -nostdlib \ |
| 163 | -Wl,--no-undefined \ |
| 164 | -Wl,--exclude-libs=ALL \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 165 | -Wl,--gc-sections \ |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 166 | -Wl,-O1 \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 167 | -Wl,--as-needed |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 168 | |
| 169 | |
| 170 | LOCAL_STATIC_LIBRARIES := \ |
| Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 171 | skia_skia_gyp \ |
| 172 | ui_ui_gyp |
| Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 173 | |
| 174 | # Enable grouping to fix circular references |
| 175 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 176 | |
| 177 | LOCAL_SHARED_LIBRARIES := \ |
| 178 | libstlport \ |
| 179 | libdl |
| 180 | |
| 181 | # Add target alias to "gyp_all_modules" target. |
| 182 | .PHONY: gyp_all_modules |
| 183 | gyp_all_modules: ui_shell_dialogs_gyp |
| 184 | |
| 185 | # Alias gyp target name. |
| 186 | .PHONY: shell_dialogs |
| 187 | shell_dialogs: ui_shell_dialogs_gyp |
| 188 | |
| 189 | include $(BUILD_STATIC_LIBRARY) |