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