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_utility_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,mojo_mojo_application_bindings_gyp,,,$(GYP_VAR_PREFIX))/mojo_mojo_application_bindings_gyp.a
     15 
     16 GYP_GENERATED_OUTPUTS :=
     17 
     18 # Make sure our deps and generated files are built first.
     19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     20 
     21 LOCAL_CPP_EXTENSION := .cc
     22 LOCAL_GENERATED_SOURCES :=
     23 
     24 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     25 
     26 LOCAL_SRC_FILES := \
     27 	content/public/utility/content_utility_client.cc \
     28 	content/public/utility/utility_thread.cc \
     29 	content/utility/in_process_utility_thread.cc \
     30 	content/utility/utility_main.cc \
     31 	content/utility/utility_thread_impl.cc
     32 
     33 
     34 # Flags passed to both C and C++ files.
     35 MY_CFLAGS_Debug := \
     36 	-fstack-protector \
     37 	--param=ssp-buffer-size=4 \
     38 	-Werror \
     39 	-fno-strict-aliasing \
     40 	-Wall \
     41 	-Wno-unused-parameter \
     42 	-Wno-missing-field-initializers \
     43 	-fvisibility=hidden \
     44 	-pipe \
     45 	-fPIC \
     46 	-Wno-unused-local-typedefs \
     47 	-fno-tree-sra \
     48 	-fno-caller-saves \
     49 	-Wno-psabi \
     50 	-fno-partial-inlining \
     51 	-fno-early-inlining \
     52 	-fno-tree-copy-prop \
     53 	-fno-tree-loop-optimize \
     54 	-fno-move-loop-invariants \
     55 	-ffunction-sections \
     56 	-funwind-tables \
     57 	-g \
     58 	-fstack-protector \
     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 	-Os \
     68 	-g \
     69 	-gdwarf-4 \
     70 	-fdata-sections \
     71 	-ffunction-sections \
     72 	-fomit-frame-pointer \
     73 	-funwind-tables
     74 
     75 MY_DEFS_Debug := \
     76 	'-DCONTENT_IMPLEMENTATION' \
     77 	'-DV8_DEPRECATION_WARNINGS' \
     78 	'-D_FILE_OFFSET_BITS=64' \
     79 	'-DNO_TCMALLOC' \
     80 	'-DDISABLE_NACL' \
     81 	'-DCHROMIUM_BUILD' \
     82 	'-DUSE_LIBJPEG_TURBO=1' \
     83 	'-DENABLE_WEBRTC=1' \
     84 	'-DUSE_PROPRIETARY_CODECS' \
     85 	'-DENABLE_BROWSER_CDMS' \
     86 	'-DENABLE_CONFIGURATION_POLICY' \
     87 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     88 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     89 	'-DENABLE_EGLIMAGE=1' \
     90 	'-DCLD_VERSION=1' \
     91 	'-DENABLE_PRINTING=1' \
     92 	'-DENABLE_MANAGED_USERS=1' \
     93 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     94 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     95 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     96 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     97 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     98 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     99 	'-DVIDEO_HOLE=1' \
    100 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    101 	'-DMOJO_USE_SYSTEM_IMPL' \
    102 	'-DUSE_OPENSSL=1' \
    103 	'-DUSE_OPENSSL_CERTS=1' \
    104 	'-D__STDC_CONSTANT_MACROS' \
    105 	'-D__STDC_FORMAT_MACROS' \
    106 	'-DANDROID' \
    107 	'-D__GNU_SOURCE=1' \
    108 	'-DUSE_STLPORT=1' \
    109 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    110 	'-DCHROME_BUILD_ID=""' \
    111 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    112 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    113 	'-D_DEBUG'
    114 
    115 
    116 # Include paths placed before CFLAGS/CPPFLAGS
    117 LOCAL_C_INCLUDES_Debug := \
    118 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    119 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    120 	$(gyp_shared_intermediate_dir) \
    121 	$(LOCAL_PATH) \
    122 	$(LOCAL_PATH)/skia/config \
    123 	$(LOCAL_PATH)/third_party/WebKit/Source \
    124 	$(LOCAL_PATH)/third_party/khronos \
    125 	$(LOCAL_PATH)/gpu \
    126 	$(LOCAL_PATH)/third_party/WebKit \
    127 	$(PWD)/frameworks/wilhelm/include \
    128 	$(PWD)/bionic \
    129 	$(PWD)/external/stlport/stlport
    130 
    131 
    132 # Flags passed to only C++ (and not C) files.
    133 LOCAL_CPPFLAGS_Debug := \
    134 	-fno-exceptions \
    135 	-fno-rtti \
    136 	-fno-threadsafe-statics \
    137 	-fvisibility-inlines-hidden \
    138 	-Wsign-compare \
    139 	-Wno-abi \
    140 	-std=gnu++11 \
    141 	-Wno-narrowing \
    142 	-Wno-literal-suffix \
    143 	-Wno-non-virtual-dtor \
    144 	-Wno-sign-promo
    145 
    146 
    147 # Flags passed to both C and C++ files.
    148 MY_CFLAGS_Release := \
    149 	-fstack-protector \
    150 	--param=ssp-buffer-size=4 \
    151 	-Werror \
    152 	-fno-strict-aliasing \
    153 	-Wall \
    154 	-Wno-unused-parameter \
    155 	-Wno-missing-field-initializers \
    156 	-fvisibility=hidden \
    157 	-pipe \
    158 	-fPIC \
    159 	-Wno-unused-local-typedefs \
    160 	-fno-tree-sra \
    161 	-fno-caller-saves \
    162 	-Wno-psabi \
    163 	-fno-partial-inlining \
    164 	-fno-early-inlining \
    165 	-fno-tree-copy-prop \
    166 	-fno-tree-loop-optimize \
    167 	-fno-move-loop-invariants \
    168 	-ffunction-sections \
    169 	-funwind-tables \
    170 	-g \
    171 	-fstack-protector \
    172 	-fno-short-enums \
    173 	-finline-limit=64 \
    174 	-Wa,--noexecstack \
    175 	-U_FORTIFY_SOURCE \
    176 	-Wno-extra \
    177 	-Wno-ignored-qualifiers \
    178 	-Wno-type-limits \
    179 	-Wno-unused-but-set-variable \
    180 	-Os \
    181 	-fno-ident \
    182 	-fdata-sections \
    183 	-ffunction-sections \
    184 	-fomit-frame-pointer \
    185 	-funwind-tables
    186 
    187 MY_DEFS_Release := \
    188 	'-DCONTENT_IMPLEMENTATION' \
    189 	'-DV8_DEPRECATION_WARNINGS' \
    190 	'-D_FILE_OFFSET_BITS=64' \
    191 	'-DNO_TCMALLOC' \
    192 	'-DDISABLE_NACL' \
    193 	'-DCHROMIUM_BUILD' \
    194 	'-DUSE_LIBJPEG_TURBO=1' \
    195 	'-DENABLE_WEBRTC=1' \
    196 	'-DUSE_PROPRIETARY_CODECS' \
    197 	'-DENABLE_BROWSER_CDMS' \
    198 	'-DENABLE_CONFIGURATION_POLICY' \
    199 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    200 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    201 	'-DENABLE_EGLIMAGE=1' \
    202 	'-DCLD_VERSION=1' \
    203 	'-DENABLE_PRINTING=1' \
    204 	'-DENABLE_MANAGED_USERS=1' \
    205 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    206 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    207 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    208 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    209 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    210 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    211 	'-DVIDEO_HOLE=1' \
    212 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    213 	'-DMOJO_USE_SYSTEM_IMPL' \
    214 	'-DUSE_OPENSSL=1' \
    215 	'-DUSE_OPENSSL_CERTS=1' \
    216 	'-D__STDC_CONSTANT_MACROS' \
    217 	'-D__STDC_FORMAT_MACROS' \
    218 	'-DANDROID' \
    219 	'-D__GNU_SOURCE=1' \
    220 	'-DUSE_STLPORT=1' \
    221 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    222 	'-DCHROME_BUILD_ID=""' \
    223 	'-DNDEBUG' \
    224 	'-DNVALGRIND' \
    225 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    226 	'-D_FORTIFY_SOURCE=2'
    227 
    228 
    229 # Include paths placed before CFLAGS/CPPFLAGS
    230 LOCAL_C_INCLUDES_Release := \
    231 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    232 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    233 	$(gyp_shared_intermediate_dir) \
    234 	$(LOCAL_PATH) \
    235 	$(LOCAL_PATH)/skia/config \
    236 	$(LOCAL_PATH)/third_party/WebKit/Source \
    237 	$(LOCAL_PATH)/third_party/khronos \
    238 	$(LOCAL_PATH)/gpu \
    239 	$(LOCAL_PATH)/third_party/WebKit \
    240 	$(PWD)/frameworks/wilhelm/include \
    241 	$(PWD)/bionic \
    242 	$(PWD)/external/stlport/stlport
    243 
    244 
    245 # Flags passed to only C++ (and not C) files.
    246 LOCAL_CPPFLAGS_Release := \
    247 	-fno-exceptions \
    248 	-fno-rtti \
    249 	-fno-threadsafe-statics \
    250 	-fvisibility-inlines-hidden \
    251 	-Wsign-compare \
    252 	-Wno-abi \
    253 	-std=gnu++11 \
    254 	-Wno-narrowing \
    255 	-Wno-literal-suffix \
    256 	-Wno-non-virtual-dtor \
    257 	-Wno-sign-promo
    258 
    259 
    260 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    261 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    262 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    263 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    264 ### Rules for final target.
    265 
    266 LOCAL_SHARED_LIBRARIES := \
    267 	libstlport \
    268 	libdl
    269 
    270 # Add target alias to "gyp_all_modules" target.
    271 .PHONY: gyp_all_modules
    272 gyp_all_modules: content_content_utility_gyp
    273 
    274 # Alias gyp target name.
    275 .PHONY: content_utility
    276 content_utility: content_content_utility_gyp
    277 
    278 include $(BUILD_STATIC_LIBRARY)
    279