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_TAGS := optional
      9 gyp_intermediate_dir := $(call local-intermediates-dir)
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     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/varint_bigendian.cc \
     34 	sdch/open-vcdiff/src/vcdecoder.cc \
     35 	sdch/open-vcdiff/src/vcdiffengine.cc
     36 
     37 
     38 # Flags passed to both C and C++ files.
     39 MY_CFLAGS_Debug := \
     40 	-fstack-protector \
     41 	--param=ssp-buffer-size=4 \
     42 	 \
     43 	-fno-exceptions \
     44 	-fno-strict-aliasing \
     45 	-Wall \
     46 	-Wno-unused-parameter \
     47 	-Wno-missing-field-initializers \
     48 	-fvisibility=hidden \
     49 	-pipe \
     50 	-fPIC \
     51 	-include \
     52 	./sdch/logging_forward.h \
     53 	-EL \
     54 	-mhard-float \
     55 	-ffunction-sections \
     56 	-funwind-tables \
     57 	-g \
     58 	-fstack-protector \
     59 	-fno-short-enums \
     60 	-finline-limit=64 \
     61 	-Wa,--noexecstack \
     62 	-U_FORTIFY_SOURCE \
     63 	-Wno-extra \
     64 	-Wno-ignored-qualifiers \
     65 	-Wno-type-limits \
     66 	-Os \
     67 	-g \
     68 	-fomit-frame-pointer \
     69 	-fdata-sections \
     70 	-ffunction-sections
     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 	'-DUSE_PROPRIETARY_CODECS' \
     80 	'-DENABLE_CONFIGURATION_POLICY' \
     81 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     82 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     83 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     84 	'-DUSE_OPENSSL=1' \
     85 	'-DENABLE_EGLIMAGE=1' \
     86 	'-DCLD_VERSION=1' \
     87 	'-DENABLE_PRINTING=1' \
     88 	'-DENABLE_MANAGED_USERS=1' \
     89 	'-D__STDC_CONSTANT_MACROS' \
     90 	'-D__STDC_FORMAT_MACROS' \
     91 	'-DANDROID' \
     92 	'-D__GNU_SOURCE=1' \
     93 	'-DUSE_STLPORT=1' \
     94 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
     95 	'-DCHROME_BUILD_ID=""' \
     96 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
     97 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
     98 	'-D_DEBUG'
     99 
    100 
    101 # Include paths placed before CFLAGS/CPPFLAGS
    102 LOCAL_C_INCLUDES_Debug := \
    103 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    104 	$(LOCAL_PATH)/sdch/open-vcdiff/src \
    105 	$(LOCAL_PATH)/sdch/linux \
    106 	$(LOCAL_PATH) \
    107 	$(LOCAL_PATH)/third_party/zlib \
    108 	$(PWD)/frameworks/wilhelm/include \
    109 	$(PWD)/bionic \
    110 	$(PWD)/external/stlport/stlport
    111 
    112 
    113 # Flags passed to only C++ (and not C) files.
    114 LOCAL_CPPFLAGS_Debug := \
    115 	-fno-rtti \
    116 	-fno-threadsafe-statics \
    117 	-fvisibility-inlines-hidden \
    118 	-Wsign-compare \
    119 	-Wno-uninitialized \
    120 	-Wno-error=c++0x-compat \
    121 	-Wno-non-virtual-dtor \
    122 	-Wno-sign-promo
    123 
    124 
    125 # Flags passed to both C and C++ files.
    126 MY_CFLAGS_Release := \
    127 	-fstack-protector \
    128 	--param=ssp-buffer-size=4 \
    129 	 \
    130 	-fno-exceptions \
    131 	-fno-strict-aliasing \
    132 	-Wall \
    133 	-Wno-unused-parameter \
    134 	-Wno-missing-field-initializers \
    135 	-fvisibility=hidden \
    136 	-pipe \
    137 	-fPIC \
    138 	-include \
    139 	./sdch/logging_forward.h \
    140 	-EL \
    141 	-mhard-float \
    142 	-ffunction-sections \
    143 	-funwind-tables \
    144 	-g \
    145 	-fstack-protector \
    146 	-fno-short-enums \
    147 	-finline-limit=64 \
    148 	-Wa,--noexecstack \
    149 	-U_FORTIFY_SOURCE \
    150 	-Wno-extra \
    151 	-Wno-ignored-qualifiers \
    152 	-Wno-type-limits \
    153 	-Os \
    154 	-fno-ident \
    155 	-fdata-sections \
    156 	-ffunction-sections \
    157 	-fomit-frame-pointer
    158 
    159 MY_DEFS_Release := \
    160 	'-DV8_DEPRECATION_WARNINGS' \
    161 	'-D_FILE_OFFSET_BITS=64' \
    162 	'-DNO_TCMALLOC' \
    163 	'-DDISABLE_NACL' \
    164 	'-DCHROMIUM_BUILD' \
    165 	'-DUSE_LIBJPEG_TURBO=1' \
    166 	'-DUSE_PROPRIETARY_CODECS' \
    167 	'-DENABLE_CONFIGURATION_POLICY' \
    168 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    169 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    170 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    171 	'-DUSE_OPENSSL=1' \
    172 	'-DENABLE_EGLIMAGE=1' \
    173 	'-DCLD_VERSION=1' \
    174 	'-DENABLE_PRINTING=1' \
    175 	'-DENABLE_MANAGED_USERS=1' \
    176 	'-D__STDC_CONSTANT_MACROS' \
    177 	'-D__STDC_FORMAT_MACROS' \
    178 	'-DANDROID' \
    179 	'-D__GNU_SOURCE=1' \
    180 	'-DUSE_STLPORT=1' \
    181 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    182 	'-DCHROME_BUILD_ID=""' \
    183 	'-DNDEBUG' \
    184 	'-DNVALGRIND' \
    185 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    186 	'-D_FORTIFY_SOURCE=2'
    187 
    188 
    189 # Include paths placed before CFLAGS/CPPFLAGS
    190 LOCAL_C_INCLUDES_Release := \
    191 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    192 	$(LOCAL_PATH)/sdch/open-vcdiff/src \
    193 	$(LOCAL_PATH)/sdch/linux \
    194 	$(LOCAL_PATH) \
    195 	$(LOCAL_PATH)/third_party/zlib \
    196 	$(PWD)/frameworks/wilhelm/include \
    197 	$(PWD)/bionic \
    198 	$(PWD)/external/stlport/stlport
    199 
    200 
    201 # Flags passed to only C++ (and not C) files.
    202 LOCAL_CPPFLAGS_Release := \
    203 	-fno-rtti \
    204 	-fno-threadsafe-statics \
    205 	-fvisibility-inlines-hidden \
    206 	-Wsign-compare \
    207 	-Wno-uninitialized \
    208 	-Wno-error=c++0x-compat \
    209 	-Wno-non-virtual-dtor \
    210 	-Wno-sign-promo
    211 
    212 
    213 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    214 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    215 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    216 ### Rules for final target.
    217 
    218 LOCAL_LDFLAGS_Debug := \
    219 	-Wl,-z,now \
    220 	-Wl,-z,relro \
    221 	-Wl,-z,noexecstack \
    222 	-fPIC \
    223 	-EL \
    224 	-Wl,--no-keep-memory \
    225 	-nostdlib \
    226 	-Wl,--no-undefined \
    227 	-Wl,--exclude-libs=ALL \
    228 	-Wl,--fatal-warnings \
    229 	-Wl,--gc-sections \
    230 	-Wl,--warn-shared-textrel \
    231 	-Wl,-O1 \
    232 	-Wl,--as-needed
    233 
    234 
    235 LOCAL_LDFLAGS_Release := \
    236 	-Wl,-z,now \
    237 	-Wl,-z,relro \
    238 	-Wl,-z,noexecstack \
    239 	-fPIC \
    240 	-EL \
    241 	-Wl,--no-keep-memory \
    242 	-nostdlib \
    243 	-Wl,--no-undefined \
    244 	-Wl,--exclude-libs=ALL \
    245 	-Wl,-O1 \
    246 	-Wl,--as-needed \
    247 	-Wl,--gc-sections \
    248 	-Wl,--fatal-warnings \
    249 	-Wl,--warn-shared-textrel
    250 
    251 
    252 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    253 
    254 LOCAL_STATIC_LIBRARIES :=
    255 
    256 # Enable grouping to fix circular references
    257 LOCAL_GROUP_STATIC_LIBRARIES := true
    258 
    259 LOCAL_SHARED_LIBRARIES := \
    260 	libstlport \
    261 	libdl
    262 
    263 # Add target alias to "gyp_all_modules" target.
    264 .PHONY: gyp_all_modules
    265 gyp_all_modules: sdch_sdch_gyp
    266 
    267 # Alias gyp target name.
    268 .PHONY: sdch
    269 sdch: sdch_sdch_gyp
    270 
    271 include $(BUILD_STATIC_LIBRARY)
    272