early-access version 2853
This commit is contained in:
71
externals/vcpkg/ports/libftdi1/exports.def
vendored
Executable file
71
externals/vcpkg/ports/libftdi1/exports.def
vendored
Executable file
@@ -0,0 +1,71 @@
|
||||
EXPORTS
|
||||
convert_baudrate_UT_export
|
||||
ftdi_deinit
|
||||
ftdi_disable_bitbang
|
||||
ftdi_eeprom_build
|
||||
ftdi_eeprom_decode
|
||||
ftdi_eeprom_get_strings
|
||||
ftdi_eeprom_initdefaults
|
||||
ftdi_eeprom_set_strings
|
||||
ftdi_erase_eeprom
|
||||
ftdi_free
|
||||
ftdi_get_eeprom_buf
|
||||
ftdi_get_eeprom_value
|
||||
ftdi_get_error_string
|
||||
ftdi_get_latency_timer
|
||||
ftdi_get_library_version
|
||||
ftdi_init
|
||||
ftdi_list_free
|
||||
ftdi_list_free2
|
||||
ftdi_new
|
||||
ftdi_poll_modem_status
|
||||
ftdi_read_chipid
|
||||
ftdi_read_data
|
||||
ftdi_read_data_get_chunksize
|
||||
ftdi_read_data_set_chunksize
|
||||
ftdi_read_data_submit
|
||||
ftdi_read_eeprom
|
||||
ftdi_read_eeprom_location
|
||||
ftdi_read_pins
|
||||
ftdi_set_baudrate
|
||||
ftdi_set_bitmode
|
||||
ftdi_set_eeprom_buf
|
||||
ftdi_set_eeprom_user_data
|
||||
ftdi_set_eeprom_value
|
||||
ftdi_set_error_char
|
||||
ftdi_set_event_char
|
||||
ftdi_set_interface
|
||||
ftdi_set_latency_timer
|
||||
ftdi_set_line_property
|
||||
ftdi_set_line_property2
|
||||
ftdi_set_usbdev
|
||||
ftdi_setdtr
|
||||
ftdi_setdtr_rts
|
||||
ftdi_setflowctrl
|
||||
ftdi_setflowctrl_xonxoff
|
||||
ftdi_setrts
|
||||
ftdi_tciflush
|
||||
ftdi_tcioflush
|
||||
ftdi_tcoflush
|
||||
ftdi_transfer_data_cancel
|
||||
ftdi_transfer_data_done
|
||||
ftdi_usb_close
|
||||
ftdi_usb_find_all
|
||||
ftdi_usb_get_strings
|
||||
ftdi_usb_get_strings2
|
||||
ftdi_usb_open
|
||||
ftdi_usb_open_bus_addr
|
||||
ftdi_usb_open_desc
|
||||
ftdi_usb_open_desc_index
|
||||
ftdi_usb_open_dev
|
||||
ftdi_usb_open_string
|
||||
ftdi_usb_purge_buffers
|
||||
ftdi_usb_purge_rx_buffer
|
||||
ftdi_usb_purge_tx_buffer
|
||||
ftdi_usb_reset
|
||||
ftdi_write_data
|
||||
ftdi_write_data_get_chunksize
|
||||
ftdi_write_data_set_chunksize
|
||||
ftdi_write_data_submit
|
||||
ftdi_write_eeprom
|
||||
ftdi_write_eeprom_location
|
||||
13
externals/vcpkg/ports/libftdi1/libconfuse-fix.patch
vendored
Executable file
13
externals/vcpkg/ports/libftdi1/libconfuse-fix.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/cmake/FindConfuse.cmake b/cmake/FindConfuse.cmake
|
||||
index f6af7d5..e24d72f 100755
|
||||
--- a/cmake/FindConfuse.cmake
|
||||
+++ b/cmake/FindConfuse.cmake
|
||||
@@ -46,7 +46,7 @@ find_path ( CONFUSE_INCLUDE_DIR
|
||||
set ( CONFUSE_INCLUDE_DIRS ${CONFUSE_INCLUDE_DIR} )
|
||||
|
||||
find_library ( CONFUSE_LIBRARY
|
||||
- NAMES confuse
|
||||
+ NAMES libconfuse
|
||||
)
|
||||
|
||||
set ( CONFUSE_LIBRARIES ${CONFUSE_LIBRARY} )
|
||||
13
externals/vcpkg/ports/libftdi1/libusb-fix.patch
vendored
Executable file
13
externals/vcpkg/ports/libftdi1/libusb-fix.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/cmake/FindUSB1.cmake b/cmake/FindUSB1.cmake
|
||||
index b90e297..6cc97a0 100755
|
||||
--- a/cmake/FindUSB1.cmake
|
||||
+++ b/cmake/FindUSB1.cmake
|
||||
@@ -26,7 +26,7 @@ else (LIBUSB_INCLUDE_DIR AND LIBUSB_LIBRARIES)
|
||||
PATH_SUFFIXES libusb-1.0
|
||||
PATHS ${PC_LIBUSB_INCLUDEDIR} ${PC_LIBUSB_INCLUDE_DIRS})
|
||||
|
||||
- FIND_LIBRARY(LIBUSB_LIBRARIES NAMES usb-1.0
|
||||
+ FIND_LIBRARY(LIBUSB_LIBRARIES NAMES usb-1.0 libusb-1.0
|
||||
PATHS ${PC_LIBUSB_LIBDIR} ${PC_LIBUSB_LIBRARY_DIRS})
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
49
externals/vcpkg/ports/libftdi1/portfile.cmake
vendored
Executable file
49
externals/vcpkg/ports/libftdi1/portfile.cmake
vendored
Executable file
@@ -0,0 +1,49 @@
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.5.tar.bz2"
|
||||
FILENAME "libftdi1-1.5.tar.bz2"
|
||||
SHA512 c525b2ab6aff9ef9254971ae7d57f3549a36a36875765c48f947d52532814a2a004de1232389d4fe824a8c8ab84277b08427308573476e1da9b7db83db802f6f
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
REF 1.5
|
||||
PATCHES
|
||||
libusb-fix.patch
|
||||
libconfuse-fix.patch
|
||||
win32.patch
|
||||
)
|
||||
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/exports.def" DESTINATION "${SOURCE_PATH}/src")
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DBUILD_TESTS=OFF
|
||||
-DDOCUMENTATION=OFF
|
||||
-DEXAMPLES=OFF
|
||||
-DPYTHON_BINDINGS=OFF
|
||||
-DLINK_PYTHON_LIBRARY=OFF
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Boost=ON
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Libintl=ON
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_PythonLibs=ON
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_PythonInterp=ON
|
||||
-DFTDI_EEPROM=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libftdi1)
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
||||
endif()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
18
externals/vcpkg/ports/libftdi1/vcpkg.json
vendored
Executable file
18
externals/vcpkg/ports/libftdi1/vcpkg.json
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "libftdi1",
|
||||
"version": "1.5",
|
||||
"port-version": 3,
|
||||
"description": "FTDI USB driver with bitbang mode",
|
||||
"dependencies": [
|
||||
"libconfuse",
|
||||
"libusb",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
28
externals/vcpkg/ports/libftdi1/win32.patch
vendored
Executable file
28
externals/vcpkg/ports/libftdi1/win32.patch
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 17b3617..f9a8e59 100755
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -18,9 +18,14 @@ message(STATUS "Detected git snapshot version: ${SNAPSHOT_VERSION}")
|
||||
configure_file(ftdi_version_i.h.in "${CMAKE_CURRENT_BINARY_DIR}/ftdi_version_i.h" @ONLY)
|
||||
|
||||
# Targets
|
||||
+if(WIN32)
|
||||
+set(c_sources ${CMAKE_CURRENT_SOURCE_DIR}/ftdi.c ${CMAKE_CURRENT_SOURCE_DIR}/exports.def CACHE INTERNAL "List of c sources" )
|
||||
+else()
|
||||
set(c_sources ${CMAKE_CURRENT_SOURCE_DIR}/ftdi.c ${CMAKE_CURRENT_SOURCE_DIR}/ftdi_stream.c CACHE INTERNAL "List of c sources" )
|
||||
+endif()
|
||||
set(c_headers ${CMAKE_CURRENT_SOURCE_DIR}/ftdi.h CACHE INTERNAL "List of c headers" )
|
||||
|
||||
+if(BUILD_SHARED_LIBS)
|
||||
add_library(ftdi1 SHARED ${c_sources})
|
||||
|
||||
math(EXPR VERSION_FIXUP "${MAJOR_VERSION} + 1") # Compatibility with previous releases
|
||||
@@ -38,7 +43,7 @@ install ( TARGETS ftdi1
|
||||
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
||||
)
|
||||
|
||||
-if ( STATICLIBS )
|
||||
+else()
|
||||
add_library(ftdi1-static STATIC ${c_sources})
|
||||
target_link_libraries(ftdi1-static ${LIBUSB_LIBRARIES})
|
||||
set_target_properties(ftdi1-static PROPERTIES OUTPUT_NAME "ftdi1")
|
||||
Reference in New Issue
Block a user