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