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