Home | History | Annotate | Download | only in lzma_sdk
      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 := third_party_lzma_sdk_lzma_sdk_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TAGS := optional
      9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
     10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     12 
     13 # Make sure our deps are built first.
     14 GYP_TARGET_DEPENDENCIES :=
     15 
     16 GYP_GENERATED_OUTPUTS :=
     17 
     18 # Make sure our deps and generated files are built first.
     19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     20 
     21 LOCAL_GENERATED_SOURCES :=
     22 
     23 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     24 
     25 LOCAL_SRC_FILES := \
     26 	third_party/lzma_sdk/7zAlloc.c \
     27 	third_party/lzma_sdk/7zBuf.c \
     28 	third_party/lzma_sdk/7zCrc.c \
     29 	third_party/lzma_sdk/7zCrcOpt.c \
     30 	third_party/lzma_sdk/7zDec.c \
     31 	third_party/lzma_sdk/7zFile.c \
     32 	third_party/lzma_sdk/7zIn.c \
     33 	third_party/lzma_sdk/7zStream.c \
     34 	third_party/lzma_sdk/Alloc.c \
     35 	third_party/lzma_sdk/Bcj2.c \
     36 	third_party/lzma_sdk/Bra.c \
     37 	third_party/lzma_sdk/Bra86.c \
     38 	third_party/lzma_sdk/CpuArch.c \
     39 	third_party/lzma_sdk/LzFind.c \
     40 	third_party/lzma_sdk/Lzma2Dec.c \
     41 	third_party/lzma_sdk/LzmaEnc.c \
     42 	third_party/lzma_sdk/LzmaDec.c \
     43 	third_party/lzma_sdk/LzmaLib.c
     44 
     45 
     46 # Flags passed to both C and C++ files.
     47 MY_CFLAGS_Debug := \
     48 	-fstack-protector \
     49 	--param=ssp-buffer-size=4 \
     50 	 \
     51 	-fno-exceptions \
     52 	-fno-strict-aliasing \
     53 	-Wno-unused-parameter \
     54 	-Wno-missing-field-initializers \
     55 	-fvisibility=hidden \
     56 	-pipe \
     57 	-fPIC \
     58 	-Wno-unused-local-typedefs \
     59 	-Wno-format \
     60 	-EL \
     61 	-mhard-float \
     62 	-ffunction-sections \
     63 	-funwind-tables \
     64 	-g \
     65 	-fstack-protector \
     66 	-fno-short-enums \
     67 	-finline-limit=64 \
     68 	-Wa,--noexecstack \
     69 	-U_FORTIFY_SOURCE \
     70 	-Wno-extra \
     71 	-Wno-ignored-qualifiers \
     72 	-Wno-type-limits \
     73 	-Wno-unused-but-set-variable \
     74 	-Wno-address \
     75 	-Wno-format-security \
     76 	-Wno-return-type \
     77 	-Wno-sequence-point \
     78 	-Os \
     79 	-g \
     80 	-fdata-sections \
     81 	-ffunction-sections \
     82 	-fomit-frame-pointer \
     83 	-funwind-tables
     84 
     85 MY_DEFS_Debug := \
     86 	'-DV8_DEPRECATION_WARNINGS' \
     87 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
     88 	'-D_FILE_OFFSET_BITS=64' \
     89 	'-DNO_TCMALLOC' \
     90 	'-DDISABLE_NACL' \
     91 	'-DCHROMIUM_BUILD' \
     92 	'-DUSE_LIBJPEG_TURBO=1' \
     93 	'-DENABLE_WEBRTC=1' \
     94 	'-DUSE_PROPRIETARY_CODECS' \
     95 	'-DENABLE_BROWSER_CDMS' \
     96 	'-DENABLE_CONFIGURATION_POLICY' \
     97 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     98 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     99 	'-DENABLE_EGLIMAGE=1' \
    100 	'-DCLD_VERSION=1' \
    101 	'-DENABLE_PRINTING=1' \
    102 	'-DENABLE_MANAGED_USERS=1' \
    103 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    104 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    105 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    106 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    107 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    108 	'-DVIDEO_HOLE=1' \
    109 	'-D_7ZIP_ST' \
    110 	'-D_LZMA_PROB32' \
    111 	'-DUSE_OPENSSL=1' \
    112 	'-DUSE_OPENSSL_CERTS=1' \
    113 	'-DANDROID' \
    114 	'-D__GNU_SOURCE=1' \
    115 	'-DUSE_STLPORT=1' \
    116 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    117 	'-DCHROME_BUILD_ID=""' \
    118 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    119 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    120 	'-D_DEBUG'
    121 
    122 
    123 # Include paths placed before CFLAGS/CPPFLAGS
    124 LOCAL_C_INCLUDES_Debug := \
    125 	$(gyp_shared_intermediate_dir) \
    126 	$(LOCAL_PATH)/third_party/lzma_sdk \
    127 	$(PWD)/frameworks/wilhelm/include \
    128 	$(PWD)/bionic \
    129 	$(PWD)/external/stlport/stlport
    130 
    131 
    132 # Flags passed to only C++ (and not C) files.
    133 LOCAL_CPPFLAGS_Debug := \
    134 	-fno-rtti \
    135 	-fno-threadsafe-statics \
    136 	-fvisibility-inlines-hidden \
    137 	-Wno-deprecated \
    138 	-Wno-uninitialized \
    139 	-Wno-non-virtual-dtor \
    140 	-Wno-sign-promo \
    141 	-Wno-non-virtual-dtor
    142 
    143 
    144 LOCAL_FDO_SUPPORT_Debug := false
    145 
    146 # Flags passed to both C and C++ files.
    147 MY_CFLAGS_Release := \
    148 	-fstack-protector \
    149 	--param=ssp-buffer-size=4 \
    150 	 \
    151 	-fno-exceptions \
    152 	-fno-strict-aliasing \
    153 	-Wno-unused-parameter \
    154 	-Wno-missing-field-initializers \
    155 	-fvisibility=hidden \
    156 	-pipe \
    157 	-fPIC \
    158 	-Wno-unused-local-typedefs \
    159 	-Wno-format \
    160 	-EL \
    161 	-mhard-float \
    162 	-ffunction-sections \
    163 	-funwind-tables \
    164 	-g \
    165 	-fstack-protector \
    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 	-Wno-address \
    175 	-Wno-format-security \
    176 	-Wno-return-type \
    177 	-Wno-sequence-point \
    178 	-Os \
    179 	-fno-ident \
    180 	-fdata-sections \
    181 	-ffunction-sections \
    182 	-fomit-frame-pointer \
    183 	-funwind-tables
    184 
    185 MY_DEFS_Release := \
    186 	'-DV8_DEPRECATION_WARNINGS' \
    187 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    188 	'-D_FILE_OFFSET_BITS=64' \
    189 	'-DNO_TCMALLOC' \
    190 	'-DDISABLE_NACL' \
    191 	'-DCHROMIUM_BUILD' \
    192 	'-DUSE_LIBJPEG_TURBO=1' \
    193 	'-DENABLE_WEBRTC=1' \
    194 	'-DUSE_PROPRIETARY_CODECS' \
    195 	'-DENABLE_BROWSER_CDMS' \
    196 	'-DENABLE_CONFIGURATION_POLICY' \
    197 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    198 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    199 	'-DENABLE_EGLIMAGE=1' \
    200 	'-DCLD_VERSION=1' \
    201 	'-DENABLE_PRINTING=1' \
    202 	'-DENABLE_MANAGED_USERS=1' \
    203 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    204 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    205 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    206 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    207 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    208 	'-DVIDEO_HOLE=1' \
    209 	'-D_7ZIP_ST' \
    210 	'-D_LZMA_PROB32' \
    211 	'-DUSE_OPENSSL=1' \
    212 	'-DUSE_OPENSSL_CERTS=1' \
    213 	'-DANDROID' \
    214 	'-D__GNU_SOURCE=1' \
    215 	'-DUSE_STLPORT=1' \
    216 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    217 	'-DCHROME_BUILD_ID=""' \
    218 	'-DNDEBUG' \
    219 	'-DNVALGRIND' \
    220 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    221 
    222 
    223 # Include paths placed before CFLAGS/CPPFLAGS
    224 LOCAL_C_INCLUDES_Release := \
    225 	$(gyp_shared_intermediate_dir) \
    226 	$(LOCAL_PATH)/third_party/lzma_sdk \
    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-rtti \
    235 	-fno-threadsafe-statics \
    236 	-fvisibility-inlines-hidden \
    237 	-Wno-deprecated \
    238 	-Wno-uninitialized \
    239 	-Wno-non-virtual-dtor \
    240 	-Wno-sign-promo \
    241 	-Wno-non-virtual-dtor
    242 
    243 
    244 LOCAL_FDO_SUPPORT_Release := false
    245 
    246 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    247 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
    248 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    249 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    250 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    251 ### Rules for final target.
    252 
    253 LOCAL_LDFLAGS_Debug := \
    254 	-Wl,-z,now \
    255 	-Wl,-z,relro \
    256 	-Wl,--fatal-warnings \
    257 	-Wl,-z,noexecstack \
    258 	-fPIC \
    259 	-EL \
    260 	-Wl,--no-keep-memory \
    261 	-nostdlib \
    262 	-Wl,--no-undefined \
    263 	-Wl,--exclude-libs=ALL \
    264 	-Wl,--warn-shared-textrel \
    265 	-Wl,-O1 \
    266 	-Wl,--as-needed
    267 
    268 
    269 LOCAL_LDFLAGS_Release := \
    270 	-Wl,-z,now \
    271 	-Wl,-z,relro \
    272 	-Wl,--fatal-warnings \
    273 	-Wl,-z,noexecstack \
    274 	-fPIC \
    275 	-EL \
    276 	-Wl,--no-keep-memory \
    277 	-nostdlib \
    278 	-Wl,--no-undefined \
    279 	-Wl,--exclude-libs=ALL \
    280 	-Wl,-O1 \
    281 	-Wl,--as-needed \
    282 	-Wl,--gc-sections \
    283 	-Wl,--warn-shared-textrel
    284 
    285 
    286 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    287 
    288 LOCAL_STATIC_LIBRARIES :=
    289 
    290 # Enable grouping to fix circular references
    291 LOCAL_GROUP_STATIC_LIBRARIES := true
    292 
    293 LOCAL_SHARED_LIBRARIES := \
    294 	libstlport \
    295 	libdl
    296 
    297 # Add target alias to "gyp_all_modules" target.
    298 .PHONY: gyp_all_modules
    299 gyp_all_modules: third_party_lzma_sdk_lzma_sdk_gyp
    300 
    301 # Alias gyp target name.
    302 .PHONY: lzma_sdk
    303 lzma_sdk: third_party_lzma_sdk_lzma_sdk_gyp
    304 
    305 include $(BUILD_STATIC_LIBRARY)
    306