Home | History | Annotate | Download | only in web
      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_web_blink_web_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,third_party_WebKit_Source_config_gyp,,,$(GYP_VAR_PREFIX))/config.stamp \
     15 	$(call intermediates-dir-for,GYP,third_party_WebKit_Source_core_webcore_gyp,,,$(GYP_VAR_PREFIX))/webcore.stamp \
     16 	$(call intermediates-dir-for,STATIC_LIBRARIES,third_party_WebKit_Source_core_webcore_generated_gyp,,,$(GYP_VAR_PREFIX))/third_party_WebKit_Source_core_webcore_generated_gyp.a \
     17 	$(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \
     18 	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \
     19 	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp \
     20 	$(call intermediates-dir-for,GYP,third_party_npapi_npapi_gyp,,,$(GYP_VAR_PREFIX))/npapi.stamp \
     21 	$(call intermediates-dir-for,GYP,v8_tools_gyp_v8_gyp,,,$(GYP_VAR_PREFIX))/v8.stamp
     22 
     23 GYP_GENERATED_OUTPUTS :=
     24 
     25 # Make sure our deps and generated files are built first.
     26 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     27 
     28 LOCAL_GENERATED_SOURCES :=
     29 
     30 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     31 
     32 LOCAL_SRC_FILES := \
     33 	third_party/WebKit/Source/web/AssertMatchingEnums.cpp \
     34 	third_party/WebKit/Source/web/AssociatedURLLoader.cpp \
     35 	third_party/WebKit/Source/web/BackForwardClientImpl.cpp \
     36 	third_party/WebKit/Source/web/ChromeClientImpl.cpp \
     37 	third_party/WebKit/Source/web/ColorChooserPopupUIController.cpp \
     38 	third_party/WebKit/Source/web/ColorChooserUIController.cpp \
     39 	third_party/WebKit/Source/web/CompositionUnderlineVectorBuilder.cpp \
     40 	third_party/WebKit/Source/web/ContextFeaturesClientImpl.cpp \
     41 	third_party/WebKit/Source/web/ContextMenuClientImpl.cpp \
     42 	third_party/WebKit/Source/web/DatabaseClientImpl.cpp \
     43 	third_party/WebKit/Source/web/DateTimeChooserImpl.cpp \
     44 	third_party/WebKit/Source/web/DragClientImpl.cpp \
     45 	third_party/WebKit/Source/web/EditorClientImpl.cpp \
     46 	third_party/WebKit/Source/web/ExternalDateTimeChooser.cpp \
     47 	third_party/WebKit/Source/web/ExternalPopupMenu.cpp \
     48 	third_party/WebKit/Source/web/FindInPageCoordinates.cpp \
     49 	third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp \
     50 	third_party/WebKit/Source/web/FullscreenController.cpp \
     51 	third_party/WebKit/Source/web/GeolocationClientProxy.cpp \
     52 	third_party/WebKit/Source/web/GraphicsLayerFactoryChromium.cpp \
     53 	third_party/WebKit/Source/web/IndexedDBClientImpl.cpp \
     54 	third_party/WebKit/Source/web/InspectorClientImpl.cpp \
     55 	third_party/WebKit/Source/web/LinkHighlight.cpp \
     56 	third_party/WebKit/Source/web/LocalFileSystemClient.cpp \
     57 	third_party/WebKit/Source/web/MediaKeysClientImpl.cpp \
     58 	third_party/WebKit/Source/web/MIDIClientProxy.cpp \
     59 	third_party/WebKit/Source/web/NavigatorContentUtilsClientImpl.cpp \
     60 	third_party/WebKit/Source/web/NotificationPermissionClientImpl.cpp \
     61 	third_party/WebKit/Source/web/NotificationPresenterImpl.cpp \
     62 	third_party/WebKit/Source/web/OpenedFrameTracker.cpp \
     63 	third_party/WebKit/Source/web/PageOverlay.cpp \
     64 	third_party/WebKit/Source/web/PageOverlayList.cpp \
     65 	third_party/WebKit/Source/web/PageScaleConstraintsSet.cpp \
     66 	third_party/WebKit/Source/web/PageWidgetDelegate.cpp \
     67 	third_party/WebKit/Source/web/PopupContainer.cpp \
     68 	third_party/WebKit/Source/web/PopupListBox.cpp \
     69 	third_party/WebKit/Source/web/PopupMenuChromium.cpp \
     70 	third_party/WebKit/Source/web/PrerendererClientImpl.cpp \
     71 	third_party/WebKit/Source/web/RemoteFrameClient.cpp \
     72 	third_party/WebKit/Source/web/ScrollbarGroup.cpp \
     73 	third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp \
     74 	third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp \
     75 	third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.cpp \
     76 	third_party/WebKit/Source/web/SpeechRecognitionClientProxy.cpp \
     77 	third_party/WebKit/Source/web/SpellCheckerClientImpl.cpp \
     78 	third_party/WebKit/Source/web/StorageClientImpl.cpp \
     79 	third_party/WebKit/Source/web/StorageQuotaClientImpl.cpp \
     80 	third_party/WebKit/Source/web/TextFinder.cpp \
     81 	third_party/WebKit/Source/web/UserMediaClientImpl.cpp \
     82 	third_party/WebKit/Source/web/ValidationMessageClientImpl.cpp \
     83 	third_party/WebKit/Source/web/ViewportAnchor.cpp \
     84 	third_party/WebKit/Source/web/WebAXObject.cpp \
     85 	third_party/WebKit/Source/web/WebArrayBufferConverter.cpp \
     86 	third_party/WebKit/Source/web/WebArrayBufferView.cpp \
     87 	third_party/WebKit/Source/web/WebBindings.cpp \
     88 	third_party/WebKit/Source/web/WebBlob.cpp \
     89 	third_party/WebKit/Source/web/WebCache.cpp \
     90 	third_party/WebKit/Source/web/WebCachedURLRequest.cpp \
     91 	third_party/WebKit/Source/web/WebColorName.cpp \
     92 	third_party/WebKit/Source/web/WebColorSuggestion.cpp \
     93 	third_party/WebKit/Source/web/WebCryptoNormalize.cpp \
     94 	third_party/WebKit/Source/web/WebCustomElement.cpp \
     95 	third_party/WebKit/Source/web/WebDOMActivityLogger.cpp \
     96 	third_party/WebKit/Source/web/WebDOMCustomEvent.cpp \
     97 	third_party/WebKit/Source/web/WebDOMError.cpp \
     98 	third_party/WebKit/Source/web/WebDOMEvent.cpp \
     99 	third_party/WebKit/Source/web/WebDOMFileSystem.cpp \
    100 	third_party/WebKit/Source/web/WebDOMMediaStreamTrack.cpp \
    101 	third_party/WebKit/Source/web/WebDOMMessageEvent.cpp \
    102 	third_party/WebKit/Source/web/WebDOMMouseEvent.cpp \
    103 	third_party/WebKit/Source/web/WebDOMProgressEvent.cpp \
    104 	third_party/WebKit/Source/web/WebDOMResourceProgressEvent.cpp \
    105 	third_party/WebKit/Source/web/WebDateTimeSuggestion.cpp \
    106 	third_party/WebKit/Source/web/WebDataSourceImpl.cpp \
    107 	third_party/WebKit/Source/web/WebDatabase.cpp \
    108 	third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp \
    109 	third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp \
    110 	third_party/WebKit/Source/web/WebDocument.cpp \
    111 	third_party/WebKit/Source/web/WebDocumentType.cpp \
    112 	third_party/WebKit/Source/web/WebDragData.cpp \
    113 	third_party/WebKit/Source/web/WebElement.cpp \
    114 	third_party/WebKit/Source/web/WebElementCollection.cpp \
    115 	third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp \
    116 	third_party/WebKit/Source/web/WebEntities.cpp \
    117 	third_party/WebKit/Source/web/WebFileChooserCompletionImpl.cpp \
    118 	third_party/WebKit/Source/web/WebFontDescription.cpp \
    119 	third_party/WebKit/Source/web/WebFontImpl.cpp \
    120 	third_party/WebKit/Source/web/WebFormControlElement.cpp \
    121 	third_party/WebKit/Source/web/WebFormElement.cpp \
    122 	third_party/WebKit/Source/web/WebFrame.cpp \
    123 	third_party/WebKit/Source/web/WebGeolocationController.cpp \
    124 	third_party/WebKit/Source/web/WebGeolocationError.cpp \
    125 	third_party/WebKit/Source/web/WebGeolocationPermissionRequest.cpp \
    126 	third_party/WebKit/Source/web/WebGeolocationPermissionRequestManager.cpp \
    127 	third_party/WebKit/Source/web/WebGeolocationPosition.cpp \
    128 	third_party/WebKit/Source/web/WebGlyphCache.cpp \
    129 	third_party/WebKit/Source/web/WebHeap.cpp \
    130 	third_party/WebKit/Source/web/WebHelperPluginImpl.cpp \
    131 	third_party/WebKit/Source/web/WebHistoryItem.cpp \
    132 	third_party/WebKit/Source/web/WebHitTestResult.cpp \
    133 	third_party/WebKit/Source/web/WebIDBDatabaseError.cpp \
    134 	third_party/WebKit/Source/web/WebIDBKey.cpp \
    135 	third_party/WebKit/Source/web/WebIDBKeyPath.cpp \
    136 	third_party/WebKit/Source/web/WebIDBKeyRange.cpp \
    137 	third_party/WebKit/Source/web/WebIDBMetadata.cpp \
    138 	third_party/WebKit/Source/web/WebImageCache.cpp \
    139 	third_party/WebKit/Source/web/WebImageDecoder.cpp \
    140 	third_party/WebKit/Source/web/WebInputElement.cpp \
    141 	third_party/WebKit/Source/web/WebInputEvent.cpp \
    142 	third_party/WebKit/Source/web/WebInputEventConversion.cpp \
    143 	third_party/WebKit/Source/web/WebKit.cpp \
    144 	third_party/WebKit/Source/web/WebLabelElement.cpp \
    145 	third_party/WebKit/Source/web/WebLeakDetector.cpp \
    146 	third_party/WebKit/Source/web/WebLocalFrameImpl.cpp \
    147 	third_party/WebKit/Source/web/WebMIDIClientMock.cpp \
    148 	third_party/WebKit/Source/web/WebMIDIPermissionRequest.cpp \
    149 	third_party/WebKit/Source/web/WebMediaDevicesRequest.cpp \
    150 	third_party/WebKit/Source/web/WebMediaPlayerClientImpl.cpp \
    151 	third_party/WebKit/Source/web/WebMediaStreamRegistry.cpp \
    152 	third_party/WebKit/Source/web/WebNetworkStateNotifier.cpp \
    153 	third_party/WebKit/Source/web/WebNode.cpp \
    154 	third_party/WebKit/Source/web/WebNodeList.cpp \
    155 	third_party/WebKit/Source/web/WebNotification.cpp \
    156 	third_party/WebKit/Source/web/WebOptionElement.cpp \
    157 	third_party/WebKit/Source/web/WebPagePopupImpl.cpp \
    158 	third_party/WebKit/Source/web/WebPageSerializer.cpp \
    159 	third_party/WebKit/Source/web/WebPageSerializerImpl.cpp \
    160 	third_party/WebKit/Source/web/WebPerformance.cpp \
    161 	third_party/WebKit/Source/web/WebPluginContainerImpl.cpp \
    162 	third_party/WebKit/Source/web/WebPluginDocument.cpp \
    163 	third_party/WebKit/Source/web/WebPluginLoadObserver.cpp \
    164 	third_party/WebKit/Source/web/WebPluginScrollbarImpl.cpp \
    165 	third_party/WebKit/Source/web/WebPopupMenuImpl.cpp \
    166 	third_party/WebKit/Source/web/WebRange.cpp \
    167 	third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp \
    168 	third_party/WebKit/Source/web/WebRuntimeFeatures.cpp \
    169 	third_party/WebKit/Source/web/WebScopedMicrotaskSuppression.cpp \
    170 	third_party/WebKit/Source/web/WebScopedUserGesture.cpp \
    171 	third_party/WebKit/Source/web/WebScopedWindowFocusAllowedIndicator.cpp \
    172 	third_party/WebKit/Source/web/WebScriptBindings.cpp \
    173 	third_party/WebKit/Source/web/WebScriptController.cpp \
    174 	third_party/WebKit/Source/web/WebScrollbarThemePainter.cpp \
    175 	third_party/WebKit/Source/web/WebSearchableFormData.cpp \
    176 	third_party/WebKit/Source/web/WebSecurityOrigin.cpp \
    177 	third_party/WebKit/Source/web/WebSecurityPolicy.cpp \
    178 	third_party/WebKit/Source/web/WebSelectElement.cpp \
    179 	third_party/WebKit/Source/web/WebSelector.cpp \
    180 	third_party/WebKit/Source/web/WebSerializedScriptValue.cpp \
    181 	third_party/WebKit/Source/web/WebSettingsImpl.cpp \
    182 	third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp \
    183 	third_party/WebKit/Source/web/WebSocket.cpp \
    184 	third_party/WebKit/Source/web/WebSocketImpl.cpp \
    185 	third_party/WebKit/Source/web/WebSpeechGrammar.cpp \
    186 	third_party/WebKit/Source/web/WebSpeechRecognitionHandle.cpp \
    187 	third_party/WebKit/Source/web/WebSpeechRecognitionResult.cpp \
    188 	third_party/WebKit/Source/web/WebStorageEventDispatcherImpl.cpp \
    189 	third_party/WebKit/Source/web/WebSurroundingText.cpp \
    190 	third_party/WebKit/Source/web/WebTextAreaElement.cpp \
    191 	third_party/WebKit/Source/web/WebTextCheckingCompletionImpl.cpp \
    192 	third_party/WebKit/Source/web/WebTextCheckingResult.cpp \
    193 	third_party/WebKit/Source/web/WebTextInputInfo.cpp \
    194 	third_party/WebKit/Source/web/WebTextRun.cpp \
    195 	third_party/WebKit/Source/web/WebUserGestureIndicator.cpp \
    196 	third_party/WebKit/Source/web/WebUserGestureToken.cpp \
    197 	third_party/WebKit/Source/web/WebUserMediaRequest.cpp \
    198 	third_party/WebKit/Source/web/WebViewImpl.cpp \
    199 	third_party/WebKit/Source/web/WebWorkerRunLoop.cpp \
    200 	third_party/WebKit/Source/web/WorkerGlobalScopeProxyProviderImpl.cpp \
    201 	third_party/WebKit/Source/web/WorkerPermissionClient.cpp \
    202 	third_party/WebKit/Source/web/linux/WebFontRendering.cpp \
    203 	third_party/WebKit/Source/web/painting/ContinuousPainter.cpp \
    204 	third_party/WebKit/Source/web/painting/PaintAggregator.cpp
    205 
    206 
    207 # Flags passed to both C and C++ files.
    208 MY_CFLAGS_Debug := \
    209 	--param=ssp-buffer-size=4 \
    210 	-Werror \
    211 	-fno-strict-aliasing \
    212 	-Wall \
    213 	-Wno-unused-parameter \
    214 	-Wno-missing-field-initializers \
    215 	-fvisibility=hidden \
    216 	-pipe \
    217 	-fPIC \
    218 	-Wno-unused-local-typedefs \
    219 	-msse2 \
    220 	-mfpmath=sse \
    221 	-mmmx \
    222 	-m32 \
    223 	-ffunction-sections \
    224 	-funwind-tables \
    225 	-g \
    226 	-fno-short-enums \
    227 	-finline-limit=64 \
    228 	-Wa,--noexecstack \
    229 	-U_FORTIFY_SOURCE \
    230 	-Wno-extra \
    231 	-Wno-ignored-qualifiers \
    232 	-Wno-type-limits \
    233 	-Wno-unused-but-set-variable \
    234 	-fno-stack-protector \
    235 	-Os \
    236 	-g \
    237 	-gdwarf-4 \
    238 	-fdata-sections \
    239 	-ffunction-sections \
    240 	-fomit-frame-pointer \
    241 	-funwind-tables
    242 
    243 MY_DEFS_Debug := \
    244 	'-DV8_DEPRECATION_WARNINGS' \
    245 	'-D_FILE_OFFSET_BITS=64' \
    246 	'-DNO_TCMALLOC' \
    247 	'-DDISABLE_NACL' \
    248 	'-DCHROMIUM_BUILD' \
    249 	'-DUSE_LIBJPEG_TURBO=1' \
    250 	'-DENABLE_WEBRTC=1' \
    251 	'-DUSE_PROPRIETARY_CODECS' \
    252 	'-DENABLE_BROWSER_CDMS' \
    253 	'-DENABLE_CONFIGURATION_POLICY' \
    254 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    255 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    256 	'-DENABLE_EGLIMAGE=1' \
    257 	'-DCLD_VERSION=1' \
    258 	'-DENABLE_PRINTING=1' \
    259 	'-DENABLE_MANAGED_USERS=1' \
    260 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    261 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    262 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    263 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    264 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    265 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    266 	'-DVIDEO_HOLE=1' \
    267 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    268 	'-DBLINK_IMPLEMENTATION=1' \
    269 	'-DINSIDE_BLINK' \
    270 	'-DCHROME_PNG_WRITE_SUPPORT' \
    271 	'-DPNG_USER_CONFIG' \
    272 	'-DCHROME_PNG_READ_PACK_SUPPORT' \
    273 	'-DENABLE_SVG_FONTS=1' \
    274 	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
    275 	'-DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1' \
    276 	'-DENABLE_WEB_AUDIO=1' \
    277 	'-DENABLE_OPENTYPE_VERTICAL=1' \
    278 	'-DU_USING_ICU_NAMESPACE=0' \
    279 	'-DU_ENABLE_DYLOAD=0' \
    280 	'-DSK_ENABLE_INST_COUNT=0' \
    281 	'-DSK_SUPPORT_GPU=1' \
    282 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    283 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    284 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    285 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    286 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    287 	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
    288 	'-DSK_BUILD_FOR_ANDROID' \
    289 	'-DSK_USE_POSIX_THREADS' \
    290 	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
    291 	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
    292 	'-DUSE_OPENSSL=1' \
    293 	'-DUSE_OPENSSL_CERTS=1' \
    294 	'-D__STDC_CONSTANT_MACROS' \
    295 	'-D__STDC_FORMAT_MACROS' \
    296 	'-DANDROID' \
    297 	'-D__GNU_SOURCE=1' \
    298 	'-DUSE_STLPORT=1' \
    299 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    300 	'-DCHROME_BUILD_ID=""' \
    301 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    302 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    303 	'-D_DEBUG'
    304 
    305 
    306 # Include paths placed before CFLAGS/CPPFLAGS
    307 LOCAL_C_INCLUDES_Debug := \
    308 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    309 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    310 	$(gyp_shared_intermediate_dir) \
    311 	$(LOCAL_PATH)/third_party/angle/include \
    312 	$(LOCAL_PATH)/third_party/skia/include/utils \
    313 	$(LOCAL_PATH)/third_party/WebKit/Source \
    314 	$(LOCAL_PATH) \
    315 	$(LOCAL_PATH)/skia/config \
    316 	$(LOCAL_PATH)/third_party/khronos \
    317 	$(LOCAL_PATH)/gpu \
    318 	$(LOCAL_PATH)/third_party/WebKit \
    319 	$(gyp_shared_intermediate_dir)/blink \
    320 	$(LOCAL_PATH)/third_party/openmax_dl \
    321 	$(LOCAL_PATH)/third_party/libpng \
    322 	$(LOCAL_PATH)/third_party/zlib \
    323 	$(LOCAL_PATH)/third_party/libwebp \
    324 	$(LOCAL_PATH)/third_party/ots/include \
    325 	$(LOCAL_PATH)/third_party/iccjpeg \
    326 	$(LOCAL_PATH)/third_party/libjpeg_turbo \
    327 	$(PWD)/external/icu/icu4c/source/common \
    328 	$(PWD)/external/icu/icu4c/source/i18n \
    329 	$(LOCAL_PATH)/third_party/qcms/src \
    330 	$(LOCAL_PATH)/third_party/skia/src/core \
    331 	$(LOCAL_PATH)/third_party/skia/include/core \
    332 	$(LOCAL_PATH)/third_party/skia/include/effects \
    333 	$(LOCAL_PATH)/third_party/skia/include/pdf \
    334 	$(LOCAL_PATH)/third_party/skia/include/gpu \
    335 	$(LOCAL_PATH)/third_party/skia/include/lazy \
    336 	$(LOCAL_PATH)/third_party/skia/include/pathops \
    337 	$(LOCAL_PATH)/third_party/skia/include/pipe \
    338 	$(LOCAL_PATH)/third_party/skia/include/ports \
    339 	$(LOCAL_PATH)/skia/ext \
    340 	$(LOCAL_PATH)/third_party/npapi \
    341 	$(LOCAL_PATH)/third_party/npapi/bindings \
    342 	$(LOCAL_PATH)/v8/include \
    343 	$(PWD)/frameworks/wilhelm/include \
    344 	$(PWD)/bionic \
    345 	$(PWD)/external/stlport/stlport
    346 
    347 
    348 # Flags passed to only C++ (and not C) files.
    349 LOCAL_CPPFLAGS_Debug := \
    350 	-Wno-c++0x-compat \
    351 	-fno-exceptions \
    352 	-fno-rtti \
    353 	-fno-threadsafe-statics \
    354 	-fvisibility-inlines-hidden \
    355 	-Wsign-compare \
    356 	-Wno-c++0x-compat \
    357 	-std=gnu++11 \
    358 	-Wno-narrowing \
    359 	-Wno-literal-suffix \
    360 	-Wno-non-virtual-dtor \
    361 	-Wno-sign-promo
    362 
    363 
    364 # Flags passed to both C and C++ files.
    365 MY_CFLAGS_Release := \
    366 	--param=ssp-buffer-size=4 \
    367 	-Werror \
    368 	-fno-strict-aliasing \
    369 	-Wall \
    370 	-Wno-unused-parameter \
    371 	-Wno-missing-field-initializers \
    372 	-fvisibility=hidden \
    373 	-pipe \
    374 	-fPIC \
    375 	-Wno-unused-local-typedefs \
    376 	-msse2 \
    377 	-mfpmath=sse \
    378 	-mmmx \
    379 	-m32 \
    380 	-ffunction-sections \
    381 	-funwind-tables \
    382 	-g \
    383 	-fno-short-enums \
    384 	-finline-limit=64 \
    385 	-Wa,--noexecstack \
    386 	-U_FORTIFY_SOURCE \
    387 	-Wno-extra \
    388 	-Wno-ignored-qualifiers \
    389 	-Wno-type-limits \
    390 	-Wno-unused-but-set-variable \
    391 	-fno-stack-protector \
    392 	-Os \
    393 	-fno-ident \
    394 	-fdata-sections \
    395 	-ffunction-sections \
    396 	-fomit-frame-pointer \
    397 	-funwind-tables
    398 
    399 MY_DEFS_Release := \
    400 	'-DV8_DEPRECATION_WARNINGS' \
    401 	'-D_FILE_OFFSET_BITS=64' \
    402 	'-DNO_TCMALLOC' \
    403 	'-DDISABLE_NACL' \
    404 	'-DCHROMIUM_BUILD' \
    405 	'-DUSE_LIBJPEG_TURBO=1' \
    406 	'-DENABLE_WEBRTC=1' \
    407 	'-DUSE_PROPRIETARY_CODECS' \
    408 	'-DENABLE_BROWSER_CDMS' \
    409 	'-DENABLE_CONFIGURATION_POLICY' \
    410 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    411 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    412 	'-DENABLE_EGLIMAGE=1' \
    413 	'-DCLD_VERSION=1' \
    414 	'-DENABLE_PRINTING=1' \
    415 	'-DENABLE_MANAGED_USERS=1' \
    416 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    417 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    418 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    419 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    420 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    421 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    422 	'-DVIDEO_HOLE=1' \
    423 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    424 	'-DBLINK_IMPLEMENTATION=1' \
    425 	'-DINSIDE_BLINK' \
    426 	'-DCHROME_PNG_WRITE_SUPPORT' \
    427 	'-DPNG_USER_CONFIG' \
    428 	'-DCHROME_PNG_READ_PACK_SUPPORT' \
    429 	'-DENABLE_SVG_FONTS=1' \
    430 	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
    431 	'-DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1' \
    432 	'-DENABLE_WEB_AUDIO=1' \
    433 	'-DENABLE_OPENTYPE_VERTICAL=1' \
    434 	'-DU_USING_ICU_NAMESPACE=0' \
    435 	'-DU_ENABLE_DYLOAD=0' \
    436 	'-DSK_ENABLE_INST_COUNT=0' \
    437 	'-DSK_SUPPORT_GPU=1' \
    438 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    439 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    440 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    441 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    442 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    443 	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
    444 	'-DSK_BUILD_FOR_ANDROID' \
    445 	'-DSK_USE_POSIX_THREADS' \
    446 	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
    447 	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
    448 	'-DUSE_OPENSSL=1' \
    449 	'-DUSE_OPENSSL_CERTS=1' \
    450 	'-D__STDC_CONSTANT_MACROS' \
    451 	'-D__STDC_FORMAT_MACROS' \
    452 	'-DANDROID' \
    453 	'-D__GNU_SOURCE=1' \
    454 	'-DUSE_STLPORT=1' \
    455 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    456 	'-DCHROME_BUILD_ID=""' \
    457 	'-DNDEBUG' \
    458 	'-DNVALGRIND' \
    459 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    460 	'-D_FORTIFY_SOURCE=2'
    461 
    462 
    463 # Include paths placed before CFLAGS/CPPFLAGS
    464 LOCAL_C_INCLUDES_Release := \
    465 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    466 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    467 	$(gyp_shared_intermediate_dir) \
    468 	$(LOCAL_PATH)/third_party/angle/include \
    469 	$(LOCAL_PATH)/third_party/skia/include/utils \
    470 	$(LOCAL_PATH)/third_party/WebKit/Source \
    471 	$(LOCAL_PATH) \
    472 	$(LOCAL_PATH)/skia/config \
    473 	$(LOCAL_PATH)/third_party/khronos \
    474 	$(LOCAL_PATH)/gpu \
    475 	$(LOCAL_PATH)/third_party/WebKit \
    476 	$(gyp_shared_intermediate_dir)/blink \
    477 	$(LOCAL_PATH)/third_party/openmax_dl \
    478 	$(LOCAL_PATH)/third_party/libpng \
    479 	$(LOCAL_PATH)/third_party/zlib \
    480 	$(LOCAL_PATH)/third_party/libwebp \
    481 	$(LOCAL_PATH)/third_party/ots/include \
    482 	$(LOCAL_PATH)/third_party/iccjpeg \
    483 	$(LOCAL_PATH)/third_party/libjpeg_turbo \
    484 	$(PWD)/external/icu/icu4c/source/common \
    485 	$(PWD)/external/icu/icu4c/source/i18n \
    486 	$(LOCAL_PATH)/third_party/qcms/src \
    487 	$(LOCAL_PATH)/third_party/skia/src/core \
    488 	$(LOCAL_PATH)/third_party/skia/include/core \
    489 	$(LOCAL_PATH)/third_party/skia/include/effects \
    490 	$(LOCAL_PATH)/third_party/skia/include/pdf \
    491 	$(LOCAL_PATH)/third_party/skia/include/gpu \
    492 	$(LOCAL_PATH)/third_party/skia/include/lazy \
    493 	$(LOCAL_PATH)/third_party/skia/include/pathops \
    494 	$(LOCAL_PATH)/third_party/skia/include/pipe \
    495 	$(LOCAL_PATH)/third_party/skia/include/ports \
    496 	$(LOCAL_PATH)/skia/ext \
    497 	$(LOCAL_PATH)/third_party/npapi \
    498 	$(LOCAL_PATH)/third_party/npapi/bindings \
    499 	$(LOCAL_PATH)/v8/include \
    500 	$(PWD)/frameworks/wilhelm/include \
    501 	$(PWD)/bionic \
    502 	$(PWD)/external/stlport/stlport
    503 
    504 
    505 # Flags passed to only C++ (and not C) files.
    506 LOCAL_CPPFLAGS_Release := \
    507 	-Wno-c++0x-compat \
    508 	-fno-exceptions \
    509 	-fno-rtti \
    510 	-fno-threadsafe-statics \
    511 	-fvisibility-inlines-hidden \
    512 	-Wsign-compare \
    513 	-Wno-c++0x-compat \
    514 	-std=gnu++11 \
    515 	-Wno-narrowing \
    516 	-Wno-literal-suffix \
    517 	-Wno-non-virtual-dtor \
    518 	-Wno-sign-promo
    519 
    520 
    521 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    522 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    523 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    524 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    525 ### Rules for final target.
    526 
    527 LOCAL_SHARED_LIBRARIES := \
    528 	libstlport \
    529 	libdl
    530 
    531 # Add target alias to "gyp_all_modules" target.
    532 .PHONY: gyp_all_modules
    533 gyp_all_modules: third_party_WebKit_Source_web_blink_web_gyp
    534 
    535 # Alias gyp target name.
    536 .PHONY: blink_web
    537 blink_web: third_party_WebKit_Source_web_blink_web_gyp
    538 
    539 include $(BUILD_STATIC_LIBRARY)
    540