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 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_GENERATED_SOURCES :=
     21 
     22 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     23 
     24 LOCAL_SRC_FILES := \
     25 	third_party/lzma_sdk/7zAlloc.c \
     26 	third_party/lzma_sdk/7zBuf.c \
     27 	third_party/lzma_sdk/7zCrc.c \
     28 	third_party/lzma_sdk/7zCrcOpt.c \
     29 	third_party/lzma_sdk/7zDec.c \
     30 	third_party/lzma_sdk/7zFile.c \
     31 	third_party/lzma_sdk/7zIn.c \
     32 	third_party/lzma_sdk/7zStream.c \
     33 	third_party/lzma_sdk/Alloc.c \
     34 	third_party/lzma_sdk/Bcj2.c \
     35 	third_party/lzma_sdk/Bra.c \
     36 	third_party/lzma_sdk/Bra86.c \
     37 	third_party/lzma_sdk/CpuArch.c \
     38 	third_party/lzma_sdk/LzFind.c \
     39 	third_party/lzma_sdk/Lzma2Dec.c \
     40 	third_party/lzma_sdk/LzmaEnc.c \
     41 	third_party/lzma_sdk/LzmaDec.c \
     42 	third_party/lzma_sdk/LzmaLib.c
     43 
     44 
     45 # Flags passed to both C and C++ files.
     46 MY_CFLAGS_Debug := \
     47 	-fstack-protector \
     48 	--param=ssp-buffer-size=4 \
     49 	-fno-exceptions \
     50 	-fno-strict-aliasing \
     51 	-Wno-unused-parameter \
     52 	-Wno-missing-field-initializers \
     53 	-fvisibility=hidden \
     54 	-pipe \
     55 	-fPIC \
     56 	-Wno-format \
     57 	-fno-tree-sra \
     58 	-fuse-ld=gold \
     59 	-Wno-psabi \
     60 	-ffunction-sections \
     61 	-funwind-tables \
     62 	-g \
     63 	-fstack-protector \
     64 	-fno-short-enums \
     65 	-finline-limit=64 \
     66 	-Wa,--noexecstack \
     67 	-U_FORTIFY_SOURCE \
     68 	-Wno-extra \
     69 	-Wno-ignored-qualifiers \
     70 	-Wno-type-limits \
     71 	-Wno-address \
     72 	-Wno-format-security \
     73 	-Wno-return-type \
     74 	-Wno-sequence-point \
     75 	-Os \
     76 	-g \
     77 	-fomit-frame-pointer \
     78 	-fdata-sections \
     79 	-ffunction-sections
     80 
     81 MY_DEFS_Debug := \
     82 	'-DV8_DEPRECATION_WARNINGS' \
     83 	'-D_FILE_OFFSET_BITS=64' \
     84 	'-DNO_TCMALLOC' \
     85 	'-DDISABLE_NACL' \
     86 	'-DCHROMIUM_BUILD' \
     87 	'-DUSE_LIBJPEG_TURBO=1' \
     88 	'-DUSE_PROPRIETARY_CODECS' \
     89 	'-DENABLE_CONFIGURATION_POLICY' \
     90 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     91 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     92 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     93 	'-DUSE_OPENSSL=1' \
     94 	'-DENABLE_EGLIMAGE=1' \
     95 	'-DCLD_VERSION=1' \
     96 	'-DENABLE_PRINTING=1' \
     97 	'-DENABLE_MANAGED_USERS=1' \
     98 	'-D_7ZIP_ST' \
     99 	'-D_LZMA_PROB32' \
    100 	'-DANDROID' \
    101 	'-D__GNU_SOURCE=1' \
    102 	'-DUSE_STLPORT=1' \
    103 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    104 	'-DCHROME_BUILD_ID=""' \
    105 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    106 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    107 	'-D_DEBUG'
    108 
    109 
    110 # Include paths placed before CFLAGS/CPPFLAGS
    111 LOCAL_C_INCLUDES_Debug := \
    112 	$(LOCAL_PATH)/third_party/lzma_sdk \
    113 	$(PWD)/frameworks/wilhelm/include \
    114 	$(PWD)/bionic \
    115 	$(PWD)/external/stlport/stlport
    116 
    117 
    118 # Flags passed to only C++ (and not C) files.
    119 LOCAL_CPPFLAGS_Debug := \
    120 	-fno-rtti \
    121 	-fno-threadsafe-statics \
    122 	-fvisibility-inlines-hidden \
    123 	-Wno-deprecated \
    124 	-Wno-abi \
    125 	-Wno-error=c++0x-compat \
    126 	-Wno-non-virtual-dtor \
    127 	-Wno-sign-promo \
    128 	-Wno-non-virtual-dtor
    129 
    130 
    131 # Flags passed to both C and C++ files.
    132 MY_CFLAGS_Release := \
    133 	-fstack-protector \
    134 	--param=ssp-buffer-size=4 \
    135 	-fno-exceptions \
    136 	-fno-strict-aliasing \
    137 	-Wno-unused-parameter \
    138 	-Wno-missing-field-initializers \
    139 	-fvisibility=hidden \
    140 	-pipe \
    141 	-fPIC \
    142 	-Wno-format \
    143 	-fno-tree-sra \
    144 	-fuse-ld=gold \
    145 	-Wno-psabi \
    146 	-ffunction-sections \
    147 	-funwind-tables \
    148 	-g \
    149 	-fstack-protector \
    150 	-fno-short-enums \
    151 	-finline-limit=64 \
    152 	-Wa,--noexecstack \
    153 	-U_FORTIFY_SOURCE \
    154 	-Wno-extra \
    155 	-Wno-ignored-qualifiers \
    156 	-Wno-type-limits \
    157 	-Wno-address \
    158 	-Wno-format-security \
    159 	-Wno-return-type \
    160 	-Wno-sequence-point \
    161 	-Os \
    162 	-fno-ident \
    163 	-fdata-sections \
    164 	-ffunction-sections \
    165 	-fomit-frame-pointer
    166 
    167 MY_DEFS_Release := \
    168 	'-DV8_DEPRECATION_WARNINGS' \
    169 	'-D_FILE_OFFSET_BITS=64' \
    170 	'-DNO_TCMALLOC' \
    171 	'-DDISABLE_NACL' \
    172 	'-DCHROMIUM_BUILD' \
    173 	'-DUSE_LIBJPEG_TURBO=1' \
    174 	'-DUSE_PROPRIETARY_CODECS' \
    175 	'-DENABLE_CONFIGURATION_POLICY' \
    176 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    177 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    178 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    179 	'-DUSE_OPENSSL=1' \
    180 	'-DENABLE_EGLIMAGE=1' \
    181 	'-DCLD_VERSION=1' \
    182 	'-DENABLE_PRINTING=1' \
    183 	'-DENABLE_MANAGED_USERS=1' \
    184 	'-D_7ZIP_ST' \
    185 	'-D_LZMA_PROB32' \
    186 	'-DANDROID' \
    187 	'-D__GNU_SOURCE=1' \
    188 	'-DUSE_STLPORT=1' \
    189 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    190 	'-DCHROME_BUILD_ID=""' \
    191 	'-DNDEBUG' \
    192 	'-DNVALGRIND' \
    193 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    194 
    195 
    196 # Include paths placed before CFLAGS/CPPFLAGS
    197 LOCAL_C_INCLUDES_Release := \
    198 	$(LOCAL_PATH)/third_party/lzma_sdk \
    199 	$(PWD)/frameworks/wilhelm/include \
    200 	$(PWD)/bionic \
    201 	$(PWD)/external/stlport/stlport
    202 
    203 
    204 # Flags passed to only C++ (and not C) files.
    205 LOCAL_CPPFLAGS_Release := \
    206 	-fno-rtti \
    207 	-fno-threadsafe-statics \
    208 	-fvisibility-inlines-hidden \
    209 	-Wno-deprecated \
    210 	-Wno-abi \
    211 	-Wno-error=c++0x-compat \
    212 	-Wno-non-virtual-dtor \
    213 	-Wno-sign-promo \
    214 	-Wno-non-virtual-dtor
    215 
    216 
    217 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    218 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    219 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    220 ### Rules for final target.
    221 
    222 LOCAL_LDFLAGS_Debug := \
    223 	-Wl,-z,now \
    224 	-Wl,-z,relro \
    225 	-Wl,-z,noexecstack \
    226 	-fPIC \
    227 	-Wl,-z,relro \
    228 	-Wl,-z,now \
    229 	-fuse-ld=gold \
    230 	-nostdlib \
    231 	-Wl,--no-undefined \
    232 	-Wl,--exclude-libs=ALL \
    233 	-Wl,--icf=safe \
    234 	-Wl,--fatal-warnings \
    235 	-Wl,--gc-sections \
    236 	-Wl,--warn-shared-textrel \
    237 	-Wl,-O1 \
    238 	-Wl,--as-needed
    239 
    240 
    241 LOCAL_LDFLAGS_Release := \
    242 	-Wl,-z,now \
    243 	-Wl,-z,relro \
    244 	-Wl,-z,noexecstack \
    245 	-fPIC \
    246 	-Wl,-z,relro \
    247 	-Wl,-z,now \
    248 	-fuse-ld=gold \
    249 	-nostdlib \
    250 	-Wl,--no-undefined \
    251 	-Wl,--exclude-libs=ALL \
    252 	-Wl,--icf=safe \
    253 	-Wl,-O1 \
    254 	-Wl,--as-needed \
    255 	-Wl,--gc-sections \
    256 	-Wl,--fatal-warnings \
    257 	-Wl,--warn-shared-textrel
    258 
    259 
    260 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    261 
    262 LOCAL_STATIC_LIBRARIES :=
    263 
    264 # Enable grouping to fix circular references
    265 LOCAL_GROUP_STATIC_LIBRARIES := true
    266 
    267 LOCAL_SHARED_LIBRARIES := \
    268 	libstlport \
    269 	libdl
    270 
    271 # Add target alias to "gyp_all_modules" target.
    272 .PHONY: gyp_all_modules
    273 gyp_all_modules: third_party_lzma_sdk_lzma_sdk_gyp
    274 
    275 # Alias gyp target name.
    276 .PHONY: lzma_sdk
    277 lzma_sdk: third_party_lzma_sdk_lzma_sdk_gyp
    278 
    279 include $(BUILD_STATIC_LIBRARY)
    280