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