From 31531e88ab2358934e7f5dcdd14e1d5dd662627c Mon Sep 17 00:00:00 2001 From: Markus Freutsmiedl Date: Mon, 14 Apr 2014 10:22:53 +0200 Subject: [PATCH] Project settings in project files reworked. Release build is possible now. Information about dbus-1.dll added in README. --- CommonAPI-DBus.vcxproj | 10 ++++++---- README | 2 +- UnitTests.vcxproj | 14 ++++++-------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/CommonAPI-DBus.vcxproj b/CommonAPI-DBus.vcxproj index 3176711..8fb18c3 100644 --- a/CommonAPI-DBus.vcxproj +++ b/CommonAPI-DBus.vcxproj @@ -22,7 +22,7 @@ MultiByte - Application + StaticLibrary false v120 true @@ -51,15 +51,14 @@ OldStyle 4996;%(DisableSpecificWarnings) $(COMMONAPI_DIR)\src;$(DBUS_BUILD_DIR);$(DBUS_DIR);$(SolutionDir)\src;%(AdditionalIncludeDirectories) + false true $(ProgramFiles)\dbus\bin\;%(AdditionalLibraryDirectories) /VERBOSE %(AdditionalOptions) - - %(AdditionalDependencies) - + @@ -69,6 +68,9 @@ true true $(COMMONAPI_DIR)\src;$(DBUS_BUILD_DIR);$(DBUS_DIR);$(SolutionDir)\src;%(AdditionalIncludeDirectories) + WIN32;COMMONAPI_INTERNAL_COMPILATION;COMMONAPI_DBUS_VERSION_MAJOR=2;COMMONAPI_DBUS_VERSION_MINOR=1;%(PreprocessorDefinitions) + OldStyle + 4996;%(DisableSpecificWarnings) true diff --git a/README b/README index bc5fb08..e263841 100644 --- a/README +++ b/README @@ -112,7 +112,7 @@ DBUS_DIR: directory containing the patched DBus sources e.g. \db DBUS_BUILD_DIR: directory containing the build DBus e.g. \dbus-1.8.0\dbus-build-dir COMMONAPI_DIR: directory containing the CommonAPI e.g. \ascgit017.CommonAPI -To run the tests, you need to add the location of your built dbus-1d.dll to the PATH environment variable. +To run the tests, you need to add the location of your built dbus-1d.dll or dbus-1.dll (depending on Debug or Release built) to the PATH environment variable. Please note: For building the tests the environment variable GTEST must be set (see README of CommonAPI). Furthermore the files DemoPoll.h and DemoPoll.cpp are needed (part of gnulib). diff --git a/UnitTests.vcxproj b/UnitTests.vcxproj index 5c5ad0e..f788db5 100644 --- a/UnitTests.vcxproj +++ b/UnitTests.vcxproj @@ -137,7 +137,7 @@ false - DynamicLibrary + Application false v120 true @@ -158,9 +158,7 @@ true $(ProjectName)d - - true - + NotUsing @@ -171,6 +169,7 @@ true true OldStyle + false Console @@ -182,17 +181,16 @@ Level3 - Use + NotUsing MaxSpeed true true $(DBUS_DIR);$(DBUS_BUILD_DIR);$(SolutionDir)\src;$(SolutionDir)\src\test;$(COMMONAPI_DIR)\src;$(GTEST)\include;$(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;%(PreprocessorDefinitions) + ENABLE_ATTRIBUTE_EXTENSIONS;COMMONAPI_INTERNAL_COMPILATION;WIN32;NDEBUG;%(PreprocessorDefinitions) true - Windows - true + Console true true $(DBUS_BUILD_DIR)\bin\Release;$(GTEST)\msvc\gtest-md\Release;$(COMMONAPI_DIR)\Release;$(SolutionDir)\Release;$(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories) -- 2.7.4