Commit d3a7b315 authored by Philip Withnall's avatar Philip Withnall

build: Auto-generate win32 .def file from libnice.sym

We’ve neglected to manually update this file once too often — it’s been
out of date for important new symbols (for example,
nice_agent_get_io_stream()) since at least 0.1.11.

Since the format is a simple extension of libnice.sym, we might as well
automatically generate it at dist time.
parent 6a8c6321
......@@ -172,6 +172,7 @@ docs/reference/libnice/tmpl
docs/reference/libnice/xml
# win32 stuff
win32/vs9/libnice.def
win32/vs9/*.user
win32/vs9/libnice.ncb
win32/vs9/libnice.suo
......
......@@ -33,6 +33,7 @@ EXTRA_DIST = \
scripts/lcov.sh \
scripts/valgrind.sh \
win32 \
win32/vs9/libnice.def \
m4/introspection.m4
MAINTAINERCLEANFILES = ar-lib
......@@ -41,6 +42,22 @@ dist_check_SCRIPTS = \
scripts/check-symbols.sh \
scripts/make-symbol-list.sh
# Generate the win32 DLL symbol export file.
# The stun_*() symbols at the end have historically been exported on Windows
# but not Linux, for no particular reason. They can’t be removed without
# breaking ABI. FIXME: Remove them when we next break ABI.
win32/vs9/libnice.def: nice/libnice.sym
$(AM_V_GEN)(echo "LIBRARY libnice"; \
echo ""; \
echo "EXPORTS"; \
echo ""; \
cat $<; \
echo "stun_debug"; \
echo "stun_debug_bytes"; \
echo "stun_hash_creds") > $@
CLEANFILES = win32/vs9/libnice.def
lcov:
find -name '*.gcda' -delete
$(MAKE) $(AM_MAKEFLAGS) check
......
LIBRARY libnice
EXPORTS
nice_address_copy_to_sockaddr
nice_address_dup
nice_address_equal
nice_address_equal_no_port
nice_address_free
nice_address_get_port
nice_address_init
nice_address_ip_version
nice_address_is_private
nice_address_is_valid
nice_address_new
nice_address_set_from_sockaddr
nice_address_set_from_string
nice_address_set_ipv4
nice_address_set_ipv6
nice_address_set_port
nice_address_to_string
nice_agent_add_local_address
nice_agent_add_stream
nice_agent_attach_recv
nice_agent_forget_relays
nice_agent_gather_candidates
nice_agent_generate_local_candidate_sdp
nice_agent_generate_local_sdp
nice_agent_generate_local_stream_sdp
nice_agent_get_default_local_candidate
nice_agent_get_local_candidates
nice_agent_get_local_credentials
nice_agent_get_remote_candidates
nice_agent_get_selected_pair
nice_agent_get_selected_socket
nice_agent_get_stream_name
nice_agent_get_type
nice_agent_new
nice_agent_new_reliable
nice_agent_parse_remote_candidate_sdp
nice_agent_parse_remote_sdp
nice_agent_parse_remote_stream_sdp
nice_agent_remove_stream
nice_agent_restart
nice_agent_send
nice_agent_set_port_range
nice_agent_set_relay_info
nice_agent_set_remote_candidates
nice_agent_set_remote_credentials
nice_agent_set_local_credentials
nice_agent_set_selected_pair
nice_agent_set_selected_remote_candidate
nice_agent_set_software
nice_agent_set_stream_name
nice_agent_set_stream_tos
nice_candidate_copy
nice_candidate_free
nice_candidate_new
nice_component_state_to_string
nice_debug_disable
nice_debug_enable
nice_interfaces_get_ip_for_interface
nice_interfaces_get_local_interfaces
nice_interfaces_get_local_ips
pseudo_tcp_set_debug_level
pseudo_tcp_socket_close
pseudo_tcp_socket_connect
pseudo_tcp_socket_get_error
pseudo_tcp_socket_get_next_clock
pseudo_tcp_socket_new
pseudo_tcp_socket_notify_clock
pseudo_tcp_socket_notify_mtu
pseudo_tcp_socket_notify_packet
pseudo_tcp_socket_recv
pseudo_tcp_socket_send
stun_agent_build_unknown_attributes_error
stun_agent_default_validater
stun_agent_finish_message
stun_agent_forget_transaction
stun_agent_init
stun_agent_init_error
stun_agent_init_indication
stun_agent_init_request
stun_agent_init_response
stun_agent_set_software
stun_agent_validate
stun_debug_disable
stun_debug_enable
stun_debug
stun_debug_bytes
stun_hash_creds
stun_message_append
stun_message_append32
stun_message_append64
stun_message_append_addr
stun_message_append_bytes
stun_message_append_error
stun_message_append_flag
stun_message_append_string
stun_message_append_xor_addr
stun_message_append_xor_addr_full
stun_message_find
stun_message_find32
stun_message_find64
stun_message_find_addr
stun_message_find_error
stun_message_find_flag
stun_message_find_string
stun_message_find_xor_addr
stun_message_find_xor_addr_full
stun_message_get_class
stun_message_get_method
stun_message_has_attribute
stun_message_has_cookie
stun_message_id
stun_message_init
stun_message_length
stun_message_validate_buffer_length
stun_optional
stun_strerror
stun_timer_refresh
stun_timer_remainder
stun_timer_start
stun_timer_start_reliable
stun_usage_bind_create
stun_usage_bind_keepalive
stun_usage_bind_process
stun_usage_bind_run
stun_usage_ice_conncheck_create
stun_usage_ice_conncheck_create_reply
stun_usage_ice_conncheck_priority
stun_usage_ice_conncheck_process
stun_usage_ice_conncheck_use_candidate
stun_usage_turn_create
stun_usage_turn_create_refresh
stun_usage_turn_process
stun_usage_turn_refresh_process
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment