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 	-fstack-protector \
    210 	--param=ssp-buffer-size=4 \
    211 	 \
    212 	-fno-strict-aliasing \
    213 	-Wall \
    214 	-Wno-unused-parameter \
    215 	-Wno-missing-field-initializers \
    216 	-fvisibility=hidden \
    217 	-pipe \
    218 	-fPIC \
    219 	-Wno-unused-local-typedefs \
    220 	-ffunction-sections \
    221 	-funwind-tables \
    222 	-g \
    223 	-fstack-protector \
    224 	-fno-short-enums \
    225 	-finline-limit=64 \
    226 	-Wa,--noexecstack \
    227 	-U_FORTIFY_SOURCE \
    228 	-Wno-extra \
    229 	-Wno-ignored-qualifiers \
    230 	-Wno-type-limits \
    231 	-Wno-unused-but-set-variable \
    232 	-Os \
    233 	-g \
    234 	-gdwarf-4 \
    235 	-fdata-sections \
    236 	-ffunction-sections \
    237 	-fomit-frame-pointer \
    238 	-funwind-tables
    239 
    240 MY_DEFS_Debug := \
    241 	'-DV8_DEPRECATION_WARNINGS' \
    242 	'-D_FILE_OFFSET_BITS=64' \
    243 	'-DNO_TCMALLOC' \
    244 	'-DDISABLE_NACL' \
    245 	'-DCHROMIUM_BUILD' \
    246 	'-DUSE_LIBJPEG_TURBO=1' \
    247 	'-DENABLE_WEBRTC=1' \
    248 	'-DUSE_PROPRIETARY_CODECS' \
    249 	'-DENABLE_BROWSER_CDMS' \
    250 	'-DENABLE_CONFIGURATION_POLICY' \
    251 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    252 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    253 	'-DENABLE_EGLIMAGE=1' \
    254 	'-DCLD_VERSION=1' \
    255 	'-DENABLE_PRINTING=1' \
    256 	'-DENABLE_MANAGED_USERS=1' \
    257 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    258 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    259 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    260 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    261 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    262 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    263 	'-DVIDEO_HOLE=1' \
    264 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    265 	'-DBLINK_IMPLEMENTATION=1' \
    266 	'-DINSIDE_BLINK' \
    267 	'-DCHROME_PNG_WRITE_SUPPORT' \
    268 	'-DPNG_USER_CONFIG' \
    269 	'-DCHROME_PNG_READ_PACK_SUPPORT' \
    270 	'-DENABLE_SVG_FONTS=1' \
    271 	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
    272 	'-DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1' \
    273 	'-DENABLE_WEB_AUDIO=1' \
    274 	'-DENABLE_OPENTYPE_VERTICAL=1' \
    275 	'-DU_USING_ICU_NAMESPACE=0' \
    276 	'-DU_ENABLE_DYLOAD=0' \
    277 	'-DSK_ENABLE_INST_COUNT=0' \
    278 	'-DSK_SUPPORT_GPU=1' \
    279 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    280 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    281 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    282 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    283 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    284 	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
    285 	'-DSK_BUILD_FOR_ANDROID' \
    286 	'-DSK_USE_POSIX_THREADS' \
    287 	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
    288 	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
    289 	'-DUSE_OPENSSL=1' \
    290 	'-DUSE_OPENSSL_CERTS=1' \
    291 	'-D__STDC_CONSTANT_MACROS' \
    292 	'-D__STDC_FORMAT_MACROS' \
    293 	'-DANDROID' \
    294 	'-D__GNU_SOURCE=1' \
    295 	'-DUSE_STLPORT=1' \
    296 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    297 	'-DCHROME_BUILD_ID=""' \
    298 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    299 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    300 	'-D_DEBUG'
    301 
    302 
    303 # Include paths placed before CFLAGS/CPPFLAGS
    304 LOCAL_C_INCLUDES_Debug := \
    305 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    306 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    307 	$(gyp_shared_intermediate_dir) \
    308 	$(LOCAL_PATH)/third_party/angle/include \
    309 	$(LOCAL_PATH)/third_party/skia/include/utils \
    310 	$(LOCAL_PATH)/third_party/WebKit/Source \
    311 	$(LOCAL_PATH) \
    312 	$(LOCAL_PATH)/skia/config \
    313 	$(LOCAL_PATH)/third_party/khronos \
    314 	$(LOCAL_PATH)/gpu \
    315 	$(LOCAL_PATH)/third_party/WebKit \
    316 	$(gyp_shared_intermediate_dir)/blink \
    317 	$(LOCAL_PATH)/third_party/openmax_dl \
    318 	$(LOCAL_PATH)/third_party/libpng \
    319 	$(LOCAL_PATH)/third_party/zlib \
    320 	$(LOCAL_PATH)/third_party/libwebp \
    321 	$(LOCAL_PATH)/third_party/ots/include \
    322 	$(LOCAL_PATH)/third_party/iccjpeg \
    323 	$(LOCAL_PATH)/third_party/libjpeg_turbo \
    324 	$(PWD)/external/icu/icu4c/source/common \
    325 	$(PWD)/external/icu/icu4c/source/i18n \
    326 	$(LOCAL_PATH)/third_party/qcms/src \
    327 	$(LOCAL_PATH)/third_party/skia/src/core \
    328 	$(LOCAL_PATH)/third_party/skia/include/core \
    329 	$(LOCAL_PATH)/third_party/skia/include/effects \
    330 	$(LOCAL_PATH)/third_party/skia/include/pdf \
    331 	$(LOCAL_PATH)/third_party/skia/include/gpu \
    332 	$(LOCAL_PATH)/third_party/skia/include/lazy \
    333 	$(LOCAL_PATH)/third_party/skia/include/pathops \
    334 	$(LOCAL_PATH)/third_party/skia/include/pipe \
    335 	$(LOCAL_PATH)/third_party/skia/include/ports \
    336 	$(LOCAL_PATH)/skia/ext \
    337 	$(LOCAL_PATH)/third_party/npapi \
    338 	$(LOCAL_PATH)/third_party/npapi/bindings \
    339 	$(LOCAL_PATH)/v8/include \
    340 	$(PWD)/frameworks/wilhelm/include \
    341 	$(PWD)/bionic \
    342 	$(PWD)/external/stlport/stlport
    343 
    344 
    345 # Flags passed to only C++ (and not C) files.
    346 LOCAL_CPPFLAGS_Debug := \
    347 	-Wno-c++0x-compat \
    348 	-fno-exceptions \
    349 	-fno-rtti \
    350 	-fno-threadsafe-statics \
    351 	-fvisibility-inlines-hidden \
    352 	-Wsign-compare \
    353 	-Wno-c++0x-compat \
    354 	-Wno-uninitialized \
    355 	-std=gnu++11 \
    356 	-Wno-narrowing \
    357 	-Wno-literal-suffix \
    358 	-Wno-non-virtual-dtor \
    359 	-Wno-sign-promo
    360 
    361 
    362 # Flags passed to both C and C++ files.
    363 MY_CFLAGS_Release := \
    364 	-fstack-protector \
    365 	--param=ssp-buffer-size=4 \
    366 	 \
    367 	-fno-strict-aliasing \
    368 	-Wall \
    369 	-Wno-unused-parameter \
    370 	-Wno-missing-field-initializers \
    371 	-fvisibility=hidden \
    372 	-pipe \
    373 	-fPIC \
    374 	-Wno-unused-local-typedefs \
    375 	-ffunction-sections \
    376 	-funwind-tables \
    377 	-g \
    378 	-fstack-protector \
    379 	-fno-short-enums \
    380 	-finline-limit=64 \
    381 	-Wa,--noexecstack \
    382 	-U_FORTIFY_SOURCE \
    383 	-Wno-extra \
    384 	-Wno-ignored-qualifiers \
    385 	-Wno-type-limits \
    386 	-Wno-unused-but-set-variable \
    387 	-Os \
    388 	-fno-ident \
    389 	-fdata-sections \
    390 	-ffunction-sections \
    391 	-fomit-frame-pointer \
    392 	-funwind-tables
    393 
    394 MY_DEFS_Release := \
    395 	'-DV8_DEPRECATION_WARNINGS' \
    396 	'-D_FILE_OFFSET_BITS=64' \
    397 	'-DNO_TCMALLOC' \
    398 	'-DDISABLE_NACL' \
    399 	'-DCHROMIUM_BUILD' \
    400 	'-DUSE_LIBJPEG_TURBO=1' \
    401 	'-DENABLE_WEBRTC=1' \
    402 	'-DUSE_PROPRIETARY_CODECS' \
    403 	'-DENABLE_BROWSER_CDMS' \
    404 	'-DENABLE_CONFIGURATION_POLICY' \
    405 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    406 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    407 	'-DENABLE_EGLIMAGE=1' \
    408 	'-DCLD_VERSION=1' \
    409 	'-DENABLE_PRINTING=1' \
    410 	'-DENABLE_MANAGED_USERS=1' \
    411 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    412 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    413 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    414 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    415 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    416 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    417 	'-DVIDEO_HOLE=1' \
    418 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    419 	'-DBLINK_IMPLEMENTATION=1' \
    420 	'-DINSIDE_BLINK' \
    421 	'-DCHROME_PNG_WRITE_SUPPORT' \
    422 	'-DPNG_USER_CONFIG' \
    423 	'-DCHROME_PNG_READ_PACK_SUPPORT' \
    424 	'-DENABLE_SVG_FONTS=1' \
    425 	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
    426 	'-DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1' \
    427 	'-DENABLE_WEB_AUDIO=1' \
    428 	'-DENABLE_OPENTYPE_VERTICAL=1' \
    429 	'-DU_USING_ICU_NAMESPACE=0' \
    430 	'-DU_ENABLE_DYLOAD=0' \
    431 	'-DSK_ENABLE_INST_COUNT=0' \
    432 	'-DSK_SUPPORT_GPU=1' \
    433 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    434 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    435 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    436 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    437 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    438 	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
    439 	'-DSK_BUILD_FOR_ANDROID' \
    440 	'-DSK_USE_POSIX_THREADS' \
    441 	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
    442 	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
    443 	'-DUSE_OPENSSL=1' \
    444 	'-DUSE_OPENSSL_CERTS=1' \
    445 	'-D__STDC_CONSTANT_MACROS' \
    446 	'-D__STDC_FORMAT_MACROS' \
    447 	'-DANDROID' \
    448 	'-D__GNU_SOURCE=1' \
    449 	'-DUSE_STLPORT=1' \
    450 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    451 	'-DCHROME_BUILD_ID=""' \
    452 	'-DNDEBUG' \
    453 	'-DNVALGRIND' \
    454 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    455 	'-D_FORTIFY_SOURCE=2'
    456 
    457 
    458 # Include paths placed before CFLAGS/CPPFLAGS
    459 LOCAL_C_INCLUDES_Release := \
    460 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    461 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    462 	$(gyp_shared_intermediate_dir) \
    463 	$(LOCAL_PATH)/third_party/angle/include \
    464 	$(LOCAL_PATH)/third_party/skia/include/utils \
    465 	$(LOCAL_PATH)/third_party/WebKit/Source \
    466 	$(LOCAL_PATH) \
    467 	$(LOCAL_PATH)/skia/config \
    468 	$(LOCAL_PATH)/third_party/khronos \
    469 	$(LOCAL_PATH)/gpu \
    470 	$(LOCAL_PATH)/third_party/WebKit \
    471 	$(gyp_shared_intermediate_dir)/blink \
    472 	$(LOCAL_PATH)/third_party/openmax_dl \
    473 	$(LOCAL_PATH)/third_party/libpng \
    474 	$(LOCAL_PATH)/third_party/zlib \
    475 	$(LOCAL_PATH)/third_party/libwebp \
    476 	$(LOCAL_PATH)/third_party/ots/include \
    477 	$(LOCAL_PATH)/third_party/iccjpeg \
    478 	$(LOCAL_PATH)/third_party/libjpeg_turbo \
    479 	$(PWD)/external/icu/icu4c/source/common \
    480 	$(PWD)/external/icu/icu4c/source/i18n \
    481 	$(LOCAL_PATH)/third_party/qcms/src \
    482 	$(LOCAL_PATH)/third_party/skia/src/core \
    483 	$(LOCAL_PATH)/third_party/skia/include/core \
    484 	$(LOCAL_PATH)/third_party/skia/include/effects \
    485 	$(LOCAL_PATH)/third_party/skia/include/pdf \
    486 	$(LOCAL_PATH)/third_party/skia/include/gpu \
    487 	$(LOCAL_PATH)/third_party/skia/include/lazy \
    488 	$(LOCAL_PATH)/third_party/skia/include/pathops \
    489 	$(LOCAL_PATH)/third_party/skia/include/pipe \
    490 	$(LOCAL_PATH)/third_party/skia/include/ports \
    491 	$(LOCAL_PATH)/skia/ext \
    492 	$(LOCAL_PATH)/third_party/npapi \
    493 	$(LOCAL_PATH)/third_party/npapi/bindings \
    494 	$(LOCAL_PATH)/v8/include \
    495 	$(PWD)/frameworks/wilhelm/include \
    496 	$(PWD)/bionic \
    497 	$(PWD)/external/stlport/stlport
    498 
    499 
    500 # Flags passed to only C++ (and not C) files.
    501 LOCAL_CPPFLAGS_Release := \
    502 	-Wno-c++0x-compat \
    503 	-fno-exceptions \
    504 	-fno-rtti \
    505 	-fno-threadsafe-statics \
    506 	-fvisibility-inlines-hidden \
    507 	-Wsign-compare \
    508 	-Wno-c++0x-compat \
    509 	-Wno-uninitialized \
    510 	-std=gnu++11 \
    511 	-Wno-narrowing \
    512 	-Wno-literal-suffix \
    513 	-Wno-non-virtual-dtor \
    514 	-Wno-sign-promo
    515 
    516 
    517 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    518 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    519 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    520 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    521 ### Rules for final target.
    522 
    523 LOCAL_SHARED_LIBRARIES := \
    524 	libstlport \
    525 	libdl
    526 
    527 # Add target alias to "gyp_all_modules" target.
    528 .PHONY: gyp_all_modules
    529 gyp_all_modules: third_party_WebKit_Source_web_blink_web_gyp
    530 
    531 # Alias gyp target name.
    532 .PHONY: blink_web
    533 blink_web: third_party_WebKit_Source_web_blink_web_gyp
    534 
    535 include $(BUILD_STATIC_LIBRARY)
    536