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 -Werror \ 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 -fno-tree-sra \ 51 -fuse-ld=gold \ 52 -Wno-psabi \ 53 -ffunction-sections \ 54 -funwind-tables \ 55 -g \ 56 -fstack-protector \ 57 -fno-short-enums \ 58 -finline-limit=64 \ 59 -Wa,--noexecstack \ 60 -U_FORTIFY_SOURCE \ 61 -Wno-extra \ 62 -Wno-ignored-qualifiers \ 63 -Wno-type-limits \ 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 '-DPOSIX_AVOID_MMAP' \ 89 '-DU_USING_ICU_NAMESPACE=0' \ 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/icuuc/target \ 105 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 106 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 107 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 108 $(LOCAL_PATH) \ 109 $(LOCAL_PATH)/third_party/khronos \ 110 $(LOCAL_PATH)/gpu \ 111 $(PWD)/external/icu4c/common \ 112 $(PWD)/external/icu4c/i18n \ 113 $(gyp_shared_intermediate_dir)/content \ 114 $(LOCAL_PATH)/third_party/skia/src/core \ 115 $(LOCAL_PATH)/skia/ext \ 116 $(PWD)/frameworks/wilhelm/include \ 117 $(PWD)/bionic \ 118 $(PWD)/external/stlport/stlport 119 120 121 # Flags passed to only C++ (and not C) files. 122 LOCAL_CPPFLAGS_Debug := \ 123 -fno-rtti \ 124 -fno-threadsafe-statics \ 125 -fvisibility-inlines-hidden \ 126 -Wsign-compare \ 127 -Wno-abi \ 128 -Wno-error=c++0x-compat \ 129 -Wno-non-virtual-dtor \ 130 -Wno-sign-promo 131 132 133 # Flags passed to both C and C++ files. 134 MY_CFLAGS_Release := \ 135 -fstack-protector \ 136 --param=ssp-buffer-size=4 \ 137 -Werror \ 138 -fno-exceptions \ 139 -fno-strict-aliasing \ 140 -Wall \ 141 -Wno-unused-parameter \ 142 -Wno-missing-field-initializers \ 143 -fvisibility=hidden \ 144 -pipe \ 145 -fPIC \ 146 -fno-tree-sra \ 147 -fuse-ld=gold \ 148 -Wno-psabi \ 149 -ffunction-sections \ 150 -funwind-tables \ 151 -g \ 152 -fstack-protector \ 153 -fno-short-enums \ 154 -finline-limit=64 \ 155 -Wa,--noexecstack \ 156 -U_FORTIFY_SOURCE \ 157 -Wno-extra \ 158 -Wno-ignored-qualifiers \ 159 -Wno-type-limits \ 160 -Os \ 161 -fno-ident \ 162 -fdata-sections \ 163 -ffunction-sections \ 164 -fomit-frame-pointer 165 166 MY_DEFS_Release := \ 167 '-DCONTENT_IMPLEMENTATION' \ 168 '-DANGLE_DX11' \ 169 '-D_FILE_OFFSET_BITS=64' \ 170 '-DNO_TCMALLOC' \ 171 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 172 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 173 '-DDISABLE_NACL' \ 174 '-DCHROMIUM_BUILD' \ 175 '-DUSE_LIBJPEG_TURBO=1' \ 176 '-DUSE_PROPRIETARY_CODECS' \ 177 '-DENABLE_CONFIGURATION_POLICY' \ 178 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 179 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 180 '-DENABLE_GPU=1' \ 181 '-DUSE_OPENSSL=1' \ 182 '-DENABLE_EGLIMAGE=1' \ 183 '-DENABLE_PRINTING=1' \ 184 '-DPOSIX_AVOID_MMAP' \ 185 '-DU_USING_ICU_NAMESPACE=0' \ 186 '-D__STDC_CONSTANT_MACROS' \ 187 '-D__STDC_FORMAT_MACROS' \ 188 '-DANDROID' \ 189 '-D__GNU_SOURCE=1' \ 190 '-DUSE_STLPORT=1' \ 191 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 192 '-DCHROME_BUILD_ID=""' \ 193 '-DNDEBUG' \ 194 '-DNVALGRIND' \ 195 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 196 '-D_FORTIFY_SOURCE=2' 197 198 199 # Include paths placed before CFLAGS/CPPFLAGS 200 LOCAL_C_INCLUDES_Release := \ 201 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 202 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 203 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 204 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 205 $(LOCAL_PATH) \ 206 $(LOCAL_PATH)/third_party/khronos \ 207 $(LOCAL_PATH)/gpu \ 208 $(PWD)/external/icu4c/common \ 209 $(PWD)/external/icu4c/i18n \ 210 $(gyp_shared_intermediate_dir)/content \ 211 $(LOCAL_PATH)/third_party/skia/src/core \ 212 $(LOCAL_PATH)/skia/ext \ 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-abi \ 225 -Wno-error=c++0x-compat \ 226 -Wno-non-virtual-dtor \ 227 -Wno-sign-promo 228 229 230 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 231 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 232 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 233 ### Rules for final target. 234 235 LOCAL_LDFLAGS_Debug := \ 236 -Wl,-z,now \ 237 -Wl,-z,relro \ 238 -Wl,-z,noexecstack \ 239 -fPIC \ 240 -Wl,-z,relro \ 241 -Wl,-z,now \ 242 -fuse-ld=gold \ 243 -nostdlib \ 244 -Wl,--no-undefined \ 245 -Wl,--exclude-libs=ALL \ 246 -Wl,--icf=safe \ 247 -Wl,--fatal-warnings \ 248 -Wl,--gc-sections \ 249 -Wl,--warn-shared-textrel \ 250 -Wl,-O1 \ 251 -Wl,--as-needed 252 253 254 LOCAL_LDFLAGS_Release := \ 255 -Wl,-z,now \ 256 -Wl,-z,relro \ 257 -Wl,-z,noexecstack \ 258 -fPIC \ 259 -Wl,-z,relro \ 260 -Wl,-z,now \ 261 -fuse-ld=gold \ 262 -nostdlib \ 263 -Wl,--no-undefined \ 264 -Wl,--exclude-libs=ALL \ 265 -Wl,--icf=safe \ 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 cpufeatures \ 277 ui_ui_gyp 278 279 # Enable grouping to fix circular references 280 LOCAL_GROUP_STATIC_LIBRARIES := true 281 282 LOCAL_SHARED_LIBRARIES := \ 283 libskia \ 284 libstlport \ 285 libdl 286 287 # Add target alias to "gyp_all_modules" target. 288 .PHONY: gyp_all_modules 289 gyp_all_modules: content_content_app_both_gyp 290 291 # Alias gyp target name. 292 .PHONY: content_app_both 293 content_app_both: content_content_app_both_gyp 294 295 include $(BUILD_STATIC_LIBRARY) 296