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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_base_ui_base_gyp,,,$(GYP_VAR_PREFIX))/ui_base_ui_base_gyp.a \ 15 $(call intermediates-dir-for,GYP,content_content_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/content_jni_headers.stamp \ 16 $(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \ 17 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \ 18 $(call intermediates-dir-for,STATIC_LIBRARIES,mojo_mojo_application_bindings_gyp,,,$(GYP_VAR_PREFIX))/mojo_mojo_application_bindings_gyp.a 19 20 GYP_GENERATED_OUTPUTS := 21 22 # Make sure our deps and generated files are built first. 23 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 24 25 LOCAL_CPP_EXTENSION := .cc 26 LOCAL_GENERATED_SOURCES := 27 28 GYP_COPIED_SOURCE_ORIGIN_DIRS := 29 30 LOCAL_SRC_FILES := \ 31 content/app/android/app_jni_registrar.cc \ 32 content/app/android/child_process_service.cc \ 33 content/app/android/content_main.cc \ 34 content/app/android/library_loader_hooks.cc \ 35 content/app/content_main_runner.cc \ 36 content/app/mojo/mojo_init.cc \ 37 content/public/app/content_main_delegate.cc 38 39 40 # Flags passed to both C and C++ files. 41 MY_CFLAGS_Debug := \ 42 -fstack-protector \ 43 --param=ssp-buffer-size=4 \ 44 \ 45 -fno-strict-aliasing \ 46 -Wall \ 47 -Wno-unused-parameter \ 48 -Wno-missing-field-initializers \ 49 -fvisibility=hidden \ 50 -pipe \ 51 -fPIC \ 52 -Wno-unused-local-typedefs \ 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 -Wno-unused-but-set-variable \ 65 -Os \ 66 -g \ 67 -gdwarf-4 \ 68 -fdata-sections \ 69 -ffunction-sections \ 70 -fomit-frame-pointer \ 71 -funwind-tables 72 73 MY_DEFS_Debug := \ 74 '-DCONTENT_IMPLEMENTATION' \ 75 '-DV8_DEPRECATION_WARNINGS' \ 76 '-D_FILE_OFFSET_BITS=64' \ 77 '-DNO_TCMALLOC' \ 78 '-DDISABLE_NACL' \ 79 '-DCHROMIUM_BUILD' \ 80 '-DUSE_LIBJPEG_TURBO=1' \ 81 '-DENABLE_WEBRTC=1' \ 82 '-DUSE_PROPRIETARY_CODECS' \ 83 '-DENABLE_BROWSER_CDMS' \ 84 '-DENABLE_CONFIGURATION_POLICY' \ 85 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 86 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 87 '-DENABLE_EGLIMAGE=1' \ 88 '-DCLD_VERSION=1' \ 89 '-DENABLE_PRINTING=1' \ 90 '-DENABLE_MANAGED_USERS=1' \ 91 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 92 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 93 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 94 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 95 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 96 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 97 '-DVIDEO_HOLE=1' \ 98 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 99 '-DMOJO_USE_SYSTEM_IMPL' \ 100 '-DPOSIX_AVOID_MMAP' \ 101 '-DU_USING_ICU_NAMESPACE=0' \ 102 '-DU_ENABLE_DYLOAD=0' \ 103 '-DSK_ENABLE_INST_COUNT=0' \ 104 '-DSK_SUPPORT_GPU=1' \ 105 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 106 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 107 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 108 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 109 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 110 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 111 '-DSK_BUILD_FOR_ANDROID' \ 112 '-DSK_USE_POSIX_THREADS' \ 113 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 114 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 115 '-DUSE_OPENSSL=1' \ 116 '-DUSE_OPENSSL_CERTS=1' \ 117 '-D__STDC_CONSTANT_MACROS' \ 118 '-D__STDC_FORMAT_MACROS' \ 119 '-DANDROID' \ 120 '-D__GNU_SOURCE=1' \ 121 '-DUSE_STLPORT=1' \ 122 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 123 '-DCHROME_BUILD_ID=""' \ 124 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 125 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 126 '-D_DEBUG' 127 128 129 # Include paths placed before CFLAGS/CPPFLAGS 130 LOCAL_C_INCLUDES_Debug := \ 131 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 132 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 133 $(gyp_shared_intermediate_dir) \ 134 $(LOCAL_PATH) \ 135 $(LOCAL_PATH)/third_party/khronos \ 136 $(LOCAL_PATH)/gpu \ 137 $(LOCAL_PATH)/skia/config \ 138 $(LOCAL_PATH)/third_party/WebKit/Source \ 139 $(LOCAL_PATH)/third_party/WebKit \ 140 $(PWD)/external/icu/icu4c/source/common \ 141 $(PWD)/external/icu/icu4c/source/i18n \ 142 $(gyp_shared_intermediate_dir)/content \ 143 $(LOCAL_PATH)/third_party/skia/src/core \ 144 $(LOCAL_PATH)/third_party/skia/include/core \ 145 $(LOCAL_PATH)/third_party/skia/include/effects \ 146 $(LOCAL_PATH)/third_party/skia/include/pdf \ 147 $(LOCAL_PATH)/third_party/skia/include/gpu \ 148 $(LOCAL_PATH)/third_party/skia/include/lazy \ 149 $(LOCAL_PATH)/third_party/skia/include/pathops \ 150 $(LOCAL_PATH)/third_party/skia/include/pipe \ 151 $(LOCAL_PATH)/third_party/skia/include/ports \ 152 $(LOCAL_PATH)/third_party/skia/include/utils \ 153 $(LOCAL_PATH)/skia/ext \ 154 $(PWD)/frameworks/wilhelm/include \ 155 $(PWD)/bionic \ 156 $(PWD)/external/stlport/stlport 157 158 159 # Flags passed to only C++ (and not C) files. 160 LOCAL_CPPFLAGS_Debug := \ 161 -fno-exceptions \ 162 -fno-rtti \ 163 -fno-threadsafe-statics \ 164 -fvisibility-inlines-hidden \ 165 -Wsign-compare \ 166 -Wno-uninitialized \ 167 -std=gnu++11 \ 168 -Wno-narrowing \ 169 -Wno-literal-suffix \ 170 -Wno-non-virtual-dtor \ 171 -Wno-sign-promo 172 173 174 # Flags passed to both C and C++ files. 175 MY_CFLAGS_Release := \ 176 -fstack-protector \ 177 --param=ssp-buffer-size=4 \ 178 \ 179 -fno-strict-aliasing \ 180 -Wall \ 181 -Wno-unused-parameter \ 182 -Wno-missing-field-initializers \ 183 -fvisibility=hidden \ 184 -pipe \ 185 -fPIC \ 186 -Wno-unused-local-typedefs \ 187 -ffunction-sections \ 188 -funwind-tables \ 189 -g \ 190 -fstack-protector \ 191 -fno-short-enums \ 192 -finline-limit=64 \ 193 -Wa,--noexecstack \ 194 -U_FORTIFY_SOURCE \ 195 -Wno-extra \ 196 -Wno-ignored-qualifiers \ 197 -Wno-type-limits \ 198 -Wno-unused-but-set-variable \ 199 -Os \ 200 -fno-ident \ 201 -fdata-sections \ 202 -ffunction-sections \ 203 -fomit-frame-pointer \ 204 -funwind-tables 205 206 MY_DEFS_Release := \ 207 '-DCONTENT_IMPLEMENTATION' \ 208 '-DV8_DEPRECATION_WARNINGS' \ 209 '-D_FILE_OFFSET_BITS=64' \ 210 '-DNO_TCMALLOC' \ 211 '-DDISABLE_NACL' \ 212 '-DCHROMIUM_BUILD' \ 213 '-DUSE_LIBJPEG_TURBO=1' \ 214 '-DENABLE_WEBRTC=1' \ 215 '-DUSE_PROPRIETARY_CODECS' \ 216 '-DENABLE_BROWSER_CDMS' \ 217 '-DENABLE_CONFIGURATION_POLICY' \ 218 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 219 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 220 '-DENABLE_EGLIMAGE=1' \ 221 '-DCLD_VERSION=1' \ 222 '-DENABLE_PRINTING=1' \ 223 '-DENABLE_MANAGED_USERS=1' \ 224 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 225 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 226 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 227 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 228 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 229 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 230 '-DVIDEO_HOLE=1' \ 231 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 232 '-DMOJO_USE_SYSTEM_IMPL' \ 233 '-DPOSIX_AVOID_MMAP' \ 234 '-DU_USING_ICU_NAMESPACE=0' \ 235 '-DU_ENABLE_DYLOAD=0' \ 236 '-DSK_ENABLE_INST_COUNT=0' \ 237 '-DSK_SUPPORT_GPU=1' \ 238 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 239 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 240 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 241 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 242 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 243 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 244 '-DSK_BUILD_FOR_ANDROID' \ 245 '-DSK_USE_POSIX_THREADS' \ 246 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 247 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 248 '-DUSE_OPENSSL=1' \ 249 '-DUSE_OPENSSL_CERTS=1' \ 250 '-D__STDC_CONSTANT_MACROS' \ 251 '-D__STDC_FORMAT_MACROS' \ 252 '-DANDROID' \ 253 '-D__GNU_SOURCE=1' \ 254 '-DUSE_STLPORT=1' \ 255 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 256 '-DCHROME_BUILD_ID=""' \ 257 '-DNDEBUG' \ 258 '-DNVALGRIND' \ 259 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 260 '-D_FORTIFY_SOURCE=2' 261 262 263 # Include paths placed before CFLAGS/CPPFLAGS 264 LOCAL_C_INCLUDES_Release := \ 265 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 266 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 267 $(gyp_shared_intermediate_dir) \ 268 $(LOCAL_PATH) \ 269 $(LOCAL_PATH)/third_party/khronos \ 270 $(LOCAL_PATH)/gpu \ 271 $(LOCAL_PATH)/skia/config \ 272 $(LOCAL_PATH)/third_party/WebKit/Source \ 273 $(LOCAL_PATH)/third_party/WebKit \ 274 $(PWD)/external/icu/icu4c/source/common \ 275 $(PWD)/external/icu/icu4c/source/i18n \ 276 $(gyp_shared_intermediate_dir)/content \ 277 $(LOCAL_PATH)/third_party/skia/src/core \ 278 $(LOCAL_PATH)/third_party/skia/include/core \ 279 $(LOCAL_PATH)/third_party/skia/include/effects \ 280 $(LOCAL_PATH)/third_party/skia/include/pdf \ 281 $(LOCAL_PATH)/third_party/skia/include/gpu \ 282 $(LOCAL_PATH)/third_party/skia/include/lazy \ 283 $(LOCAL_PATH)/third_party/skia/include/pathops \ 284 $(LOCAL_PATH)/third_party/skia/include/pipe \ 285 $(LOCAL_PATH)/third_party/skia/include/ports \ 286 $(LOCAL_PATH)/third_party/skia/include/utils \ 287 $(LOCAL_PATH)/skia/ext \ 288 $(PWD)/frameworks/wilhelm/include \ 289 $(PWD)/bionic \ 290 $(PWD)/external/stlport/stlport 291 292 293 # Flags passed to only C++ (and not C) files. 294 LOCAL_CPPFLAGS_Release := \ 295 -fno-exceptions \ 296 -fno-rtti \ 297 -fno-threadsafe-statics \ 298 -fvisibility-inlines-hidden \ 299 -Wsign-compare \ 300 -Wno-uninitialized \ 301 -std=gnu++11 \ 302 -Wno-narrowing \ 303 -Wno-literal-suffix \ 304 -Wno-non-virtual-dtor \ 305 -Wno-sign-promo 306 307 308 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 309 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 310 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 311 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 312 ### Rules for final target. 313 314 LOCAL_STATIC_LIBRARIES := \ 315 cpufeatures 316 317 # Enable grouping to fix circular references 318 LOCAL_GROUP_STATIC_LIBRARIES := true 319 320 LOCAL_SHARED_LIBRARIES := \ 321 libstlport \ 322 libdl 323 324 # Add target alias to "gyp_all_modules" target. 325 .PHONY: gyp_all_modules 326 gyp_all_modules: content_content_app_both_gyp 327 328 # Alias gyp target name. 329 .PHONY: content_app_both 330 content_app_both: content_content_app_both_gyp 331 332 include $(BUILD_STATIC_LIBRARY) 333