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