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