Home | History | Annotate | Download | only in usrsctp
      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_usrsctp_usrsctplib_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/usrsctp/usrsctplib/netinet/sctp_asconf.c \
     27 	third_party/usrsctp/usrsctplib/netinet/sctp_auth.c \
     28 	third_party/usrsctp/usrsctplib/netinet/sctp_bsd_addr.c \
     29 	third_party/usrsctp/usrsctplib/netinet/sctp_callout.c \
     30 	third_party/usrsctp/usrsctplib/netinet/sctp_cc_functions.c \
     31 	third_party/usrsctp/usrsctplib/netinet/sctp_crc32.c \
     32 	third_party/usrsctp/usrsctplib/netinet/sctp_indata.c \
     33 	third_party/usrsctp/usrsctplib/netinet/sctp_input.c \
     34 	third_party/usrsctp/usrsctplib/netinet/sctp_output.c \
     35 	third_party/usrsctp/usrsctplib/netinet/sctp_pcb.c \
     36 	third_party/usrsctp/usrsctplib/netinet/sctp_peeloff.c \
     37 	third_party/usrsctp/usrsctplib/netinet/sctp_sha1.c \
     38 	third_party/usrsctp/usrsctplib/netinet/sctp_ss_functions.c \
     39 	third_party/usrsctp/usrsctplib/netinet/sctp_sysctl.c \
     40 	third_party/usrsctp/usrsctplib/netinet/sctp_timer.c \
     41 	third_party/usrsctp/usrsctplib/netinet/sctp_userspace.c \
     42 	third_party/usrsctp/usrsctplib/netinet/sctp_usrreq.c \
     43 	third_party/usrsctp/usrsctplib/netinet/sctputil.c \
     44 	third_party/usrsctp/usrsctplib/netinet6/sctp6_usrreq.c \
     45 	third_party/usrsctp/usrsctplib/user_environment.c \
     46 	third_party/usrsctp/usrsctplib/user_mbuf.c \
     47 	third_party/usrsctp/usrsctplib/user_recv_thread.c \
     48 	third_party/usrsctp/usrsctplib/user_sctp_timer_iterate.c \
     49 	third_party/usrsctp/usrsctplib/user_socket.c
     50 
     51 
     52 # Flags passed to both C and C++ files.
     53 MY_CFLAGS_Debug := \
     54 	-fstack-protector \
     55 	--param=ssp-buffer-size=4 \
     56 	-fno-exceptions \
     57 	-fno-strict-aliasing \
     58 	-Wno-unused-parameter \
     59 	-Wno-missing-field-initializers \
     60 	-fvisibility=hidden \
     61 	-pipe \
     62 	-fPIC \
     63 	-Wno-unused-local-typedefs \
     64 	-w \
     65 	-Wno-format \
     66 	-fno-tree-sra \
     67 	-fno-partial-inlining \
     68 	-fno-early-inlining \
     69 	-fno-tree-copy-prop \
     70 	-fno-tree-loop-optimize \
     71 	-fno-move-loop-invariants \
     72 	-fno-caller-saves \
     73 	-Wno-psabi \
     74 	-ffunction-sections \
     75 	-funwind-tables \
     76 	-g \
     77 	-fstack-protector \
     78 	-fno-short-enums \
     79 	-finline-limit=64 \
     80 	-Wa,--noexecstack \
     81 	-U_FORTIFY_SOURCE \
     82 	-Wno-extra \
     83 	-Wno-ignored-qualifiers \
     84 	-Wno-type-limits \
     85 	-Wno-unused-but-set-variable \
     86 	-Wno-address \
     87 	-Wno-format-security \
     88 	-Wno-return-type \
     89 	-Wno-sequence-point \
     90 	-Os \
     91 	-g \
     92 	-fdata-sections \
     93 	-ffunction-sections \
     94 	-fomit-frame-pointer \
     95 	-funwind-tables
     96 
     97 MY_DEFS_Debug := \
     98 	'-DSCTP_PROCESS_LEVEL_LOCKS' \
     99 	'-DSCTP_SIMPLE_ALLOCATOR' \
    100 	'-D__Userspace__' \
    101 	'-DV8_DEPRECATION_WARNINGS' \
    102 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    103 	'-D_FILE_OFFSET_BITS=64' \
    104 	'-DNO_TCMALLOC' \
    105 	'-DDISABLE_NACL' \
    106 	'-DSCTP_USE_OPENSSL_SHA1' \
    107 	'-DCHROMIUM_BUILD' \
    108 	'-DUSE_LIBJPEG_TURBO=1' \
    109 	'-DENABLE_WEBRTC=1' \
    110 	'-DUSE_PROPRIETARY_CODECS' \
    111 	'-DENABLE_BROWSER_CDMS' \
    112 	'-DENABLE_CONFIGURATION_POLICY' \
    113 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    114 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    115 	'-DENABLE_EGLIMAGE=1' \
    116 	'-DCLD_VERSION=1' \
    117 	'-DENABLE_PRINTING=1' \
    118 	'-DENABLE_MANAGED_USERS=1' \
    119 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    120 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    121 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    122 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    123 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    124 	'-DVIDEO_HOLE=1' \
    125 	'-D__Userspace_os_Linux' \
    126 	'-DNON_WINDOWS_DEFINE' \
    127 	'-DUSE_OPENSSL=1' \
    128 	'-DUSE_OPENSSL_CERTS=1' \
    129 	'-DANDROID' \
    130 	'-D__GNU_SOURCE=1' \
    131 	'-DUSE_STLPORT=1' \
    132 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    133 	'-DCHROME_BUILD_ID=""' \
    134 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    135 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    136 	'-D_DEBUG'
    137 
    138 
    139 # Include paths placed before CFLAGS/CPPFLAGS
    140 LOCAL_C_INCLUDES_Debug := \
    141 	$(LOCAL_PATH)/third_party/usrsctp/usrsctplib \
    142 	$(LOCAL_PATH)/third_party/usrsctp/usrsctplib/netinet \
    143 	$(gyp_shared_intermediate_dir) \
    144 	$(LOCAL_PATH)/third_party/openssl/openssl/include \
    145 	$(PWD)/frameworks/wilhelm/include \
    146 	$(PWD)/bionic \
    147 	$(PWD)/external/stlport/stlport
    148 
    149 
    150 # Flags passed to only C++ (and not C) files.
    151 LOCAL_CPPFLAGS_Debug := \
    152 	-fno-rtti \
    153 	-fno-threadsafe-statics \
    154 	-fvisibility-inlines-hidden \
    155 	-Wno-deprecated \
    156 	-Wno-abi \
    157 	-Wno-non-virtual-dtor \
    158 	-Wno-sign-promo \
    159 	-Wno-non-virtual-dtor
    160 
    161 
    162 LOCAL_FDO_SUPPORT_Debug := false
    163 
    164 # Flags passed to both C and C++ files.
    165 MY_CFLAGS_Release := \
    166 	-fstack-protector \
    167 	--param=ssp-buffer-size=4 \
    168 	-fno-exceptions \
    169 	-fno-strict-aliasing \
    170 	-Wno-unused-parameter \
    171 	-Wno-missing-field-initializers \
    172 	-fvisibility=hidden \
    173 	-pipe \
    174 	-fPIC \
    175 	-Wno-unused-local-typedefs \
    176 	-w \
    177 	-Wno-format \
    178 	-fno-tree-sra \
    179 	-fno-partial-inlining \
    180 	-fno-early-inlining \
    181 	-fno-tree-copy-prop \
    182 	-fno-tree-loop-optimize \
    183 	-fno-move-loop-invariants \
    184 	-fno-caller-saves \
    185 	-Wno-psabi \
    186 	-ffunction-sections \
    187 	-funwind-tables \
    188 	-g \
    189 	-fstack-protector \
    190 	-fno-short-enums \
    191 	-finline-limit=64 \
    192 	-Wa,--noexecstack \
    193 	-U_FORTIFY_SOURCE \
    194 	-Wno-extra \
    195 	-Wno-ignored-qualifiers \
    196 	-Wno-type-limits \
    197 	-Wno-unused-but-set-variable \
    198 	-Wno-address \
    199 	-Wno-format-security \
    200 	-Wno-return-type \
    201 	-Wno-sequence-point \
    202 	-Os \
    203 	-fno-ident \
    204 	-fdata-sections \
    205 	-ffunction-sections \
    206 	-fomit-frame-pointer \
    207 	-funwind-tables
    208 
    209 MY_DEFS_Release := \
    210 	'-DSCTP_PROCESS_LEVEL_LOCKS' \
    211 	'-DSCTP_SIMPLE_ALLOCATOR' \
    212 	'-D__Userspace__' \
    213 	'-DV8_DEPRECATION_WARNINGS' \
    214 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    215 	'-D_FILE_OFFSET_BITS=64' \
    216 	'-DNO_TCMALLOC' \
    217 	'-DDISABLE_NACL' \
    218 	'-DSCTP_USE_OPENSSL_SHA1' \
    219 	'-DCHROMIUM_BUILD' \
    220 	'-DUSE_LIBJPEG_TURBO=1' \
    221 	'-DENABLE_WEBRTC=1' \
    222 	'-DUSE_PROPRIETARY_CODECS' \
    223 	'-DENABLE_BROWSER_CDMS' \
    224 	'-DENABLE_CONFIGURATION_POLICY' \
    225 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    226 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    227 	'-DENABLE_EGLIMAGE=1' \
    228 	'-DCLD_VERSION=1' \
    229 	'-DENABLE_PRINTING=1' \
    230 	'-DENABLE_MANAGED_USERS=1' \
    231 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    232 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    233 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    234 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    235 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    236 	'-DVIDEO_HOLE=1' \
    237 	'-D__Userspace_os_Linux' \
    238 	'-DNON_WINDOWS_DEFINE' \
    239 	'-DUSE_OPENSSL=1' \
    240 	'-DUSE_OPENSSL_CERTS=1' \
    241 	'-DANDROID' \
    242 	'-D__GNU_SOURCE=1' \
    243 	'-DUSE_STLPORT=1' \
    244 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    245 	'-DCHROME_BUILD_ID=""' \
    246 	'-DNDEBUG' \
    247 	'-DNVALGRIND' \
    248 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    249 
    250 
    251 # Include paths placed before CFLAGS/CPPFLAGS
    252 LOCAL_C_INCLUDES_Release := \
    253 	$(LOCAL_PATH)/third_party/usrsctp/usrsctplib \
    254 	$(LOCAL_PATH)/third_party/usrsctp/usrsctplib/netinet \
    255 	$(gyp_shared_intermediate_dir) \
    256 	$(LOCAL_PATH)/third_party/openssl/openssl/include \
    257 	$(PWD)/frameworks/wilhelm/include \
    258 	$(PWD)/bionic \
    259 	$(PWD)/external/stlport/stlport
    260 
    261 
    262 # Flags passed to only C++ (and not C) files.
    263 LOCAL_CPPFLAGS_Release := \
    264 	-fno-rtti \
    265 	-fno-threadsafe-statics \
    266 	-fvisibility-inlines-hidden \
    267 	-Wno-deprecated \
    268 	-Wno-abi \
    269 	-Wno-non-virtual-dtor \
    270 	-Wno-sign-promo \
    271 	-Wno-non-virtual-dtor
    272 
    273 
    274 LOCAL_FDO_SUPPORT_Release := false
    275 
    276 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    277 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
    278 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    279 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    280 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    281 ### Rules for final target.
    282 
    283 LOCAL_LDFLAGS_Debug := \
    284 	-Wl,-z,now \
    285 	-Wl,-z,relro \
    286 	-Wl,--fatal-warnings \
    287 	-Wl,-z,noexecstack \
    288 	-fPIC \
    289 	-Wl,-z,relro \
    290 	-Wl,-z,now \
    291 	-fuse-ld=gold \
    292 	-nostdlib \
    293 	-Wl,--no-undefined \
    294 	-Wl,--exclude-libs=ALL \
    295 	-Wl,--icf=safe \
    296 	-Wl,--warn-shared-textrel \
    297 	-Wl,-O1 \
    298 	-Wl,--as-needed
    299 
    300 
    301 LOCAL_LDFLAGS_Release := \
    302 	-Wl,-z,now \
    303 	-Wl,-z,relro \
    304 	-Wl,--fatal-warnings \
    305 	-Wl,-z,noexecstack \
    306 	-fPIC \
    307 	-Wl,-z,relro \
    308 	-Wl,-z,now \
    309 	-fuse-ld=gold \
    310 	-nostdlib \
    311 	-Wl,--no-undefined \
    312 	-Wl,--exclude-libs=ALL \
    313 	-Wl,--icf=safe \
    314 	-Wl,-O1 \
    315 	-Wl,--as-needed \
    316 	-Wl,--gc-sections \
    317 	-Wl,--warn-shared-textrel
    318 
    319 
    320 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    321 
    322 LOCAL_STATIC_LIBRARIES :=
    323 
    324 # Enable grouping to fix circular references
    325 LOCAL_GROUP_STATIC_LIBRARIES := true
    326 
    327 LOCAL_SHARED_LIBRARIES := \
    328 	libstlport \
    329 	libdl
    330 
    331 # Add target alias to "gyp_all_modules" target.
    332 .PHONY: gyp_all_modules
    333 gyp_all_modules: third_party_usrsctp_usrsctplib_gyp
    334 
    335 # Alias gyp target name.
    336 .PHONY: usrsctplib
    337 usrsctplib: third_party_usrsctp_usrsctplib_gyp
    338 
    339 include $(BUILD_STATIC_LIBRARY)
    340