]> granicus.if.org Git - icinga2/commitdiff
Build fixes for Windows.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 13 Apr 2012 09:45:09 +0000 (11:45 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 13 Apr 2012 09:45:09 +0000 (11:45 +0200)
20 files changed:
Makefile.am
configure.ac
icinga-app/Makefile.am [new file with mode: 0644]
icinga-app/icinga-app.vcxproj [new file with mode: 0644]
icinga-app/icinga.cpp [moved from icinga/icinga.cpp with 100% similarity]
icinga.sln
icinga/Makefile.am
icinga/endpoint.cpp [moved from libicinga/endpoint.cpp with 100% similarity]
icinga/endpoint.h [moved from libicinga/endpoint.h with 100% similarity]
icinga/endpointmanager.cpp [moved from libicinga/endpointmanager.cpp with 100% similarity]
icinga/endpointmanager.h [moved from libicinga/endpointmanager.h with 100% similarity]
icinga/i2-icinga.h [moved from libicinga/i2-icinga.h with 100% similarity]
icinga/icinga.vcxproj [moved from libicinga/libicinga.vcxproj with 97% similarity]
icinga/icingaapplication.cpp [moved from libicinga/icingaapplication.cpp with 100% similarity]
icinga/icingaapplication.h [moved from libicinga/icingaapplication.h with 100% similarity]
icinga/jsonrpcendpoint.cpp [moved from libicinga/jsonrpcendpoint.cpp with 100% similarity]
icinga/jsonrpcendpoint.h [moved from libicinga/jsonrpcendpoint.h with 100% similarity]
icinga/virtualendpoint.cpp [moved from libicinga/virtualendpoint.cpp with 100% similarity]
icinga/virtualendpoint.h [moved from libicinga/virtualendpoint.h with 100% similarity]
libicinga/Makefile.am [deleted file]

index 678cfc2f4b17a815499f64584a2722180a058807..71442f08edab31a29e89b42aa84ae90856d0a164 100644 (file)
@@ -5,8 +5,8 @@ SUBDIRS = ltdl \
        base \
        cJSON \
        jsonrpc \
-       libicinga \
-        icinga \
+       icinga \
+       icinga-app \
        configfilecomponent \
        configrpccomponent
 
index b4532d7233a5fdc283ecc20129f8d1225854e3a6..c811fe7ae35f4bc2027b0ecdf5560ecb3e7f7e0c 100644 (file)
@@ -46,8 +46,8 @@ base/Makefile
 cJSON/Makefile
 configfilecomponent/Makefile
 configrpccomponent/Makefile
-libicinga/Makefile
 icinga/Makefile
+icinga-app/Makefile
 jsonrpc/Makefile
 
 ])
diff --git a/icinga-app/Makefile.am b/icinga-app/Makefile.am
new file mode 100644 (file)
index 0000000..3f5640c
--- /dev/null
@@ -0,0 +1,21 @@
+## Process this file with automake to produce Makefile.in
+
+
+bin_PROGRAMS =  \
+       icinga
+
+icinga_SOURCES =  \
+       icinga.cpp
+
+icinga_CFLAGS = -DI2_ICINGALAUNCHER_BUILD
+
+icinga_CXXFLAGS = -DI2_ICINGALAUNCHER_BUILD -I${top_srcdir}/base \
+       -I${top_srcdir}/jsonrpc \
+       -I${top_srcdir}/cJSON \
+       -I${top_srcdir}/libicinga \
+       -I${top_srcdir}
+
+icinga_LDFLAGS = $(top_builddir)/libicinga/libicinga.la \
+       $(top_builddir)/jsonrpc/libjsonrpc.la \
+       $(top_builddir)/base/libbase.la \
+       ${top_builddir}/cJSON/libcJSON.la
diff --git a/icinga-app/icinga-app.vcxproj b/icinga-app/icinga-app.vcxproj
new file mode 100644 (file)
index 0000000..4d97243
--- /dev/null
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ItemGroup Label="ProjectConfigurations">
+    <ProjectConfiguration Include="Debug|Win32">
+      <Configuration>Debug</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|Win32">
+      <Configuration>Release</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+  </ItemGroup>
+  <ItemGroup>
+    <ClCompile Include="icinga.cpp" />
+  </ItemGroup>
+  <PropertyGroup Label="Globals">
+    <ProjectGuid>{BE412865-FEBA-4259-AD41-58950D1F5432}</ProjectGuid>
+    <Keyword>Win32Proj</Keyword>
+    <RootNamespace>icinga</RootNamespace>
+    <ProjectName>icinga-app</ProjectName>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <UseDebugLibraries>true</UseDebugLibraries>
+    <CharacterSet>MultiByte</CharacterSet>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <UseDebugLibraries>false</UseDebugLibraries>
+    <WholeProgramOptimization>true</WholeProgramOptimization>
+    <CharacterSet>MultiByte</CharacterSet>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <ImportGroup Label="ExtensionSettings">
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+  </ImportGroup>
+  <PropertyGroup Label="UserMacros" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <LinkIncremental>true</LinkIncremental>
+    <IncludePath>$(ProjectDir)\..\base;$(ProjectDir)\..\jsonrpc;$(ProjectDir)\..\cJSON;$(ProjectDir)\..\icinga;$(IncludePath)</IncludePath>
+    <LibraryPath>$(OutDir);$(LibraryPath)</LibraryPath>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <LinkIncremental>false</LinkIncremental>
+    <IncludePath>$(ProjectDir)\..\base;$(ProjectDir)\..\jsonrpc;$(ProjectDir)\..\cJSON;$(ProjectDir)\..\icinga;$(IncludePath)</IncludePath>
+    <LibraryPath>$(OutDir);$(LibraryPath)</LibraryPath>
+  </PropertyGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <ClCompile>
+      <PrecompiledHeader>
+      </PrecompiledHeader>
+      <WarningLevel>Level3</WarningLevel>
+      <Optimization>Disabled</Optimization>
+      <PreprocessorDefinitions>WIN32;I2_ICINGALAUNCHER_BUILD;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+    </ClCompile>
+    <Link>
+      <SubSystem>Console</SubSystem>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+      <AdditionalDependencies>base.lib;icinga.lib;%(AdditionalDependencies)</AdditionalDependencies>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <ClCompile>
+      <WarningLevel>Level3</WarningLevel>
+      <PrecompiledHeader>
+      </PrecompiledHeader>
+      <Optimization>MaxSpeed</Optimization>
+      <FunctionLevelLinking>true</FunctionLevelLinking>
+      <IntrinsicFunctions>true</IntrinsicFunctions>
+      <PreprocessorDefinitions>WIN32;I2_ICINGALAUNCHER_BUILD;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+    </ClCompile>
+    <Link>
+      <SubSystem>Console</SubSystem>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+      <EnableCOMDATFolding>true</EnableCOMDATFolding>
+      <OptimizeReferences>true</OptimizeReferences>
+      <AdditionalDependencies>base.lib;icinga.lib;%(AdditionalDependencies)</AdditionalDependencies>
+    </Link>
+  </ItemDefinitionGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+  <ImportGroup Label="ExtensionTargets">
+  </ImportGroup>
+</Project>
\ No newline at end of file
similarity index 100%
rename from icinga/icinga.cpp
rename to icinga-app/icinga.cpp
index 5fd6e76cc27f91a6857c97c60ff1f3a2112e655b..7c89d4477893e02eade305a7e56d7e504600750d 100644 (file)
@@ -1,6 +1,6 @@
 
 Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
+# Visual C++ Express 2010
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "base", "base\base.vcxproj", "{9C92DA90-FD53-43A9-A244-90F2E8AF9677}"
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "jsonrpc", "jsonrpc\jsonrpc.vcxproj", "{8DD52FAC-ECEE-48C2-B266-E7C47ED485F8}"
@@ -14,13 +14,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
                TODO.txt = TODO.txt
        EndProjectSection
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "icinga", "icinga\icinga.vcxproj", "{C1FC77E1-04A4-481B-A78B-2F7AF489C2F8}"
-       ProjectSection(ProjectDependencies) = postProject
-               {66BED474-C33F-48F9-90BA-BBCFEDC006B8} = {66BED474-C33F-48F9-90BA-BBCFEDC006B8}
-               {9C92DA90-FD53-43A9-A244-90F2E8AF9677} = {9C92DA90-FD53-43A9-A244-90F2E8AF9677}
-               {8DD52FAC-ECEE-48C2-B266-E7C47ED485F8} = {8DD52FAC-ECEE-48C2-B266-E7C47ED485F8}
-       EndProjectSection
-EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "configfilecomponent", "configfilecomponent\configfilecomponent.vcxproj", "{E58F1DA7-B723-412B-B2B7-7FF58E2A944E}"
        ProjectSection(ProjectDependencies) = postProject
                {66BED474-C33F-48F9-90BA-BBCFEDC006B8} = {66BED474-C33F-48F9-90BA-BBCFEDC006B8}
@@ -39,6 +32,10 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "configrpccomponent", "confi
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cJSON", "cJSON\cJSON.vcxproj", "{66BED474-C33F-48F9-90BA-BBCFEDC006B8}"
 EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "icinga", "icinga\icinga.vcxproj", "{C1FC77E1-04A4-481B-A78B-2F7AF489C2F8}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "icinga-app", "icinga-app\icinga-app.vcxproj", "{BE412865-FEBA-4259-AD41-58950D1F5432}"
+EndProject
 Global
        GlobalSection(SolutionConfigurationPlatforms) = preSolution
                Debug|Win32 = Debug|Win32
@@ -53,10 +50,6 @@ Global
                {8DD52FAC-ECEE-48C2-B266-E7C47ED485F8}.Debug|Win32.Build.0 = Debug|Win32
                {8DD52FAC-ECEE-48C2-B266-E7C47ED485F8}.Release|Win32.ActiveCfg = Release|Win32
                {8DD52FAC-ECEE-48C2-B266-E7C47ED485F8}.Release|Win32.Build.0 = Release|Win32
-               {C1FC77E1-04A4-481B-A78B-2F7AF489C2F8}.Debug|Win32.ActiveCfg = Debug|Win32
-               {C1FC77E1-04A4-481B-A78B-2F7AF489C2F8}.Debug|Win32.Build.0 = Debug|Win32
-               {C1FC77E1-04A4-481B-A78B-2F7AF489C2F8}.Release|Win32.ActiveCfg = Release|Win32
-               {C1FC77E1-04A4-481B-A78B-2F7AF489C2F8}.Release|Win32.Build.0 = Release|Win32
                {E58F1DA7-B723-412B-B2B7-7FF58E2A944E}.Debug|Win32.ActiveCfg = Debug|Win32
                {E58F1DA7-B723-412B-B2B7-7FF58E2A944E}.Debug|Win32.Build.0 = Debug|Win32
                {E58F1DA7-B723-412B-B2B7-7FF58E2A944E}.Release|Win32.ActiveCfg = Release|Win32
@@ -69,6 +62,14 @@ Global
                {66BED474-C33F-48F9-90BA-BBCFEDC006B8}.Debug|Win32.Build.0 = Debug|Win32
                {66BED474-C33F-48F9-90BA-BBCFEDC006B8}.Release|Win32.ActiveCfg = Release|Win32
                {66BED474-C33F-48F9-90BA-BBCFEDC006B8}.Release|Win32.Build.0 = Release|Win32
+               {C1FC77E1-04A4-481B-A78B-2F7AF489C2F8}.Debug|Win32.ActiveCfg = Debug|Win32
+               {C1FC77E1-04A4-481B-A78B-2F7AF489C2F8}.Debug|Win32.Build.0 = Debug|Win32
+               {C1FC77E1-04A4-481B-A78B-2F7AF489C2F8}.Release|Win32.ActiveCfg = Release|Win32
+               {C1FC77E1-04A4-481B-A78B-2F7AF489C2F8}.Release|Win32.Build.0 = Release|Win32
+               {BE412865-FEBA-4259-AD41-58950D1F5432}.Debug|Win32.ActiveCfg = Debug|Win32
+               {BE412865-FEBA-4259-AD41-58950D1F5432}.Debug|Win32.Build.0 = Debug|Win32
+               {BE412865-FEBA-4259-AD41-58950D1F5432}.Release|Win32.ActiveCfg = Release|Win32
+               {BE412865-FEBA-4259-AD41-58950D1F5432}.Release|Win32.Build.0 = Release|Win32
        EndGlobalSection
        GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE
index 3f5640cc7efed42eaf288381f56e9b8bed7d6386..f6dc165540fb7704e75c050792c9d729ff10a23e 100644 (file)
@@ -1,21 +1,29 @@
 ## Process this file with automake to produce Makefile.in
 
 
-bin_PROGRAMS =  \
-       icinga
+pkglib_LTLIBRARIES =  \
+       libicinga.la
 
-icinga_SOURCES =  \
-       icinga.cpp
+libicinga_la_SOURCES =  \
+       endpoint.cpp \
+       endpoint.h \
+       endpointmanager.cpp \
+       endpointmanager.h \
+       icingaapplication.cpp \
+       icingaapplication.h \
+       i2-icinga.h \
+       jsonrpcendpoint.cpp \
+       jsonrpcendpoint.h \
+       virtualendpoint.cpp \
+       virtualendpoint.h
 
-icinga_CFLAGS = -DI2_ICINGALAUNCHER_BUILD
+libicinga_la_CFLAGS = -DI2_ICINGA_BUILD
 
-icinga_CXXFLAGS = -DI2_ICINGALAUNCHER_BUILD -I${top_srcdir}/base \
+libicinga_la_CXXFLAGS = -DI2_ICINGA_BUILD -I${top_srcdir}/base \
        -I${top_srcdir}/jsonrpc \
        -I${top_srcdir}/cJSON \
-       -I${top_srcdir}/libicinga \
        -I${top_srcdir}
 
-icinga_LDFLAGS = $(top_builddir)/libicinga/libicinga.la \
-       $(top_builddir)/jsonrpc/libjsonrpc.la \
+libicinga_la_LDFLAGS = $(top_builddir)/jsonrpc/libjsonrpc.la \
        $(top_builddir)/base/libbase.la \
        ${top_builddir}/cJSON/libcJSON.la
similarity index 100%
rename from libicinga/endpoint.cpp
rename to icinga/endpoint.cpp
similarity index 100%
rename from libicinga/endpoint.h
rename to icinga/endpoint.h
similarity index 100%
rename from libicinga/i2-icinga.h
rename to icinga/i2-icinga.h
similarity index 97%
rename from libicinga/libicinga.vcxproj
rename to icinga/icinga.vcxproj
index f4a0a5a09f5d714894af98517a577c60aef89cf3..5e075a9bdaf307a41314b24068c48f32d951d572 100644 (file)
       <Platform>Win32</Platform>
     </ProjectConfiguration>
   </ItemGroup>
+  <ItemGroup>
+    <ClCompile Include="endpoint.cpp" />
+    <ClCompile Include="endpointmanager.cpp" />
+    <ClCompile Include="icingaapplication.cpp" />
+    <ClCompile Include="jsonrpcendpoint.cpp" />
+    <ClCompile Include="virtualendpoint.cpp" />
+  </ItemGroup>
+  <ItemGroup>
+    <ClInclude Include="endpoint.h" />
+    <ClInclude Include="endpointmanager.h" />
+    <ClInclude Include="i2-icinga.h" />
+    <ClInclude Include="icingaapplication.h" />
+    <ClInclude Include="jsonrpcendpoint.h" />
+    <ClInclude Include="virtualendpoint.h" />
+  </ItemGroup>
   <PropertyGroup Label="Globals">
     <ProjectGuid>{C1FC77E1-04A4-481B-A78B-2F7AF489C2F8}</ProjectGuid>
     <Keyword>Win32Proj</Keyword>
   </PropertyGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
     <UseDebugLibraries>true</UseDebugLibraries>
     <CharacterSet>MultiByte</CharacterSet>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
     <UseDebugLibraries>false</UseDebugLibraries>
     <WholeProgramOptimization>true</WholeProgramOptimization>
     <CharacterSet>MultiByte</CharacterSet>
       <AdditionalDependencies>base.lib;jsonrpc.lib;cJSON.lib;%(AdditionalDependencies)</AdditionalDependencies>
     </Link>
   </ItemDefinitionGroup>
-  <ItemGroup>
-    <ClCompile Include="endpoint.cpp" />
-    <ClCompile Include="endpointmanager.cpp" />
-    <ClCompile Include="icingaapplication.cpp" />
-    <ClCompile Include="jsonrpcendpoint.cpp" />
-    <ClCompile Include="virtualendpoint.cpp" />
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="endpoint.h" />
-    <ClInclude Include="endpointmanager.h" />
-    <ClInclude Include="icingaapplication.h" />
-    <ClInclude Include="i2-icinga.h" />
-    <ClInclude Include="jsonrpcendpoint.h" />
-    <ClInclude Include="virtualendpoint.h" />
-  </ItemGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
   <ImportGroup Label="ExtensionTargets">
   </ImportGroup>
diff --git a/libicinga/Makefile.am b/libicinga/Makefile.am
deleted file mode 100644 (file)
index f6dc165..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-
-pkglib_LTLIBRARIES =  \
-       libicinga.la
-
-libicinga_la_SOURCES =  \
-       endpoint.cpp \
-       endpoint.h \
-       endpointmanager.cpp \
-       endpointmanager.h \
-       icingaapplication.cpp \
-       icingaapplication.h \
-       i2-icinga.h \
-       jsonrpcendpoint.cpp \
-       jsonrpcendpoint.h \
-       virtualendpoint.cpp \
-       virtualendpoint.h
-
-libicinga_la_CFLAGS = -DI2_ICINGA_BUILD
-
-libicinga_la_CXXFLAGS = -DI2_ICINGA_BUILD -I${top_srcdir}/base \
-       -I${top_srcdir}/jsonrpc \
-       -I${top_srcdir}/cJSON \
-       -I${top_srcdir}
-
-libicinga_la_LDFLAGS = $(top_builddir)/jsonrpc/libjsonrpc.la \
-       $(top_builddir)/base/libbase.la \
-       ${top_builddir}/cJSON/libcJSON.la