summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2017-08-01 14:41:47 +0900
committerGitHub <noreply@github.com>2017-08-01 14:41:47 +0900
commitb3695ee3256d371219a00e39cdd7e5e33a4a0214 (patch)
treead46d3f16f59de5b85c8e395dd4f6eb4bad9acd2
parent3faeb50cae8fe1384a3cad0647c9c7d07de6dfa1 (diff)
parenta2a66f611c1c5ac02d96df88352b2ce11183cdcd (diff)
downloadglog-b3695ee3256d371219a00e39cdd7e5e33a4a0214.tar.gz
glog-b3695ee3256d371219a00e39cdd7e5e33a4a0214.tar.bz2
glog-b3695ee3256d371219a00e39cdd7e5e33a4a0214.zip
Merge pull request #218 from andschwa/remove-sln
Update Windows docs
-rw-r--r--.gitignore7
-rw-r--r--README.windows37
-rwxr-xr-xgoogle-glog.sln44
3 files changed, 21 insertions, 67 deletions
diff --git a/.gitignore b/.gitignore
index cf890f6..0b99cca 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,10 @@ autom4te.cache
glog-*.tar.gz
packages/rpm-unknown
packages/debian-*
+CMakeCache.txt
+CMakeFiles/
+*.cmake
+config.h
+*.sln
+*.vcxproj
+*.filters \ No newline at end of file
diff --git a/README.windows b/README.windows
index dbeef32..ea6ccc2 100644
--- a/README.windows
+++ b/README.windows
@@ -1,26 +1,17 @@
-This project has begun being ported to Windows. A working solution
-file exists in this directory:
- google-glog.sln
+This project has been ported to Windows, including stack tracing, signal
+handling, and unit tests.
-You can load this solution file into VC++ 9.0 (Visual Studio
-2008). You may also be able to use this solution file with older
-Visual Studios by converting the solution file.
+A Visual Studio solution file is explicitly not provided because it is not
+maintainable. Instead, a CMake build system exists to generate the correct
+solution for your version of Visual Studio.
-Note that stack tracing and some unittests are not ported
-yet.
+In short,
+ (1) Install CMake from: https://cmake.org/download/
+ (2) With CMake on your PATH, run `cmake .` to generate the build files
+ (3) Either use `cmake --build`, or open the generated solution
-You can also link glog code in statically -- see the example project
-libglog_static and logging_unittest_static, which does this. For this
-to work, you'll need to add "/D GOOGLE_GLOG_DLL_DECL=" to the compile
-line of every glog's .cc file.
-
-I have little experience with Windows programming, so there may be
-better ways to set this up than I've done! If you run across any
-problems, please post to the google-glog Google Group, or report
-them on the google-glog Google Code site:
- http://groups.google.com/group/google-glog
- https://github.com/google/glog/issues
-
--- Shinichiro Hamaji
-
-Last modified: 23 January 2009
+CMake provides different generators, and by default will pick the most relevant
+one to your environment. If you need a specific version of Visual Studio, use
+`cmake . -G <generator-name>`, and see `cmake --help` for the available
+generators. Also see `-T <toolset-name>`, which can used to request the native
+x64 toolchain with `-T host=x64`. \ No newline at end of file
diff --git a/google-glog.sln b/google-glog.sln
deleted file mode 100755
index a34ec72..0000000
--- a/google-glog.sln
+++ /dev/null
@@ -1,44 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual C++ Express 2008
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libglog", "vsprojects\libglog\libglog.vcproj", "{34BD04BD-BC1D-4BFC-AAFC-ED02D9E960F1}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "logging_unittest", "vsprojects\logging_unittest\logging_unittest.vcproj", "{DD0690AA-5E09-46B5-83FD-4B28604CABA8}"
- ProjectSection(ProjectDependencies) = postProject
- {34BD04BD-BC1D-4BFC-AAFC-ED02D9E960F1} = {34BD04BD-BC1D-4BFC-AAFC-ED02D9E960F1}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libglog_static", "vsprojects\libglog_static\libglog_static.vcproj", "{772C2111-BBBF-49E6-B912-198A7F7A88E5}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "logging_unittest_static", "vsprojects\logging_unittest_static\logging_unittest_static.vcproj", "{9B239B45-84A9-4E06-AC46-8E220CD43974}"
- ProjectSection(ProjectDependencies) = postProject
- {772C2111-BBBF-49E6-B912-198A7F7A88E5} = {772C2111-BBBF-49E6-B912-198A7F7A88E5}
- EndProjectSection
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Win32 = Debug|Win32
- Release|Win32 = Release|Win32
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {34BD04BD-BC1D-4BFC-AAFC-ED02D9E960F1}.Debug|Win32.ActiveCfg = Debug|Win32
- {34BD04BD-BC1D-4BFC-AAFC-ED02D9E960F1}.Debug|Win32.Build.0 = Debug|Win32
- {34BD04BD-BC1D-4BFC-AAFC-ED02D9E960F1}.Release|Win32.ActiveCfg = Release|Win32
- {34BD04BD-BC1D-4BFC-AAFC-ED02D9E960F1}.Release|Win32.Build.0 = Release|Win32
- {DD0690AA-5E09-46B5-83FD-4B28604CABA8}.Debug|Win32.ActiveCfg = Debug|Win32
- {DD0690AA-5E09-46B5-83FD-4B28604CABA8}.Debug|Win32.Build.0 = Debug|Win32
- {DD0690AA-5E09-46B5-83FD-4B28604CABA8}.Release|Win32.ActiveCfg = Release|Win32
- {DD0690AA-5E09-46B5-83FD-4B28604CABA8}.Release|Win32.Build.0 = Release|Win32
- {772C2111-BBBF-49E6-B912-198A7F7A88E5}.Debug|Win32.ActiveCfg = Debug|Win32
- {772C2111-BBBF-49E6-B912-198A7F7A88E5}.Debug|Win32.Build.0 = Debug|Win32
- {772C2111-BBBF-49E6-B912-198A7F7A88E5}.Release|Win32.ActiveCfg = Release|Win32
- {772C2111-BBBF-49E6-B912-198A7F7A88E5}.Release|Win32.Build.0 = Release|Win32
- {9B239B45-84A9-4E06-AC46-8E220CD43974}.Debug|Win32.ActiveCfg = Debug|Win32
- {9B239B45-84A9-4E06-AC46-8E220CD43974}.Debug|Win32.Build.0 = Debug|Win32
- {9B239B45-84A9-4E06-AC46-8E220CD43974}.Release|Win32.ActiveCfg = Release|Win32
- {9B239B45-84A9-4E06-AC46-8E220CD43974}.Release|Win32.Build.0 = Release|Win32
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal