Create a directory for yours dependencies. ex : C:\Working\Libs
Configure your workspace directories :
Download this file in your dependencies directory :
https://sourceforge.net/p/gdeps/code/HEAD/tree/trunk/Config.cfg
You have two parts :
* One to set your worspace tools
* The other one the directories
Replace your tools directories.
Example:
~~~~
:::cfg
[vc2015_express_32]
dir = C:\Program Files (x86)\MSBuild\15.0\Bin
[cmake32]
exepath="C:\Program Files (x86)\CMake 2.8\bin\cmake.exe"
[svn-32]
exepath="C:\Program Files (x86)\TortoiseSVN\bin\svn.exe"
~~~~
Erase the tools thats you don't have.
Example:
You have only or you just want to use Codeblocks and Visual2008Express, erase the followings compilers and ides.
Before edition :
~~~~
:::cfg
[svn]
type=Svn
name=svn_dir
[git]
type=Git
name=git_dir
[hg]
type=Mercurial
name=hg_dir
[cmake]
type=CMake
name=cmake_dir
[compiler_0]
type=Mingw_32
name=mingw_32
[compiler_1]
type=VC120_32
name=vc120_32
[compiler_2]
type=VC90_32
name=vc90_32
[compiler_3]
type=VC110_32
name=vc110_32
[compiler_4]
type=VC140_32
name=vc140_32
[compiler_5]
type=Mingw_64
name=mingw_64
[compiler_6]
type=VC120_64
name=vc120_64
[compiler_7]
type=VC110_64
name=vc110_64
[compiler_8]
type=VC140_64
name=vc140_64
[codeblocks]
type=CodeBlocks
name=cb_32
compiler_alias_0=compiler_0
compiler_alias_1=compiler_5
[ide_0]
type=CodeBlocks
name=cb_32
compiler_alias_0=compiler_0
compiler_alias_1=compiler_5
[ide_1]
type=Visual2008Express
name=vc2008_express_32
compiler_alias_0=compiler_2
[ide_2]
type=Visual2013Express
name=vc2013_express_32
compiler_alias_0=compiler_1
compiler_alias_1=compiler_6
[ide_3]
type=Visual2012Express
name=vc2012_express_32
compiler_alias_0=compiler_3
compiler_alias_1=compiler_7
[ide_4]
type=Visual2013Express
name=vc2015_express_32
compiler_alias_0=compiler_4
compiler_alias_1=compiler_8
~~~~
After edition :
~~~~
:::cfg
[svn]
type=Svn
name=svn_dir
[git]
type=Git
name=git_dir
[hg]
type=Mercurial
name=hg_dir
[cmake]
type=CMake
name=cmake_dir
[compiler_0]
type=Mingw_32
name=mingw_32
[compiler_1]
type=VC90_32
name=vc90_32
[compiler_2]
type=Mingw_64
name=mingw_64
[codeblocks]
type=CodeBlocks
name=cb_32
compiler_alias_0=compiler_0
compiler_alias_1=compiler_2
[ide_0]
type=CodeBlocks
name=cb_32
compiler_alias_0=compiler_0
compiler_alias_1=compiler_2
[ide_1]
type=Visual2008Express
name=vc2008_express_32
compiler_alias_0=compiler_1
~~~~
Install GDeps https://sourceforge.net/projects/gdeps/
May be you have to install python3 https://www.python.org/
Download the GDeps script.
Copy the file in C:\Working\Libs\ProjectName\
The hierarchy folder :
C:\Working\Libs
|
°-- Config.cfg
|
°--.\ProjectName\ProjectName.py
Execute ProjectName.py
All the generate files will be in C:\Working\Libs\ProjectName\
#!python3
import os;
scriptdir = os.path.dirname( os.path.abspath( __file__ ) )
params = {}
params["config_filepath"] = scriptdir + "\\..\\Config.cfg"
params["folderdir"] = scriptdir + "\\zlib"
params["repo_alias"] = "git"
params["repo_path"] = "https://github.com/madler/zlib.git"
params["maker_alias"] = "cmake"
params["maker_solutionname"] = "zlib"
if( __name__ == '__main__' ):
import gdeps
gdeps.Projects(params).go()
input( "Press any key to quit" )