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