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