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 	-Werror \
     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 	-fno-tree-sra \
     53 	-fuse-ld=gold \
     54 	-Wno-psabi \
     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 	'-DANGLE_DX11' \
     74 	'-D_FILE_OFFSET_BITS=64' \
     75 	'-DNO_TCMALLOC' \
     76 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     77 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     78 	'-DDISABLE_NACL' \
     79 	'-DCHROMIUM_BUILD' \
     80 	'-DUSE_LIBJPEG_TURBO=1' \
     81 	'-DUSE_PROPRIETARY_CODECS' \
     82 	'-DENABLE_CONFIGURATION_POLICY' \
     83 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
     84 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
     85 	'-DENABLE_GPU=1' \
     86 	'-DUSE_OPENSSL=1' \
     87 	'-DENABLE_EGLIMAGE=1' \
     88 	'-DENABLE_PRINTING=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 	$(LOCAL_PATH)/sdch/open-vcdiff/src \
    104 	$(LOCAL_PATH)/sdch/linux \
    105 	$(LOCAL_PATH)/third_party/zlib \
    106 	$(PWD)/frameworks/wilhelm/include \
    107 	$(PWD)/bionic \
    108 	$(PWD)/external/stlport/stlport
    109 
    110 
    111 # Flags passed to only C++ (and not C) files.
    112 LOCAL_CPPFLAGS_Debug := \
    113 	-fno-rtti \
    114 	-fno-threadsafe-statics \
    115 	-fvisibility-inlines-hidden \
    116 	-Wsign-compare \
    117 	-Wno-abi \
    118 	-Wno-error=c++0x-compat \
    119 	-Wno-non-virtual-dtor \
    120 	-Wno-sign-promo
    121 
    122 
    123 # Flags passed to both C and C++ files.
    124 MY_CFLAGS_Release := \
    125 	-fstack-protector \
    126 	--param=ssp-buffer-size=4 \
    127 	-Werror \
    128 	-fno-exceptions \
    129 	-fno-strict-aliasing \
    130 	-Wall \
    131 	-Wno-unused-parameter \
    132 	-Wno-missing-field-initializers \
    133 	-fvisibility=hidden \
    134 	-pipe \
    135 	-fPIC \
    136 	-fno-tree-sra \
    137 	-fuse-ld=gold \
    138 	-Wno-psabi \
    139 	-ffunction-sections \
    140 	-funwind-tables \
    141 	-g \
    142 	-fstack-protector \
    143 	-fno-short-enums \
    144 	-finline-limit=64 \
    145 	-Wa,--noexecstack \
    146 	-U_FORTIFY_SOURCE \
    147 	-Wno-extra \
    148 	-Wno-ignored-qualifiers \
    149 	-Wno-type-limits \
    150 	-Os \
    151 	-fno-ident \
    152 	-fdata-sections \
    153 	-ffunction-sections \
    154 	-fomit-frame-pointer
    155 
    156 MY_DEFS_Release := \
    157 	'-DANGLE_DX11' \
    158 	'-D_FILE_OFFSET_BITS=64' \
    159 	'-DNO_TCMALLOC' \
    160 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    161 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    162 	'-DDISABLE_NACL' \
    163 	'-DCHROMIUM_BUILD' \
    164 	'-DUSE_LIBJPEG_TURBO=1' \
    165 	'-DUSE_PROPRIETARY_CODECS' \
    166 	'-DENABLE_CONFIGURATION_POLICY' \
    167 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    168 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    169 	'-DENABLE_GPU=1' \
    170 	'-DUSE_OPENSSL=1' \
    171 	'-DENABLE_EGLIMAGE=1' \
    172 	'-DENABLE_PRINTING=1' \
    173 	'-D__STDC_CONSTANT_MACROS' \
    174 	'-D__STDC_FORMAT_MACROS' \
    175 	'-DANDROID' \
    176 	'-D__GNU_SOURCE=1' \
    177 	'-DUSE_STLPORT=1' \
    178 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    179 	'-DCHROME_BUILD_ID=""' \
    180 	'-DNDEBUG' \
    181 	'-DNVALGRIND' \
    182 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    183 	'-D_FORTIFY_SOURCE=2'
    184 
    185 
    186 # Include paths placed before CFLAGS/CPPFLAGS
    187 LOCAL_C_INCLUDES_Release := \
    188 	$(LOCAL_PATH)/sdch/open-vcdiff/src \
    189 	$(LOCAL_PATH)/sdch/linux \
    190 	$(LOCAL_PATH)/third_party/zlib \
    191 	$(PWD)/frameworks/wilhelm/include \
    192 	$(PWD)/bionic \
    193 	$(PWD)/external/stlport/stlport
    194 
    195 
    196 # Flags passed to only C++ (and not C) files.
    197 LOCAL_CPPFLAGS_Release := \
    198 	-fno-rtti \
    199 	-fno-threadsafe-statics \
    200 	-fvisibility-inlines-hidden \
    201 	-Wsign-compare \
    202 	-Wno-abi \
    203 	-Wno-error=c++0x-compat \
    204 	-Wno-non-virtual-dtor \
    205 	-Wno-sign-promo
    206 
    207 
    208 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    209 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    210 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    211 ### Rules for final target.
    212 
    213 LOCAL_LDFLAGS_Debug := \
    214 	-Wl,-z,now \
    215 	-Wl,-z,relro \
    216 	-Wl,-z,noexecstack \
    217 	-fPIC \
    218 	-Wl,-z,relro \
    219 	-Wl,-z,now \
    220 	-fuse-ld=gold \
    221 	-nostdlib \
    222 	-Wl,--no-undefined \
    223 	-Wl,--exclude-libs=ALL \
    224 	-Wl,--icf=safe \
    225 	-Wl,--fatal-warnings \
    226 	-Wl,--gc-sections \
    227 	-Wl,--warn-shared-textrel \
    228 	-Wl,-O1 \
    229 	-Wl,--as-needed
    230 
    231 
    232 LOCAL_LDFLAGS_Release := \
    233 	-Wl,-z,now \
    234 	-Wl,-z,relro \
    235 	-Wl,-z,noexecstack \
    236 	-fPIC \
    237 	-Wl,-z,relro \
    238 	-Wl,-z,now \
    239 	-fuse-ld=gold \
    240 	-nostdlib \
    241 	-Wl,--no-undefined \
    242 	-Wl,--exclude-libs=ALL \
    243 	-Wl,--icf=safe \
    244 	-Wl,-O1 \
    245 	-Wl,--as-needed \
    246 	-Wl,--gc-sections \
    247 	-Wl,--fatal-warnings \
    248 	-Wl,--warn-shared-textrel
    249 
    250 
    251 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    252 
    253 LOCAL_STATIC_LIBRARIES :=
    254 
    255 # Enable grouping to fix circular references
    256 LOCAL_GROUP_STATIC_LIBRARIES := true
    257 
    258 LOCAL_SHARED_LIBRARIES := \
    259 	libstlport \
    260 	libdl
    261 
    262 # Add target alias to "gyp_all_modules" target.
    263 .PHONY: gyp_all_modules
    264 gyp_all_modules: sdch_sdch_gyp
    265 
    266 # Alias gyp target name.
    267 .PHONY: sdch
    268 sdch: sdch_sdch_gyp
    269 
    270 include $(BUILD_STATIC_LIBRARY)
    271