norman784 / libimobiledevice-node

A cross-platform software protocol library and tools to communicate with iOS® devices natively.
MIT License
25 stars 8 forks source link

Resolve #3 add windows compatibilty and add new pair device feature #5

Closed didix21 closed 5 years ago

didix21 commented 5 years ago

Modified package.json for install in windows

Deleted some added commands for compile in windows

Improved install.sh and package.json for installing in windows

Defines macro STDIN_FILENO for Windows compilation

Doing this solve the folliwng error when executing node-gyp in windows: libimobiledevice-node\src\idevice\backup2.c(12): fatal error C1083: File can not be opened or can not be included: 'unistd.h': No such file or directory

Adds new dirent.h in commons folder

This library will replace POSIX dirent.h file when package compiles in windows

Add ldflags and link settings

Add conditions in binding.gyp file

Now node-gyp will take into account in wich OS is doing the binding

Adds a new test

Renames the target name in binding.gyp file

Changes libimobiledevice source

Adds install.cmd for compiling libimobiledevice on windows

Adds postinstall.cmd, copies al dll needed by imobiledevice.node file

Add some conditionals

Adds preinstall.cmd

Add some changes for compiling on winodws

Adds preinstall.js and install.js, for cross-platform installing

Executes window commands sequentially

Adds and implements shell.js package

Delete some comments from install.js file

Adds pair binding to libimobiledevice

Adds 'com.apple.fmip' domain

Add vcpkg getopt installation and idevicepair compilation

Modify pair source files, includes the original utils and userpref files

Some of the defines have been harcoded on binding file: MAC:

Add utils and userpref

Adds necessary files from libimobiledevice common and src for compiling on windows

Update Readme.md with windows requiriments

Add new directories on gitignore file

Delete vcpkg, liblist, libusbmuxd and libimobiledevice after compiling them