Home | History | Annotate | Download | only in libsrtp
      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_libsrtp_libsrtp_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
      9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     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/libsrtp/srtp/srtp/ekt.c \
     26 	third_party/libsrtp/srtp/srtp/srtp.c \
     27 	third_party/libsrtp/srtp/crypto/cipher/aes.c \
     28 	third_party/libsrtp/srtp/crypto/cipher/aes_cbc.c \
     29 	third_party/libsrtp/srtp/crypto/cipher/aes_icm.c \
     30 	third_party/libsrtp/srtp/crypto/cipher/cipher.c \
     31 	third_party/libsrtp/srtp/crypto/cipher/null_cipher.c \
     32 	third_party/libsrtp/srtp/crypto/hash/auth.c \
     33 	third_party/libsrtp/srtp/crypto/hash/hmac.c \
     34 	third_party/libsrtp/srtp/crypto/hash/null_auth.c \
     35 	third_party/libsrtp/srtp/crypto/hash/sha1.c \
     36 	third_party/libsrtp/srtp/crypto/kernel/alloc.c \
     37 	third_party/libsrtp/srtp/crypto/kernel/crypto_kernel.c \
     38 	third_party/libsrtp/srtp/crypto/kernel/err.c \
     39 	third_party/libsrtp/srtp/crypto/kernel/key.c \
     40 	third_party/libsrtp/srtp/crypto/math/datatypes.c \
     41 	third_party/libsrtp/srtp/crypto/math/gf2_8.c \
     42 	third_party/libsrtp/srtp/crypto/math/stat.c \
     43 	third_party/libsrtp/srtp/crypto/replay/rdb.c \
     44 	third_party/libsrtp/srtp/crypto/replay/rdbx.c \
     45 	third_party/libsrtp/srtp/crypto/replay/ut_sim.c \
     46 	third_party/libsrtp/srtp/crypto/rng/ctr_prng.c \
     47 	third_party/libsrtp/srtp/crypto/rng/prng.c \
     48 	third_party/libsrtp/srtp/crypto/rng/rand_source.c
     49 
     50 
     51 # Flags passed to both C and C++ files.
     52 MY_CFLAGS_Debug := \
     53 	-fstack-protector \
     54 	--param=ssp-buffer-size=4 \
     55 	-fno-strict-aliasing \
     56 	-Wno-unused-parameter \
     57 	-Wno-missing-field-initializers \
     58 	-fvisibility=hidden \
     59 	-pipe \
     60 	-fPIC \
     61 	-Wno-unused-local-typedefs \
     62 	-Wno-format \
     63 	-m64 \
     64 	-march=x86-64 \
     65 	-ffunction-sections \
     66 	-funwind-tables \
     67 	-g \
     68 	-fstack-protector \
     69 	-fno-short-enums \
     70 	-finline-limit=64 \
     71 	-Wa,--noexecstack \
     72 	-U_FORTIFY_SOURCE \
     73 	-Wno-extra \
     74 	-Wno-ignored-qualifiers \
     75 	-Wno-type-limits \
     76 	-Wno-unused-but-set-variable \
     77 	-Wno-address \
     78 	-Wno-format-security \
     79 	-Wno-return-type \
     80 	-Wno-sequence-point \
     81 	-Os \
     82 	-g \
     83 	-gdwarf-4 \
     84 	-fdata-sections \
     85 	-ffunction-sections \
     86 	-fomit-frame-pointer \
     87 	-funwind-tables
     88 
     89 MY_DEFS_Debug := \
     90 	'-DHAVE_STDLIB_H' \
     91 	'-DHAVE_STRING_H' \
     92 	'-DV8_DEPRECATION_WARNINGS' \
     93 	'-D_FILE_OFFSET_BITS=64' \
     94 	'-DNO_TCMALLOC' \
     95 	'-DDISABLE_NACL' \
     96 	'-DHAVE_INT16_T' \
     97 	'-DHAVE_INT32_T' \
     98 	'-DHAVE_INT8_T' \
     99 	'-DHAVE_UINT16_T' \
    100 	'-DHAVE_UINT32_T' \
    101 	'-DHAVE_UINT64_T' \
    102 	'-DHAVE_UINT8_T' \
    103 	'-DHAVE_STDINT_H' \
    104 	'-DHAVE_INTTYPES_H' \
    105 	'-DHAVE_NETINET_IN_H' \
    106 	'-DINLINE=inline' \
    107 	'-DCPU_CISC' \
    108 	'-DCHROMIUM_BUILD' \
    109 	'-DUSE_LIBJPEG_TURBO=1' \
    110 	'-DENABLE_WEBRTC=1' \
    111 	'-DUSE_PROPRIETARY_CODECS' \
    112 	'-DENABLE_BROWSER_CDMS' \
    113 	'-DENABLE_CONFIGURATION_POLICY' \
    114 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    115 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    116 	'-DENABLE_EGLIMAGE=1' \
    117 	'-DCLD_VERSION=1' \
    118 	'-DENABLE_PRINTING=1' \
    119 	'-DENABLE_MANAGED_USERS=1' \
    120 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    121 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    122 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    123 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    124 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    125 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    126 	'-DVIDEO_HOLE=1' \
    127 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    128 	'-DUSE_OPENSSL=1' \
    129 	'-DUSE_OPENSSL_CERTS=1' \
    130 	'-DANDROID' \
    131 	'-D__GNU_SOURCE=1' \
    132 	'-DUSE_STLPORT=1' \
    133 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    134 	'-DCHROME_BUILD_ID=""' \
    135 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    136 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    137 	'-D_DEBUG'
    138 
    139 
    140 # Include paths placed before CFLAGS/CPPFLAGS
    141 LOCAL_C_INCLUDES_Debug := \
    142 	$(LOCAL_PATH)/third_party/libsrtp/config \
    143 	$(LOCAL_PATH)/third_party/libsrtp/srtp/include \
    144 	$(LOCAL_PATH)/third_party/libsrtp/srtp/crypto/include \
    145 	$(gyp_shared_intermediate_dir) \
    146 	$(PWD)/frameworks/wilhelm/include \
    147 	$(PWD)/bionic \
    148 	$(PWD)/external/stlport/stlport
    149 
    150 
    151 # Flags passed to only C++ (and not C) files.
    152 LOCAL_CPPFLAGS_Debug := \
    153 	-fno-exceptions \
    154 	-fno-rtti \
    155 	-fno-threadsafe-statics \
    156 	-fvisibility-inlines-hidden \
    157 	-Wno-deprecated \
    158 	-std=gnu++11 \
    159 	-Wno-narrowing \
    160 	-Wno-literal-suffix \
    161 	-Wno-non-virtual-dtor \
    162 	-Wno-sign-promo \
    163 	-Wno-non-virtual-dtor
    164 
    165 
    166 # Flags passed to both C and C++ files.
    167 MY_CFLAGS_Release := \
    168 	-fstack-protector \
    169 	--param=ssp-buffer-size=4 \
    170 	-fno-strict-aliasing \
    171 	-Wno-unused-parameter \
    172 	-Wno-missing-field-initializers \
    173 	-fvisibility=hidden \
    174 	-pipe \
    175 	-fPIC \
    176 	-Wno-unused-local-typedefs \
    177 	-Wno-format \
    178 	-m64 \
    179 	-march=x86-64 \
    180 	-ffunction-sections \
    181 	-funwind-tables \
    182 	-g \
    183 	-fstack-protector \
    184 	-fno-short-enums \
    185 	-finline-limit=64 \
    186 	-Wa,--noexecstack \
    187 	-U_FORTIFY_SOURCE \
    188 	-Wno-extra \
    189 	-Wno-ignored-qualifiers \
    190 	-Wno-type-limits \
    191 	-Wno-unused-but-set-variable \
    192 	-Wno-address \
    193 	-Wno-format-security \
    194 	-Wno-return-type \
    195 	-Wno-sequence-point \
    196 	-Os \
    197 	-fno-ident \
    198 	-fdata-sections \
    199 	-ffunction-sections \
    200 	-fomit-frame-pointer \
    201 	-funwind-tables
    202 
    203 MY_DEFS_Release := \
    204 	'-DHAVE_STDLIB_H' \
    205 	'-DHAVE_STRING_H' \
    206 	'-DV8_DEPRECATION_WARNINGS' \
    207 	'-D_FILE_OFFSET_BITS=64' \
    208 	'-DNO_TCMALLOC' \
    209 	'-DDISABLE_NACL' \
    210 	'-DHAVE_INT16_T' \
    211 	'-DHAVE_INT32_T' \
    212 	'-DHAVE_INT8_T' \
    213 	'-DHAVE_UINT16_T' \
    214 	'-DHAVE_UINT32_T' \
    215 	'-DHAVE_UINT64_T' \
    216 	'-DHAVE_UINT8_T' \
    217 	'-DHAVE_STDINT_H' \
    218 	'-DHAVE_INTTYPES_H' \
    219 	'-DHAVE_NETINET_IN_H' \
    220 	'-DINLINE=inline' \
    221 	'-DCPU_CISC' \
    222 	'-DCHROMIUM_BUILD' \
    223 	'-DUSE_LIBJPEG_TURBO=1' \
    224 	'-DENABLE_WEBRTC=1' \
    225 	'-DUSE_PROPRIETARY_CODECS' \
    226 	'-DENABLE_BROWSER_CDMS' \
    227 	'-DENABLE_CONFIGURATION_POLICY' \
    228 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    229 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    230 	'-DENABLE_EGLIMAGE=1' \
    231 	'-DCLD_VERSION=1' \
    232 	'-DENABLE_PRINTING=1' \
    233 	'-DENABLE_MANAGED_USERS=1' \
    234 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    235 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    236 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    237 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    238 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    239 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    240 	'-DVIDEO_HOLE=1' \
    241 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    242 	'-DUSE_OPENSSL=1' \
    243 	'-DUSE_OPENSSL_CERTS=1' \
    244 	'-DANDROID' \
    245 	'-D__GNU_SOURCE=1' \
    246 	'-DUSE_STLPORT=1' \
    247 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    248 	'-DCHROME_BUILD_ID=""' \
    249 	'-DNDEBUG' \
    250 	'-DNVALGRIND' \
    251 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    252 
    253 
    254 # Include paths placed before CFLAGS/CPPFLAGS
    255 LOCAL_C_INCLUDES_Release := \
    256 	$(LOCAL_PATH)/third_party/libsrtp/config \
    257 	$(LOCAL_PATH)/third_party/libsrtp/srtp/include \
    258 	$(LOCAL_PATH)/third_party/libsrtp/srtp/crypto/include \
    259 	$(gyp_shared_intermediate_dir) \
    260 	$(PWD)/frameworks/wilhelm/include \
    261 	$(PWD)/bionic \
    262 	$(PWD)/external/stlport/stlport
    263 
    264 
    265 # Flags passed to only C++ (and not C) files.
    266 LOCAL_CPPFLAGS_Release := \
    267 	-fno-exceptions \
    268 	-fno-rtti \
    269 	-fno-threadsafe-statics \
    270 	-fvisibility-inlines-hidden \
    271 	-Wno-deprecated \
    272 	-std=gnu++11 \
    273 	-Wno-narrowing \
    274 	-Wno-literal-suffix \
    275 	-Wno-non-virtual-dtor \
    276 	-Wno-sign-promo \
    277 	-Wno-non-virtual-dtor
    278 
    279 
    280 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    281 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    282 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    283 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    284 ### Rules for final target.
    285 
    286 LOCAL_SHARED_LIBRARIES := \
    287 	libstlport \
    288 	libdl
    289 
    290 # Add target alias to "gyp_all_modules" target.
    291 .PHONY: gyp_all_modules
    292 gyp_all_modules: third_party_libsrtp_libsrtp_gyp
    293 
    294 # Alias gyp target name.
    295 .PHONY: libsrtp
    296 libsrtp: third_party_libsrtp_libsrtp_gyp
    297 
    298 include $(BUILD_STATIC_LIBRARY)
    299