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