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 33 34 # Flags passed to both C and C++ files. 35 MY_CFLAGS_Debug := \ 36 --param=ssp-buffer-size=4 \ 37 -Werror \ 38 -fno-exceptions \ 39 -fno-strict-aliasing \ 40 -Wall \ 41 -Wno-unused-parameter \ 42 -Wno-missing-field-initializers \ 43 -fvisibility=hidden \ 44 -pipe \ 45 -fPIC \ 46 -Wno-unknown-pragmas \ 47 -m32 \ 48 -mmmx \ 49 -march=pentium4 \ 50 -msse2 \ 51 -mfpmath=sse \ 52 -fuse-ld=gold \ 53 -ffunction-sections \ 54 -funwind-tables \ 55 -g \ 56 -fno-short-enums \ 57 -finline-limit=64 \ 58 -Wa,--noexecstack \ 59 -U_FORTIFY_SOURCE \ 60 -Wno-extra \ 61 -Wno-ignored-qualifiers \ 62 -Wno-type-limits \ 63 -fno-stack-protector \ 64 -Os \ 65 -g \ 66 -fomit-frame-pointer \ 67 -fdata-sections \ 68 -ffunction-sections 69 70 MY_DEFS_Debug := \ 71 '-DCONTENT_IMPLEMENTATION' \ 72 '-DANGLE_DX11' \ 73 '-D_FILE_OFFSET_BITS=64' \ 74 '-DNO_TCMALLOC' \ 75 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 76 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 77 '-DDISABLE_NACL' \ 78 '-DCHROMIUM_BUILD' \ 79 '-DUSE_LIBJPEG_TURBO=1' \ 80 '-DUSE_PROPRIETARY_CODECS' \ 81 '-DENABLE_CONFIGURATION_POLICY' \ 82 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 83 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 84 '-DENABLE_GPU=1' \ 85 '-DUSE_OPENSSL=1' \ 86 '-DENABLE_EGLIMAGE=1' \ 87 '-DENABLE_PRINTING=1' \ 88 '-DMESA_EGL_NO_X11_HEADERS' \ 89 '-D__STDC_CONSTANT_MACROS' \ 90 '-D__STDC_FORMAT_MACROS' \ 91 '-DANDROID' \ 92 '-D__GNU_SOURCE=1' \ 93 '-DUSE_STLPORT=1' \ 94 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 95 '-DCHROME_BUILD_ID=""' \ 96 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 97 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 98 '-D_DEBUG' 99 100 101 # Include paths placed before CFLAGS/CPPFLAGS 102 LOCAL_C_INCLUDES_Debug := \ 103 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 104 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 105 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 106 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 107 $(LOCAL_PATH) \ 108 $(LOCAL_PATH)/third_party/khronos \ 109 $(LOCAL_PATH)/gpu \ 110 $(LOCAL_PATH)/third_party/skia/src/core \ 111 $(LOCAL_PATH)/skia/ext \ 112 $(gyp_shared_intermediate_dir)/ui/gl \ 113 $(LOCAL_PATH)/third_party/mesa/src/include \ 114 $(PWD)/frameworks/wilhelm/include \ 115 $(PWD)/bionic \ 116 $(PWD)/external/stlport/stlport 117 118 119 # Flags passed to only C++ (and not C) files. 120 LOCAL_CPPFLAGS_Debug := \ 121 -fno-rtti \ 122 -fno-threadsafe-statics \ 123 -fvisibility-inlines-hidden \ 124 -Wsign-compare \ 125 -Wno-error=c++0x-compat \ 126 -Wno-non-virtual-dtor \ 127 -Wno-sign-promo 128 129 130 # Flags passed to both C and C++ files. 131 MY_CFLAGS_Release := \ 132 --param=ssp-buffer-size=4 \ 133 -Werror \ 134 -fno-exceptions \ 135 -fno-strict-aliasing \ 136 -Wall \ 137 -Wno-unused-parameter \ 138 -Wno-missing-field-initializers \ 139 -fvisibility=hidden \ 140 -pipe \ 141 -fPIC \ 142 -Wno-unknown-pragmas \ 143 -m32 \ 144 -mmmx \ 145 -march=pentium4 \ 146 -msse2 \ 147 -mfpmath=sse \ 148 -fuse-ld=gold \ 149 -ffunction-sections \ 150 -funwind-tables \ 151 -g \ 152 -fno-short-enums \ 153 -finline-limit=64 \ 154 -Wa,--noexecstack \ 155 -U_FORTIFY_SOURCE \ 156 -Wno-extra \ 157 -Wno-ignored-qualifiers \ 158 -Wno-type-limits \ 159 -fno-stack-protector \ 160 -Os \ 161 -fno-ident \ 162 -fdata-sections \ 163 -ffunction-sections \ 164 -fomit-frame-pointer \ 165 -fno-unwind-tables \ 166 -fno-asynchronous-unwind-tables 167 168 MY_DEFS_Release := \ 169 '-DCONTENT_IMPLEMENTATION' \ 170 '-DANGLE_DX11' \ 171 '-D_FILE_OFFSET_BITS=64' \ 172 '-DNO_TCMALLOC' \ 173 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 174 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 175 '-DDISABLE_NACL' \ 176 '-DCHROMIUM_BUILD' \ 177 '-DUSE_LIBJPEG_TURBO=1' \ 178 '-DUSE_PROPRIETARY_CODECS' \ 179 '-DENABLE_CONFIGURATION_POLICY' \ 180 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 181 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 182 '-DENABLE_GPU=1' \ 183 '-DUSE_OPENSSL=1' \ 184 '-DENABLE_EGLIMAGE=1' \ 185 '-DENABLE_PRINTING=1' \ 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)/third_party/khronos \ 208 $(LOCAL_PATH)/gpu \ 209 $(LOCAL_PATH)/third_party/skia/src/core \ 210 $(LOCAL_PATH)/skia/ext \ 211 $(gyp_shared_intermediate_dir)/ui/gl \ 212 $(LOCAL_PATH)/third_party/mesa/src/include \ 213 $(PWD)/frameworks/wilhelm/include \ 214 $(PWD)/bionic \ 215 $(PWD)/external/stlport/stlport 216 217 218 # Flags passed to only C++ (and not C) files. 219 LOCAL_CPPFLAGS_Release := \ 220 -fno-rtti \ 221 -fno-threadsafe-statics \ 222 -fvisibility-inlines-hidden \ 223 -Wsign-compare \ 224 -Wno-error=c++0x-compat \ 225 -Wno-non-virtual-dtor \ 226 -Wno-sign-promo 227 228 229 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 230 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 231 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 232 ### Rules for final target. 233 234 LOCAL_LDFLAGS_Debug := \ 235 -Wl,-z,now \ 236 -Wl,-z,relro \ 237 -Wl,-z,noexecstack \ 238 -fPIC \ 239 -m32 \ 240 -fuse-ld=gold \ 241 -nostdlib \ 242 -Wl,--no-undefined \ 243 -Wl,--exclude-libs=ALL \ 244 -Wl,--fatal-warnings \ 245 -Wl,--gc-sections \ 246 -Wl,--warn-shared-textrel \ 247 -Wl,-O1 \ 248 -Wl,--as-needed 249 250 251 LOCAL_LDFLAGS_Release := \ 252 -Wl,-z,now \ 253 -Wl,-z,relro \ 254 -Wl,-z,noexecstack \ 255 -fPIC \ 256 -m32 \ 257 -fuse-ld=gold \ 258 -nostdlib \ 259 -Wl,--no-undefined \ 260 -Wl,--exclude-libs=ALL \ 261 -Wl,-O1 \ 262 -Wl,--as-needed \ 263 -Wl,--gc-sections \ 264 -Wl,--fatal-warnings \ 265 -Wl,--warn-shared-textrel 266 267 268 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 269 270 LOCAL_STATIC_LIBRARIES := \ 271 ui_gl_gl_gyp 272 273 # Enable grouping to fix circular references 274 LOCAL_GROUP_STATIC_LIBRARIES := true 275 276 LOCAL_SHARED_LIBRARIES := \ 277 libskia \ 278 libstlport \ 279 libdl 280 281 # Add target alias to "gyp_all_modules" target. 282 .PHONY: gyp_all_modules 283 gyp_all_modules: content_content_gpu_gyp 284 285 # Alias gyp target name. 286 .PHONY: content_gpu 287 content_gpu: content_content_gpu_gyp 288 289 include $(BUILD_STATIC_LIBRARY) 290