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 	--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 	-ffunction-sections \
     53 	-funwind-tables \
     54 	-g \
     55 	-fno-short-enums \
     56 	-finline-limit=64 \
     57 	-Wa,--noexecstack \
     58 	-U_FORTIFY_SOURCE \
     59 	-Wno-extra \
     60 	-Wno-ignored-qualifiers \
     61 	-Wno-type-limits \
     62 	-Wno-unused-but-set-variable \
     63 	-Os \
     64 	-g \
     65 	-gdwarf-4 \
     66 	-fdata-sections \
     67 	-ffunction-sections \
     68 	-funwind-tables
     69 
     70 MY_DEFS_Debug := \
     71 	'-DV8_DEPRECATION_WARNINGS' \
     72 	'-D_FILE_OFFSET_BITS=64' \
     73 	'-DNO_TCMALLOC' \
     74 	'-DDISABLE_NACL' \
     75 	'-DCHROMIUM_BUILD' \
     76 	'-DUSE_LIBJPEG_TURBO=1' \
     77 	'-DENABLE_WEBRTC=1' \
     78 	'-DUSE_PROPRIETARY_CODECS' \
     79 	'-DENABLE_BROWSER_CDMS' \
     80 	'-DENABLE_CONFIGURATION_POLICY' \
     81 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     82 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     83 	'-DENABLE_EGLIMAGE=1' \
     84 	'-DCLD_VERSION=1' \
     85 	'-DENABLE_PRINTING=1' \
     86 	'-DENABLE_MANAGED_USERS=1' \
     87 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     88 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     89 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     90 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     91 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     92 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     93 	'-DVIDEO_HOLE=1' \
     94 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     95 	'-DPOSIX_AVOID_MMAP' \
     96 	'-DUSE_OPENSSL=1' \
     97 	'-DUSE_OPENSSL_CERTS=1' \
     98 	'-D__STDC_CONSTANT_MACROS' \
     99 	'-D__STDC_FORMAT_MACROS' \
    100 	'-DANDROID' \
    101 	'-D__GNU_SOURCE=1' \
    102 	'-DUSE_STLPORT=1' \
    103 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    104 	'-DCHROME_BUILD_ID=""' \
    105 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    106 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    107 	'-D_DEBUG'
    108 
    109 
    110 # Include paths placed before CFLAGS/CPPFLAGS
    111 LOCAL_C_INCLUDES_Debug := \
    112 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    113 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    114 	$(gyp_shared_intermediate_dir) \
    115 	$(LOCAL_PATH) \
    116 	$(LOCAL_PATH)/skia/config \
    117 	$(PWD)/frameworks/wilhelm/include \
    118 	$(PWD)/bionic \
    119 	$(PWD)/external/stlport/stlport
    120 
    121 
    122 # Flags passed to only C++ (and not C) files.
    123 LOCAL_CPPFLAGS_Debug := \
    124 	-fno-exceptions \
    125 	-fno-rtti \
    126 	-fno-threadsafe-statics \
    127 	-fvisibility-inlines-hidden \
    128 	-Wsign-compare \
    129 	-std=gnu++11 \
    130 	-Wno-narrowing \
    131 	-Wno-literal-suffix \
    132 	-Wno-non-virtual-dtor \
    133 	-Wno-sign-promo
    134 
    135 
    136 # Flags passed to both C and C++ files.
    137 MY_CFLAGS_Release := \
    138 	--param=ssp-buffer-size=4 \
    139 	-Werror \
    140 	-fno-strict-aliasing \
    141 	-Wall \
    142 	-Wno-unused-parameter \
    143 	-Wno-missing-field-initializers \
    144 	-fvisibility=hidden \
    145 	-pipe \
    146 	-fPIC \
    147 	-Wno-unused-local-typedefs \
    148 	-ffunction-sections \
    149 	-funwind-tables \
    150 	-g \
    151 	-fno-short-enums \
    152 	-finline-limit=64 \
    153 	-Wa,--noexecstack \
    154 	-U_FORTIFY_SOURCE \
    155 	-Wno-extra \
    156 	-Wno-ignored-qualifiers \
    157 	-Wno-type-limits \
    158 	-Wno-unused-but-set-variable \
    159 	-Os \
    160 	-fno-ident \
    161 	-fdata-sections \
    162 	-ffunction-sections \
    163 	-funwind-tables
    164 
    165 MY_DEFS_Release := \
    166 	'-DV8_DEPRECATION_WARNINGS' \
    167 	'-D_FILE_OFFSET_BITS=64' \
    168 	'-DNO_TCMALLOC' \
    169 	'-DDISABLE_NACL' \
    170 	'-DCHROMIUM_BUILD' \
    171 	'-DUSE_LIBJPEG_TURBO=1' \
    172 	'-DENABLE_WEBRTC=1' \
    173 	'-DUSE_PROPRIETARY_CODECS' \
    174 	'-DENABLE_BROWSER_CDMS' \
    175 	'-DENABLE_CONFIGURATION_POLICY' \
    176 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    177 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    178 	'-DENABLE_EGLIMAGE=1' \
    179 	'-DCLD_VERSION=1' \
    180 	'-DENABLE_PRINTING=1' \
    181 	'-DENABLE_MANAGED_USERS=1' \
    182 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    183 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    184 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    185 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    186 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    187 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    188 	'-DVIDEO_HOLE=1' \
    189 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    190 	'-DPOSIX_AVOID_MMAP' \
    191 	'-DUSE_OPENSSL=1' \
    192 	'-DUSE_OPENSSL_CERTS=1' \
    193 	'-D__STDC_CONSTANT_MACROS' \
    194 	'-D__STDC_FORMAT_MACROS' \
    195 	'-DANDROID' \
    196 	'-D__GNU_SOURCE=1' \
    197 	'-DUSE_STLPORT=1' \
    198 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    199 	'-DCHROME_BUILD_ID=""' \
    200 	'-DNDEBUG' \
    201 	'-DNVALGRIND' \
    202 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    203 	'-D_FORTIFY_SOURCE=2'
    204 
    205 
    206 # Include paths placed before CFLAGS/CPPFLAGS
    207 LOCAL_C_INCLUDES_Release := \
    208 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    209 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    210 	$(gyp_shared_intermediate_dir) \
    211 	$(LOCAL_PATH) \
    212 	$(LOCAL_PATH)/skia/config \
    213 	$(PWD)/frameworks/wilhelm/include \
    214 	$(PWD)/bionic \
    215 	$(PWD)/external/stlport/stlport
    216 
    217 
    218 # Flags passed to only C++ (and not C) files.
    219 LOCAL_CPPFLAGS_Release := \
    220 	-fno-exceptions \
    221 	-fno-rtti \
    222 	-fno-threadsafe-statics \
    223 	-fvisibility-inlines-hidden \
    224 	-Wsign-compare \
    225 	-std=gnu++11 \
    226 	-Wno-narrowing \
    227 	-Wno-literal-suffix \
    228 	-Wno-non-virtual-dtor \
    229 	-Wno-sign-promo
    230 
    231 
    232 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    233 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    234 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    235 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    236 ### Rules for final target.
    237 
    238 LOCAL_SHARED_LIBRARIES := \
    239 	libstlport \
    240 	libdl
    241 
    242 # Add target alias to "gyp_all_modules" target.
    243 .PHONY: gyp_all_modules
    244 gyp_all_modules: components_data_reduction_proxy_browser_gyp
    245 
    246 # Alias gyp target name.
    247 .PHONY: data_reduction_proxy_browser
    248 data_reduction_proxy_browser: components_data_reduction_proxy_browser_gyp
    249 
    250 include $(BUILD_STATIC_LIBRARY)
    251