mirror of
https://github.com/curl/curl.git
synced 2024-12-09 06:30:06 +08:00
2ebc74c36a
Before this patch CMake builds used two separate compilation passes to build the shared and static libcurl respectively. This patch allows to reduce that to a single pass if the target platform and build settings allow it. This reduces CMake build times when building both static and shared libcurl at the same time, making these dual builds an almost zero-cost option. Enable this feature for Windows builds, where the difference between the two passes was the use of `__declspec(dllexport)` attribute for exported API functions for the shared builds. This patch replaces this method with the use of `libcurl.def` at DLL link time. Also update `Makefile.mk` to use `libcurl.def` to export libcurl API symbols on Windows. This simplifies (or fixes) this build method (e.g. in curl-for-win, which generated a `libcurl.def` from `.h` files using an elaborate set of transformations). `libcurl.def` has the maintenance cost of keeping the list of public libcurl API symbols up-to-date. This list seldom changes, so the cost is low. Closes #11546
93 lines
1.5 KiB
Modula-2
93 lines
1.5 KiB
Modula-2
EXPORTS
|
|
curl_easy_cleanup
|
|
curl_easy_duphandle
|
|
curl_easy_escape
|
|
curl_easy_getinfo
|
|
curl_easy_header
|
|
curl_easy_init
|
|
curl_easy_nextheader
|
|
curl_easy_option_by_id
|
|
curl_easy_option_by_name
|
|
curl_easy_option_next
|
|
curl_easy_pause
|
|
curl_easy_perform
|
|
curl_easy_recv
|
|
curl_easy_reset
|
|
curl_easy_send
|
|
curl_easy_setopt
|
|
curl_easy_strerror
|
|
curl_easy_unescape
|
|
curl_easy_upkeep
|
|
curl_escape
|
|
curl_formadd
|
|
curl_formfree
|
|
curl_formget
|
|
curl_free
|
|
curl_getdate
|
|
curl_getenv
|
|
curl_global_cleanup
|
|
curl_global_init
|
|
curl_global_init_mem
|
|
curl_global_sslset
|
|
curl_maprintf
|
|
curl_mfprintf
|
|
curl_mime_addpart
|
|
curl_mime_data
|
|
curl_mime_data_cb
|
|
curl_mime_encoder
|
|
curl_mime_filedata
|
|
curl_mime_filename
|
|
curl_mime_free
|
|
curl_mime_headers
|
|
curl_mime_init
|
|
curl_mime_name
|
|
curl_mime_subparts
|
|
curl_mime_type
|
|
curl_mprintf
|
|
curl_msnprintf
|
|
curl_msprintf
|
|
curl_multi_add_handle
|
|
curl_multi_assign
|
|
curl_multi_cleanup
|
|
curl_multi_fdset
|
|
curl_multi_info_read
|
|
curl_multi_init
|
|
curl_multi_perform
|
|
curl_multi_poll
|
|
curl_multi_remove_handle
|
|
curl_multi_setopt
|
|
curl_multi_socket
|
|
curl_multi_socket_action
|
|
curl_multi_socket_all
|
|
curl_multi_strerror
|
|
curl_multi_timeout
|
|
curl_multi_wait
|
|
curl_multi_wakeup
|
|
curl_mvaprintf
|
|
curl_mvfprintf
|
|
curl_mvprintf
|
|
curl_mvsnprintf
|
|
curl_mvsprintf
|
|
curl_pushheader_byname
|
|
curl_pushheader_bynum
|
|
curl_share_cleanup
|
|
curl_share_init
|
|
curl_share_setopt
|
|
curl_share_strerror
|
|
curl_slist_append
|
|
curl_slist_free_all
|
|
curl_strequal
|
|
curl_strnequal
|
|
curl_unescape
|
|
curl_url
|
|
curl_url_cleanup
|
|
curl_url_dup
|
|
curl_url_get
|
|
curl_url_set
|
|
curl_url_strerror
|
|
curl_version
|
|
curl_version_info
|
|
curl_ws_meta
|
|
curl_ws_recv
|
|
curl_ws_send
|