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_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,skia_skia_gyp)/skia.stamp \ 15 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a 16 17 GYP_GENERATED_OUTPUTS := 18 19 # Make sure our deps and generated files are built first. 20 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 21 22 LOCAL_CPP_EXTENSION := .cc 23 LOCAL_GENERATED_SOURCES := 24 25 GYP_COPIED_SOURCE_ORIGIN_DIRS := 26 27 LOCAL_SRC_FILES := \ 28 content/gpu/gpu_main.cc \ 29 content/gpu/gpu_process.cc \ 30 content/gpu/gpu_child_thread.cc \ 31 content/gpu/gpu_watchdog_thread.cc \ 32 content/gpu/in_process_gpu_thread.cc 33 34 35 # Flags passed to both C and C++ files. 36 MY_CFLAGS_Debug := \ 37 -fstack-protector \ 38 --param=ssp-buffer-size=4 \ 39 \ 40 -fno-exceptions \ 41 -fno-strict-aliasing \ 42 -Wall \ 43 -Wno-unused-parameter \ 44 -Wno-missing-field-initializers \ 45 -fvisibility=hidden \ 46 -pipe \ 47 -fPIC \ 48 -Wno-unknown-pragmas \ 49 -EL \ 50 -mhard-float \ 51 -ffunction-sections \ 52 -funwind-tables \ 53 -g \ 54 -fstack-protector \ 55 -fno-short-enums \ 56 -finline-limit=64 \ 57 -Wa,--noexecstack \ 58 -U_FORTIFY_SOURCE \ 59 -Wno-extra \ 60 -Wno-ignored-qualifiers \ 61 -Wno-type-limits \ 62 -Os \ 63 -g \ 64 -fomit-frame-pointer \ 65 -fdata-sections \ 66 -ffunction-sections 67 68 MY_DEFS_Debug := \ 69 '-DCONTENT_IMPLEMENTATION' \ 70 '-DV8_DEPRECATION_WARNINGS' \ 71 '-D_FILE_OFFSET_BITS=64' \ 72 '-DNO_TCMALLOC' \ 73 '-DDISABLE_NACL' \ 74 '-DCHROMIUM_BUILD' \ 75 '-DUSE_LIBJPEG_TURBO=1' \ 76 '-DUSE_PROPRIETARY_CODECS' \ 77 '-DENABLE_CONFIGURATION_POLICY' \ 78 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 79 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 80 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 81 '-DUSE_OPENSSL=1' \ 82 '-DENABLE_EGLIMAGE=1' \ 83 '-DCLD_VERSION=1' \ 84 '-DENABLE_PRINTING=1' \ 85 '-DENABLE_MANAGED_USERS=1' \ 86 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 87 '-DMESA_EGL_NO_X11_HEADERS' \ 88 '-D__STDC_CONSTANT_MACROS' \ 89 '-D__STDC_FORMAT_MACROS' \ 90 '-DANDROID' \ 91 '-D__GNU_SOURCE=1' \ 92 '-DUSE_STLPORT=1' \ 93 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 94 '-DCHROME_BUILD_ID=""' \ 95 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 96 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 97 '-D_DEBUG' 98 99 100 # Include paths placed before CFLAGS/CPPFLAGS 101 LOCAL_C_INCLUDES_Debug := \ 102 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 103 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 104 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 105 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 106 $(LOCAL_PATH) \ 107 $(LOCAL_PATH)/skia/config \ 108 $(LOCAL_PATH)/third_party/WebKit/Source \ 109 $(LOCAL_PATH)/third_party/khronos \ 110 $(LOCAL_PATH)/gpu \ 111 $(PWD)/external/skia/include \ 112 $(PWD)/external/skia/include/core \ 113 $(LOCAL_PATH)/third_party/skia/src/core \ 114 $(LOCAL_PATH)/skia/ext \ 115 $(gyp_shared_intermediate_dir)/ui/gl \ 116 $(LOCAL_PATH)/third_party/mesa/src/include \ 117 $(PWD)/frameworks/wilhelm/include \ 118 $(PWD)/bionic \ 119 $(PWD)/external/stlport/stlport 120 121 122 # Flags passed to only C++ (and not C) files. 123 LOCAL_CPPFLAGS_Debug := \ 124 -fno-rtti \ 125 -fno-threadsafe-statics \ 126 -fvisibility-inlines-hidden \ 127 -Wsign-compare \ 128 -Wno-uninitialized \ 129 -Wno-error=c++0x-compat \ 130 -Wno-non-virtual-dtor \ 131 -Wno-sign-promo 132 133 134 # Flags passed to both C and C++ files. 135 MY_CFLAGS_Release := \ 136 -fstack-protector \ 137 --param=ssp-buffer-size=4 \ 138 \ 139 -fno-exceptions \ 140 -fno-strict-aliasing \ 141 -Wall \ 142 -Wno-unused-parameter \ 143 -Wno-missing-field-initializers \ 144 -fvisibility=hidden \ 145 -pipe \ 146 -fPIC \ 147 -Wno-unknown-pragmas \ 148 -EL \ 149 -mhard-float \ 150 -ffunction-sections \ 151 -funwind-tables \ 152 -g \ 153 -fstack-protector \ 154 -fno-short-enums \ 155 -finline-limit=64 \ 156 -Wa,--noexecstack \ 157 -U_FORTIFY_SOURCE \ 158 -Wno-extra \ 159 -Wno-ignored-qualifiers \ 160 -Wno-type-limits \ 161 -Os \ 162 -fno-ident \ 163 -fdata-sections \ 164 -ffunction-sections \ 165 -fomit-frame-pointer 166 167 MY_DEFS_Release := \ 168 '-DCONTENT_IMPLEMENTATION' \ 169 '-DV8_DEPRECATION_WARNINGS' \ 170 '-D_FILE_OFFSET_BITS=64' \ 171 '-DNO_TCMALLOC' \ 172 '-DDISABLE_NACL' \ 173 '-DCHROMIUM_BUILD' \ 174 '-DUSE_LIBJPEG_TURBO=1' \ 175 '-DUSE_PROPRIETARY_CODECS' \ 176 '-DENABLE_CONFIGURATION_POLICY' \ 177 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 178 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 179 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 180 '-DUSE_OPENSSL=1' \ 181 '-DENABLE_EGLIMAGE=1' \ 182 '-DCLD_VERSION=1' \ 183 '-DENABLE_PRINTING=1' \ 184 '-DENABLE_MANAGED_USERS=1' \ 185 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 186 '-DMESA_EGL_NO_X11_HEADERS' \ 187 '-D__STDC_CONSTANT_MACROS' \ 188 '-D__STDC_FORMAT_MACROS' \ 189 '-DANDROID' \ 190 '-D__GNU_SOURCE=1' \ 191 '-DUSE_STLPORT=1' \ 192 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 193 '-DCHROME_BUILD_ID=""' \ 194 '-DNDEBUG' \ 195 '-DNVALGRIND' \ 196 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 197 '-D_FORTIFY_SOURCE=2' 198 199 200 # Include paths placed before CFLAGS/CPPFLAGS 201 LOCAL_C_INCLUDES_Release := \ 202 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 203 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 204 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 205 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 206 $(LOCAL_PATH) \ 207 $(LOCAL_PATH)/skia/config \ 208 $(LOCAL_PATH)/third_party/WebKit/Source \ 209 $(LOCAL_PATH)/third_party/khronos \ 210 $(LOCAL_PATH)/gpu \ 211 $(PWD)/external/skia/include \ 212 $(PWD)/external/skia/include/core \ 213 $(LOCAL_PATH)/third_party/skia/src/core \ 214 $(LOCAL_PATH)/skia/ext \ 215 $(gyp_shared_intermediate_dir)/ui/gl \ 216 $(LOCAL_PATH)/third_party/mesa/src/include \ 217 $(PWD)/frameworks/wilhelm/include \ 218 $(PWD)/bionic \ 219 $(PWD)/external/stlport/stlport 220 221 222 # Flags passed to only C++ (and not C) files. 223 LOCAL_CPPFLAGS_Release := \ 224 -fno-rtti \ 225 -fno-threadsafe-statics \ 226 -fvisibility-inlines-hidden \ 227 -Wsign-compare \ 228 -Wno-uninitialized \ 229 -Wno-error=c++0x-compat \ 230 -Wno-non-virtual-dtor \ 231 -Wno-sign-promo 232 233 234 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 235 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 236 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 237 ### Rules for final target. 238 239 LOCAL_LDFLAGS_Debug := \ 240 -Wl,-z,now \ 241 -Wl,-z,relro \ 242 -Wl,-z,noexecstack \ 243 -fPIC \ 244 -EL \ 245 -Wl,--no-keep-memory \ 246 -nostdlib \ 247 -Wl,--no-undefined \ 248 -Wl,--exclude-libs=ALL \ 249 -Wl,--fatal-warnings \ 250 -Wl,--gc-sections \ 251 -Wl,--warn-shared-textrel \ 252 -Wl,-O1 \ 253 -Wl,--as-needed 254 255 256 LOCAL_LDFLAGS_Release := \ 257 -Wl,-z,now \ 258 -Wl,-z,relro \ 259 -Wl,-z,noexecstack \ 260 -fPIC \ 261 -EL \ 262 -Wl,--no-keep-memory \ 263 -nostdlib \ 264 -Wl,--no-undefined \ 265 -Wl,--exclude-libs=ALL \ 266 -Wl,-O1 \ 267 -Wl,--as-needed \ 268 -Wl,--gc-sections \ 269 -Wl,--fatal-warnings \ 270 -Wl,--warn-shared-textrel 271 272 273 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 274 275 LOCAL_STATIC_LIBRARIES := \ 276 ui_gl_gl_gyp 277 278 # Enable grouping to fix circular references 279 LOCAL_GROUP_STATIC_LIBRARIES := true 280 281 LOCAL_SHARED_LIBRARIES := \ 282 libskia \ 283 libstlport \ 284 libdl 285 286 # Add target alias to "gyp_all_modules" target. 287 .PHONY: gyp_all_modules 288 gyp_all_modules: content_content_gpu_gyp 289 290 # Alias gyp target name. 291 .PHONY: content_gpu 292 content_gpu: content_content_gpu_gyp 293 294 include $(BUILD_STATIC_LIBRARY) 295