You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-19Lines changed: 7 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,21 +2,11 @@
2
2
3
3
Autowiring is an [inversion-of-control](http://en.wikipedia.org/wiki/Inversion_of_control) framework for C++11. It provides a declarative way to manage resources through [dependency injection](http://en.wikipedia.org/wiki/Dependency_injection). Instead of explicitly instantiating dependencies, simply declare what you need and Autowiring will manage object creation and wiring.
While Autowiring is written using C++11 features, it supports linking the non-C++11 STL. The `C++11/` directory provides [boost](http://www.boost.org/) shims for missing C++11 library features.
7
+
Autowiring project structure is specified with [CMake](http://www.cmake.org/). Simply point CMake to the root project directory and generate your desired project file. While Autowiring is written using C++11 features, it supports linking the non-C++11 STL. The `C++11/` directory provides [boost](http://www.boost.org/) shims for missing C++11 library features.
8
8
9
-
Supported Compilers:
10
-
* Clang
11
-
* GCC
12
-
* VS2012+
13
-
14
-
# Build and Install Locally
15
-
16
-
Autowiring project structure is specified with [CMake](http://www.cmake.org/). Simply point CMake to the root project directory and generate your desired project file.
17
-
18
-
Mac
19
-
----
9
+
### Mac
20
10
21
11
Mac dependencies are installed with [port](http://guide.macports.org/) or [brew](http://brew.sh/). If you have port installed, this will build the project:
22
12
@@ -28,8 +18,7 @@ Mac dependencies are installed with [port](http://guide.macports.org/) or [brew]
28
18
make test
29
19
sudo make install
30
20
31
-
Unix
32
-
----
21
+
### Unix
33
22
34
23
The commands for Unix are different depending on what package manager you're using. Ubuntu's package manager is apt-get, OpenSUSE uses zypper, and
35
24
CentOS systems use yum. The major apparent difference to the user will be that the package to install has a different name. For Ubuntu, do this:
@@ -42,8 +31,7 @@ CentOS systems use yum. The major apparent difference to the user will be that
42
31
make test
43
32
sudo make install
44
33
45
-
Windows
46
-
----
34
+
### Windows
47
35
48
36
Unfortunately, Windows doesn't have any sort of nifty package manager, and this requires that you download and install the boost dependency by hand. Once
49
37
you've followed the instructions for installing boost as indicated [here](http://www.boost.org/doc/libs/1_55_0/doc/html/bbv2/installation.html) you will
@@ -59,11 +47,11 @@ At this point, you'll have a solution file in your root directory called "Autowi
59
47
target then Autowiring will be installed on your system. As with the other platforms, CMake will be able to find autowiring when it's installed this way
60
48
via the [find_package](http://www.cmake.org/cmake/help/v3.0/command/find_package.html) command.
61
49
62
-
# Build the installer
50
+
# Install
63
51
64
52
Autowiring uses CPack, which knows how to use rpm/deb/wix/dragndrop, and will target the correct version depending on which system you're on. To build
65
53
the installer on Windows, you must first download the [wix toolset](http://wixtoolset.org/). Other CMake installations on the current system will be able
66
54
to find Autowiring once the package is installed by this means.
67
55
68
56
Generally speaking, there is not really much reason to build an installer yourself unless you're testing out the bleeding edge. The
69
-
[releases page](https://github.com/leapmotion/autowiring/releases) lists the officially supported Autowiring releases.
57
+
[releases page](https://github.com/leapmotion/autowiring/releases) lists the officially supported Autowiring releases.
0 commit comments