Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [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 := third_party_WebKit_Source_weborigin_weborigin_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,third_party_WebKit_Source_config_gyp)/config.stamp \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 15 | $(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp)/icui18n.stamp \ |
| 16 | $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp |
| 17 | |
| 18 | GYP_GENERATED_OUTPUTS := |
| 19 | |
| 20 | # Make sure our deps and generated files are built first. |
| 21 | LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) |
| 22 | |
| 23 | LOCAL_GENERATED_SOURCES := |
| 24 | |
| 25 | GYP_COPIED_SOURCE_ORIGIN_DIRS := |
| 26 | |
| 27 | LOCAL_SRC_FILES := \ |
| 28 | third_party/WebKit/Source/weborigin/DatabaseIdentifier.cpp \ |
| 29 | third_party/WebKit/Source/weborigin/KURL.cpp \ |
| 30 | third_party/WebKit/Source/weborigin/KnownPorts.cpp \ |
| 31 | third_party/WebKit/Source/weborigin/OriginAccessEntry.cpp \ |
| 32 | third_party/WebKit/Source/weborigin/SchemeRegistry.cpp \ |
| 33 | third_party/WebKit/Source/weborigin/SecurityOrigin.cpp \ |
| 34 | third_party/WebKit/Source/weborigin/SecurityPolicy.cpp |
| 35 | |
| 36 | |
| 37 | # Flags passed to both C and C++ files. |
| 38 | MY_CFLAGS := \ |
| 39 | -fstack-protector \ |
| 40 | --param=ssp-buffer-size=4 \ |
| 41 | \ |
| 42 | -fno-exceptions \ |
| 43 | -fno-strict-aliasing \ |
| 44 | -Wno-unused-parameter \ |
| 45 | -Wno-missing-field-initializers \ |
| 46 | -fvisibility=hidden \ |
| 47 | -pipe \ |
| 48 | -fPIC \ |
| 49 | -Wno-format \ |
| 50 | -EL \ |
| 51 | -mhard-float \ |
Ben Murdoch | 874cc8d | 2013-06-27 01:42:22 +0100 | [diff] [blame^] | 52 | --sysroot=/usr/local/google2/src/clank/webview/external/chromium_org/mipsel-sysroot/sysroot \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 53 | -ffunction-sections \ |
| 54 | -funwind-tables \ |
| 55 | -g \ |
| 56 | -fstack-protector \ |
| 57 | -fno-short-enums \ |
| 58 | -finline-limit=64 \ |
| 59 | -Wa,--noexecstack \ |
| 60 | -U_FORTIFY_SOURCE \ |
| 61 | -Wno-extra \ |
| 62 | -Wno-ignored-qualifiers \ |
| 63 | -Wno-type-limits \ |
| 64 | -Wno-address \ |
| 65 | -Wno-format-security \ |
| 66 | -Wno-return-type \ |
| 67 | -Wno-sequence-point \ |
| 68 | -Os \ |
| 69 | -g \ |
| 70 | -fomit-frame-pointer \ |
| 71 | -fdata-sections \ |
| 72 | -ffunction-sections |
| 73 | |
| 74 | MY_CFLAGS_C := |
| 75 | |
| 76 | MY_DEFS := \ |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 77 | '-DANGLE_DX11' \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 78 | '-D_FILE_OFFSET_BITS=64' \ |
| 79 | '-DNO_TCMALLOC' \ |
| 80 | '-DDISABLE_NACL' \ |
| 81 | '-DCHROMIUM_BUILD' \ |
| 82 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 83 | '-DUSE_PROPRIETARY_CODECS' \ |
| 84 | '-DENABLE_GPU=1' \ |
| 85 | '-DUSE_OPENSSL=1' \ |
| 86 | '-DENABLE_EGLIMAGE=1' \ |
| 87 | '-DENABLE_LANGUAGE_DETECTION=1' \ |
| 88 | '-DWEBORIGIN_IMPLEMENTATION=1' \ |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 89 | '-DENABLE_CANVAS_USES_MAILBOX=1' \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 90 | '-DENABLE_CSS3_TEXT=0' \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 91 | '-DENABLE_CSS_EXCLUSIONS=1' \ |
| 92 | '-DENABLE_CSS_REGIONS=1' \ |
| 93 | '-DENABLE_CUSTOM_SCHEME_HANDLER=0' \ |
| 94 | '-DENABLE_ENCRYPTED_MEDIA_V2=1' \ |
| 95 | '-DENABLE_GRAPHICS_CONTEXT_ANNOTATIONS=0' \ |
| 96 | '-DENABLE_SVG_FONTS=1' \ |
| 97 | '-DENABLE_TOUCH_ICON_LOADING=1' \ |
| 98 | '-DENABLE_XHR_TIMEOUT=0' \ |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 99 | '-DENABLE_GDI_FONTS_ON_WINDOWS=1' \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 100 | '-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \ |
| 101 | '-DENABLE_CALENDAR_PICKER=0' \ |
| 102 | '-DENABLE_FAST_MOBILE_SCROLLING=1' \ |
| 103 | '-DENABLE_INPUT_SPEECH=0' \ |
| 104 | '-DENABLE_LEGACY_NOTIFICATIONS=0' \ |
| 105 | '-DENABLE_MEDIA_CAPTURE=1' \ |
| 106 | '-DENABLE_NOTIFICATIONS=0' \ |
| 107 | '-DENABLE_ORIENTATION_EVENTS=1' \ |
| 108 | '-DENABLE_PRINTING=0' \ |
| 109 | '-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \ |
| 110 | '-DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1' \ |
| 111 | '-DENABLE_8BIT_TEXTRUN=1' \ |
| 112 | '-DENABLE_OPENTYPE_VERTICAL=1' \ |
| 113 | '-DWTF_USE_HARFBUZZ=1' \ |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 114 | '-DENABLE_PARTITION_ALLOC=1' \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 115 | '-DU_USING_ICU_NAMESPACE=0' \ |
| 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 | LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS) |
| 126 | |
| 127 | # Include paths placed before CFLAGS/CPPFLAGS |
| 128 | LOCAL_C_INCLUDES := \ |
| 129 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
| 130 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
| 131 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
| 132 | $(LOCAL_PATH)/third_party/WebKit/Source \ |
| 133 | $(LOCAL_PATH)/third_party/WebKit \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 134 | $(PWD)/external/icu4c/common \ |
| 135 | $(PWD)/external/icu4c/i18n \ |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 136 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 137 | $(PWD)/frameworks/wilhelm/include \ |
| 138 | $(PWD)/bionic \ |
| 139 | $(PWD)/external/stlport/stlport |
| 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 | -Wno-c++0x-compat \ |
| 149 | -Wno-deprecated \ |
| 150 | -Wno-uninitialized \ |
| 151 | -Wno-error=c++0x-compat \ |
| 152 | -Wno-non-virtual-dtor \ |
| 153 | -Wno-sign-promo \ |
| 154 | -Wno-non-virtual-dtor |
| 155 | |
| 156 | ### Rules for final target. |
| 157 | |
| 158 | LOCAL_LDFLAGS := \ |
| 159 | -Wl,-z,now \ |
| 160 | -Wl,-z,relro \ |
| 161 | -Wl,-z,noexecstack \ |
| 162 | -fPIC \ |
| 163 | -EL \ |
| 164 | -Wl,--no-keep-memory \ |
Ben Murdoch | 874cc8d | 2013-06-27 01:42:22 +0100 | [diff] [blame^] | 165 | --sysroot=/usr/local/google2/src/clank/webview/external/chromium_org/mipsel-sysroot/sysroot \ |
Torne (Richard Coles) | 23042b7 | 2013-06-11 16:24:26 +0100 | [diff] [blame] | 166 | \ |
| 167 | -nostdlib \ |
| 168 | -Wl,--no-undefined \ |
| 169 | -Wl,--exclude-libs=ALL \ |
| 170 | -Wl,--gc-sections \ |
| 171 | -Wl,-O1 \ |
| 172 | -Wl,--as-needed |
| 173 | |
| 174 | |
| 175 | LOCAL_STATIC_LIBRARIES := |
| 176 | |
| 177 | # Enable grouping to fix circular references |
| 178 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 179 | |
| 180 | LOCAL_SHARED_LIBRARIES := \ |
| 181 | libstlport \ |
| 182 | libdl |
| 183 | |
| 184 | # Add target alias to "gyp_all_modules" target. |
| 185 | .PHONY: gyp_all_modules |
| 186 | gyp_all_modules: third_party_WebKit_Source_weborigin_weborigin_gyp |
| 187 | |
| 188 | # Alias gyp target name. |
| 189 | .PHONY: weborigin |
| 190 | weborigin: third_party_WebKit_Source_weborigin_weborigin_gyp |
| 191 | |
| 192 | include $(BUILD_STATIC_LIBRARY) |