Skip to content

msvc-pkg is a project that provides you with step-by-step instructions for building your own custom windows packages, entirely from source code, using MSVC or MSVC-like toolset.

License

Notifications You must be signed in to change notification settings

jiangjianshan/msvc-pkg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

msvc-pkg

msvc-pkg helps you to use MSVC or MSVC-like toolset to do native build on Windows for a lots of open source libraries.

Why?

There are already some good projects exist, e.g. vcpkg, MXE, MINGW-packages and so on. Why I create this project?

  • msvc-pkg has made an exactly native win32/win64 build for supported free open source libraries.
  • msvc-pkg has implemented the missing features of libtool which can't set the naming style of static and shared libraries.
  • msvc-pkg has reduced the difficulty to build GNU Autotools base projects, e.g. gmp, ncurses and so on.
  • msvc-pkg has made some patches for compile, ar-lib and so on wrapper from GNU, so that can build more GNU projects.
  • msvc-pkg has made color highlight for warnings or errors during configure and build procedure.
  • msvc-pkg can build library with its dependencies together.

Dependencies

Quick Start

First, download msvc-pkg from Github in your local location

git clone https://github.com/jiangjianshan/msvc-pkg.git

If you don't install those Dependencies above, you can run

bootstrap.bat

on the command prompt, bootstrap.bat will check and install them automatically except for some of them only ask you to install the newest version

How to use

Example: get help of msvc-pkg

On Cygwin terminal, type

./mpt --help

Example: build all available libraries

# build all available libraries on default host architecture, and install them
# on default prefix
./mpt
# build and install all available libraries on x86 architecture, and install them
# on default prefix
./mpt --arch x86
# build all available libraries on default host architecture and install them to D:\mswin64
./mpt --prefix "D:\mswin64"
# build all available libraries on default host architecture, and install them
# on default prefix except for llvm-project and lua have their own install prefix
./mpt --llvm-project-prefix "D:\LLVM" --lua-prefix "D:\Lua"
# build all available libraries on default host architecture, and install them
# on D:\mswin64 except for llvm-project and lua have their own install prefix
./mpt --llvm-project-prefix "D:\LLVM" --lua-prefix "D:\Lua" --prefix "D:\mswin64"

Example: build some but not all available libraries

# build gmp on default host architecture and install it to default prefix
./mpt gmp
# build gmp and ncurses on default host architecture and install them to default prefix
./mpt gmp ncurses
# build gmp and ncurses on default architecture and install them to D:\mswin64
./mpt --prefix "D:\mswin64" gmp ncurses

Contributors

This project follows the all-contributors specification. Contributions of any kind are welcome!

About

msvc-pkg is a project that provides you with step-by-step instructions for building your own custom windows packages, entirely from source code, using MSVC or MSVC-like toolset.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published