Home | History | Annotate | Download | only in components
      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 := components_data_reduction_proxy_browser_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,GYP,components_data_reduction_proxy_version_header_gyp,,,$(GYP_VAR_PREFIX))/data_reduction_proxy_version_header.stamp
     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 	components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.cc \
     28 	components/data_reduction_proxy/browser/data_reduction_proxy_config_service.cc \
     29 	components/data_reduction_proxy/browser/data_reduction_proxy_delegate.cc \
     30 	components/data_reduction_proxy/browser/data_reduction_proxy_metrics.cc \
     31 	components/data_reduction_proxy/browser/data_reduction_proxy_params.cc \
     32 	components/data_reduction_proxy/browser/data_reduction_proxy_prefs.cc \
     33 	components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc \
     34 	components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc \
     35 	components/data_reduction_proxy/browser/data_reduction_proxy_statistics_prefs.cc \
     36 	components/data_reduction_proxy/browser/data_reduction_proxy_tamper_detection.cc \
     37 	components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.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 	'-DV8_DEPRECATION_WARNINGS' \
     83 	'-D_FILE_OFFSET_BITS=64' \
     84 	'-DNO_TCMALLOC' \
     85 	'-DDISABLE_NACL' \
     86 	'-DCHROMIUM_BUILD' \
     87 	'-DUSE_LIBJPEG_TURBO=1' \
     88 	'-DENABLE_WEBRTC=1' \
     89 	'-DUSE_PROPRIETARY_CODECS' \
     90 	'-DENABLE_BROWSER_CDMS' \
     91 	'-DENABLE_CONFIGURATION_POLICY' \
     92 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     93 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     94 	'-DENABLE_EGLIMAGE=1' \
     95 	'-DCLD_VERSION=1' \
     96 	'-DENABLE_PRINTING=1' \
     97 	'-DENABLE_MANAGED_USERS=1' \
     98 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     99 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    100 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    101 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    102 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    103 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    104 	'-DVIDEO_HOLE=1' \
    105 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    106 	'-DPOSIX_AVOID_MMAP' \
    107 	'-DUSE_OPENSSL=1' \
    108 	'-DUSE_OPENSSL_CERTS=1' \
    109 	'-D__STDC_CONSTANT_MACROS' \
    110 	'-D__STDC_FORMAT_MACROS' \
    111 	'-DANDROID' \
    112 	'-D__GNU_SOURCE=1' \
    113 	'-DUSE_STLPORT=1' \
    114 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    115 	'-DCHROME_BUILD_ID=""' \
    116 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    117 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    118 	'-D_DEBUG'
    119 
    120 
    121 # Include paths placed before CFLAGS/CPPFLAGS
    122 LOCAL_C_INCLUDES_Debug := \
    123 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    124 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    125 	$(gyp_shared_intermediate_dir) \
    126 	$(LOCAL_PATH) \
    127 	$(LOCAL_PATH)/skia/config \
    128 	$(PWD)/frameworks/wilhelm/include \
    129 	$(PWD)/bionic \
    130 	$(PWD)/external/stlport/stlport
    131 
    132 
    133 # Flags passed to only C++ (and not C) files.
    134 LOCAL_CPPFLAGS_Debug := \
    135 	-fno-exceptions \
    136 	-fno-rtti \
    137 	-fno-threadsafe-statics \
    138 	-fvisibility-inlines-hidden \
    139 	-Wsign-compare \
    140 	-Wno-abi \
    141 	-std=gnu++11 \
    142 	-Wno-narrowing \
    143 	-Wno-literal-suffix \
    144 	-Wno-non-virtual-dtor \
    145 	-Wno-sign-promo
    146 
    147 
    148 # Flags passed to both C and C++ files.
    149 MY_CFLAGS_Release := \
    150 	-fstack-protector \
    151 	--param=ssp-buffer-size=4 \
    152 	-Werror \
    153 	-fno-strict-aliasing \
    154 	-Wall \
    155 	-Wno-unused-parameter \
    156 	-Wno-missing-field-initializers \
    157 	-fvisibility=hidden \
    158 	-pipe \
    159 	-fPIC \
    160 	-Wno-unused-local-typedefs \
    161 	-fno-tree-sra \
    162 	-fno-caller-saves \
    163 	-Wno-psabi \
    164 	-fno-partial-inlining \
    165 	-fno-early-inlining \
    166 	-fno-tree-copy-prop \
    167 	-fno-tree-loop-optimize \
    168 	-fno-move-loop-invariants \
    169 	-ffunction-sections \
    170 	-funwind-tables \
    171 	-g \
    172 	-fstack-protector \
    173 	-fno-short-enums \
    174 	-finline-limit=64 \
    175 	-Wa,--noexecstack \
    176 	-U_FORTIFY_SOURCE \
    177 	-Wno-extra \
    178 	-Wno-ignored-qualifiers \
    179 	-Wno-type-limits \
    180 	-Wno-unused-but-set-variable \
    181 	-Os \
    182 	-fno-ident \
    183 	-fdata-sections \
    184 	-ffunction-sections \
    185 	-fomit-frame-pointer \
    186 	-funwind-tables
    187 
    188 MY_DEFS_Release := \
    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 	'-DPOSIX_AVOID_MMAP' \
    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 	$(PWD)/frameworks/wilhelm/include \
    237 	$(PWD)/bionic \
    238 	$(PWD)/external/stlport/stlport
    239 
    240 
    241 # Flags passed to only C++ (and not C) files.
    242 LOCAL_CPPFLAGS_Release := \
    243 	-fno-exceptions \
    244 	-fno-rtti \
    245 	-fno-threadsafe-statics \
    246 	-fvisibility-inlines-hidden \
    247 	-Wsign-compare \
    248 	-Wno-abi \
    249 	-std=gnu++11 \
    250 	-Wno-narrowing \
    251 	-Wno-literal-suffix \
    252 	-Wno-non-virtual-dtor \
    253 	-Wno-sign-promo
    254 
    255 
    256 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    257 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    258 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    259 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    260 ### Rules for final target.
    261 
    262 LOCAL_SHARED_LIBRARIES := \
    263 	libstlport \
    264 	libdl
    265 
    266 # Add target alias to "gyp_all_modules" target.
    267 .PHONY: gyp_all_modules
    268 gyp_all_modules: components_data_reduction_proxy_browser_gyp
    269 
    270 # Alias gyp target name.
    271 .PHONY: data_reduction_proxy_browser
    272 data_reduction_proxy_browser: components_data_reduction_proxy_browser_gyp
    273 
    274 include $(BUILD_STATIC_LIBRARY)
    275