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