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_app_both_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,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \ 15 $(call intermediates-dir-for,GYP,content_content_jni_headers_gyp)/content_jni_headers.stamp \ 16 $(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp 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 content/app/android/app_jni_registrar.cc \ 30 content/app/android/child_process_service.cc \ 31 content/app/android/content_main.cc \ 32 content/app/android/library_loader_hooks.cc \ 33 content/app/content_main_runner.cc \ 34 content/public/app/content_main_delegate.cc 35 36 37 # Flags passed to both C and C++ files. 38 MY_CFLAGS_Debug := \ 39 -fstack-protector \ 40 --param=ssp-buffer-size=4 \ 41 \ 42 -fno-exceptions \ 43 -fno-strict-aliasing \ 44 -Wall \ 45 -Wno-unused-parameter \ 46 -Wno-missing-field-initializers \ 47 -fvisibility=hidden \ 48 -pipe \ 49 -fPIC \ 50 -EL \ 51 -mhard-float \ 52 -ffunction-sections \ 53 -funwind-tables \ 54 -g \ 55 -fstack-protector \ 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 -Os \ 64 -g \ 65 -fomit-frame-pointer \ 66 -fdata-sections \ 67 -ffunction-sections 68 69 MY_DEFS_Debug := \ 70 '-DCONTENT_IMPLEMENTATION' \ 71 '-DANGLE_DX11' \ 72 '-D_FILE_OFFSET_BITS=64' \ 73 '-DNO_TCMALLOC' \ 74 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 75 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 76 '-DDISABLE_NACL' \ 77 '-DCHROMIUM_BUILD' \ 78 '-DUSE_LIBJPEG_TURBO=1' \ 79 '-DUSE_PROPRIETARY_CODECS' \ 80 '-DENABLE_CONFIGURATION_POLICY' \ 81 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 82 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 83 '-DENABLE_GPU=1' \ 84 '-DUSE_OPENSSL=1' \ 85 '-DENABLE_EGLIMAGE=1' \ 86 '-DENABLE_PRINTING=1' \ 87 '-DPOSIX_AVOID_MMAP' \ 88 '-DU_USING_ICU_NAMESPACE=0' \ 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 $(PWD)/external/icu4c/common \ 111 $(PWD)/external/icu4c/i18n \ 112 $(gyp_shared_intermediate_dir)/content \ 113 $(LOCAL_PATH)/third_party/skia/src/core \ 114 $(LOCAL_PATH)/skia/ext \ 115 $(PWD)/frameworks/wilhelm/include \ 116 $(PWD)/bionic \ 117 $(PWD)/external/stlport/stlport 118 119 120 # Flags passed to only C++ (and not C) files. 121 LOCAL_CPPFLAGS_Debug := \ 122 -fno-rtti \ 123 -fno-threadsafe-statics \ 124 -fvisibility-inlines-hidden \ 125 -Wsign-compare \ 126 -Wno-uninitialized \ 127 -Wno-error=c++0x-compat \ 128 -Wno-non-virtual-dtor \ 129 -Wno-sign-promo 130 131 132 # Flags passed to both C and C++ files. 133 MY_CFLAGS_Release := \ 134 -fstack-protector \ 135 --param=ssp-buffer-size=4 \ 136 \ 137 -fno-exceptions \ 138 -fno-strict-aliasing \ 139 -Wall \ 140 -Wno-unused-parameter \ 141 -Wno-missing-field-initializers \ 142 -fvisibility=hidden \ 143 -pipe \ 144 -fPIC \ 145 -EL \ 146 -mhard-float \ 147 -ffunction-sections \ 148 -funwind-tables \ 149 -g \ 150 -fstack-protector \ 151 -fno-short-enums \ 152 -finline-limit=64 \ 153 -Wa,--noexecstack \ 154 -U_FORTIFY_SOURCE \ 155 -Wno-extra \ 156 -Wno-ignored-qualifiers \ 157 -Wno-type-limits \ 158 -Os \ 159 -fno-ident \ 160 -fdata-sections \ 161 -ffunction-sections \ 162 -fomit-frame-pointer 163 164 MY_DEFS_Release := \ 165 '-DCONTENT_IMPLEMENTATION' \ 166 '-DANGLE_DX11' \ 167 '-D_FILE_OFFSET_BITS=64' \ 168 '-DNO_TCMALLOC' \ 169 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 170 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 171 '-DDISABLE_NACL' \ 172 '-DCHROMIUM_BUILD' \ 173 '-DUSE_LIBJPEG_TURBO=1' \ 174 '-DUSE_PROPRIETARY_CODECS' \ 175 '-DENABLE_CONFIGURATION_POLICY' \ 176 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 177 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 178 '-DENABLE_GPU=1' \ 179 '-DUSE_OPENSSL=1' \ 180 '-DENABLE_EGLIMAGE=1' \ 181 '-DENABLE_PRINTING=1' \ 182 '-DPOSIX_AVOID_MMAP' \ 183 '-DU_USING_ICU_NAMESPACE=0' \ 184 '-D__STDC_CONSTANT_MACROS' \ 185 '-D__STDC_FORMAT_MACROS' \ 186 '-DANDROID' \ 187 '-D__GNU_SOURCE=1' \ 188 '-DUSE_STLPORT=1' \ 189 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 190 '-DCHROME_BUILD_ID=""' \ 191 '-DNDEBUG' \ 192 '-DNVALGRIND' \ 193 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 194 '-D_FORTIFY_SOURCE=2' 195 196 197 # Include paths placed before CFLAGS/CPPFLAGS 198 LOCAL_C_INCLUDES_Release := \ 199 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 200 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 201 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 202 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 203 $(LOCAL_PATH) \ 204 $(LOCAL_PATH)/third_party/khronos \ 205 $(LOCAL_PATH)/gpu \ 206 $(PWD)/external/icu4c/common \ 207 $(PWD)/external/icu4c/i18n \ 208 $(gyp_shared_intermediate_dir)/content \ 209 $(LOCAL_PATH)/third_party/skia/src/core \ 210 $(LOCAL_PATH)/skia/ext \ 211 $(PWD)/frameworks/wilhelm/include \ 212 $(PWD)/bionic \ 213 $(PWD)/external/stlport/stlport 214 215 216 # Flags passed to only C++ (and not C) files. 217 LOCAL_CPPFLAGS_Release := \ 218 -fno-rtti \ 219 -fno-threadsafe-statics \ 220 -fvisibility-inlines-hidden \ 221 -Wsign-compare \ 222 -Wno-uninitialized \ 223 -Wno-error=c++0x-compat \ 224 -Wno-non-virtual-dtor \ 225 -Wno-sign-promo 226 227 228 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 229 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 230 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 231 ### Rules for final target. 232 233 LOCAL_LDFLAGS_Debug := \ 234 -Wl,-z,now \ 235 -Wl,-z,relro \ 236 -Wl,-z,noexecstack \ 237 -fPIC \ 238 -EL \ 239 -Wl,--no-keep-memory \ 240 -nostdlib \ 241 -Wl,--no-undefined \ 242 -Wl,--exclude-libs=ALL \ 243 -Wl,--fatal-warnings \ 244 -Wl,--gc-sections \ 245 -Wl,--warn-shared-textrel \ 246 -Wl,-O1 \ 247 -Wl,--as-needed 248 249 250 LOCAL_LDFLAGS_Release := \ 251 -Wl,-z,now \ 252 -Wl,-z,relro \ 253 -Wl,-z,noexecstack \ 254 -fPIC \ 255 -EL \ 256 -Wl,--no-keep-memory \ 257 -nostdlib \ 258 -Wl,--no-undefined \ 259 -Wl,--exclude-libs=ALL \ 260 -Wl,-O1 \ 261 -Wl,--as-needed \ 262 -Wl,--gc-sections \ 263 -Wl,--fatal-warnings \ 264 -Wl,--warn-shared-textrel 265 266 267 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 268 269 LOCAL_STATIC_LIBRARIES := \ 270 cpufeatures \ 271 ui_ui_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_app_both_gyp 284 285 # Alias gyp target name. 286 .PHONY: content_app_both 287 content_app_both: content_content_app_both_gyp 288 289 include $(BUILD_STATIC_LIBRARY) 290