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