Skip to content

Commit a83721b

Browse files
committed
Merge pull request #71 from maxmind/greg/update-dist-docs
Update dist to include VS files and update docs
2 parents a5590f0 + 8cc92b7 commit a83721b

File tree

4 files changed

+22
-10
lines changed

4 files changed

+22
-10
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ compiler:
66

77
before_install:
88
- sudo apt-get update -qq
9-
- sudo apt-get install -qq cpanminus
10-
- sudo cpanm IPC::Run3
9+
- sudo apt-get install -qq libipc-run3-perl
1110

1211
before_script:
1312
- ./bootstrap

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SUBDIRS = \
1010
bin \
1111
t
1212

13-
EXTRA_DIST = doc t Changes.md LICENSE NOTICE README.md
13+
EXTRA_DIST = doc t Changes.md LICENSE NOTICE README.md projects/VS12 projects/VS12-tests
1414
dist-hook:
1515
dev-bin/make-man-pages.pl $(distdir)
1616
find $(distdir) -name '.git*' | xargs rm -fr

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ See http://dev.maxmind.com/ for more details about MaxMind's GeoIP2 products.
1515

1616
This library is licensed under the Apache License, Version 2.
1717

18-
# Installing from a Tarball
18+
# Building and installing from a Tarball
1919

2020
This code is known to work with GCC 4.4+ and clang 3.2+. It should also work
2121
on other compilers that supports C99, POSIX 2011.11, and the `-fms-extensions
@@ -44,7 +44,7 @@ can do this by running the following commands:
4444
$ sudo sh -c "echo /usr/local/lib >> /etc/ld.so.conf.d/local.conf"
4545
$ ldconfig
4646

47-
# Installing from the Git Repository
47+
# Building from the Git Repository
4848

4949
To install from Git, you will need automake, autoconf, and libtool installed
5050
in addition to make and a compiler.
@@ -59,6 +59,12 @@ You can clone this repository and build it by running:
5959
After cloning, run `./bootstrap` from the `libmaxminddb directory and then
6060
follow the instructions for installing from a tarball as described above.
6161

62+
# Building with Visual Studio 2013+
63+
64+
We provide a Visual Studio solution in `projects\VS12`. This can be used to
65+
build both the the library and the tests. Please see the `README.md` file in
66+
the same directory for more information.
67+
6268
# Installing via Homebrew (on OS X)
6369

6470
If you are on OS X and you have homebrew (see http://brew.sh/) you can install
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Project Notes
1+
# Project Notes
22

33
DO NOT modify project settings for each configuration and/or platform
44
on a per-project basis. Use property sheets to set shared configuration
55
properties. The rule of thumb - if you set same value for the same
66
property in more than one configuration or platform, you did it wrong.
77

8-
libmaxminddb.props
8+
## libmaxminddb.props
99

1010
This is the base property sheet for libMaxMindDB project. It contains
1111
settings that are shared between all configurations, such as compiler
@@ -15,21 +15,21 @@ In order to minimize the number of property sheet files, this propery
1515
sheet also contains settings for Win32 and Debug configurations, which
1616
are overridden by the x64 and Release property sheets described below.
1717

18-
libmaxminddb-release.props
18+
## libmaxminddb-release.props
1919

2020
This property sheet contains all Release settings and is shared between
2121
Win32 and x64 release builds. It must be located higher than the base
2222
property sheet in the property Manager window for each configuration
2323
where it's used (i.e. Release|Win32 and Release|x64).
2424

25-
libmaxminddb-x64.props
25+
## libmaxminddb-x64.props
2626

2727
This property sheet contains all x64 settings and is shared between all
2828
Debug and Release x64 configurations. It must be located higher than the
2929
base property sheet in the property Manager window for each configuration
3030
where it's used (i.e. Debug|x64 and Release|x64).
3131

32-
Adding More Projects
32+
## Adding More Projects
3333

3434
If you want to add more projects into this solution, follow the same logic
3535
and create their own property sheets. Do not use libmaxminddb property
@@ -50,3 +50,10 @@ each library file's property to assign them to the proper build confguration.
5050
Unused libraries will be shown with a traffic stop sign in each configuration.
5151
If you have a lot of projects, it might be easier to do this by editing .vcxproj
5252
and .vcxproj.filters in a text editor.
53+
54+
# Tests
55+
56+
To use the tests, you must download the `libtap` and `maxmind-db` submodules.
57+
This can be done by running `git submodule update --init --recursive` from
58+
the Git checkout. Each test source file has a separate project. Once compiled,
59+
the tests must be run from the base directory of the checkout.

0 commit comments

Comments
 (0)