diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-01-28 12:21:57 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-01-28 12:21:57 +0100 |
commit | a8fd6b51e96999bea19904f183ccb2bf847c5e4f (patch) | |
tree | 78d91b2a11e287bb96f8cd7e7c5cc75fecde7077 /libmspub | |
parent | add boost dependency and header-finding hackery to libmspub (diff) | |
download | core-a8fd6b51e96999bea19904f183ccb2bf847c5e4f.tar.gz core-a8fd6b51e96999bea19904f183ccb2bf847c5e4f.zip |
Use the BOOST_INCLUDE_DIR variable in Windows build
Change-Id: I2f86aea9177f2f3d24aea40c47d530fd7d96d21c
Diffstat (limited to 'libmspub')
-rw-r--r-- | libmspub/ExternalProject_libmspub.mk | 2 | ||||
-rw-r--r-- | libmspub/UnpackedTarball_mspub.mk | 6 | ||||
-rw-r--r-- | libmspub/libmspub-0.0.4-boost.patch | 42 |
3 files changed, 49 insertions, 1 deletions
diff --git a/libmspub/ExternalProject_libmspub.mk b/libmspub/ExternalProject_libmspub.mk index ecd4610a2ce3..27349afc9deb 100644 --- a/libmspub/ExternalProject_libmspub.mk +++ b/libmspub/ExternalProject_libmspub.mk @@ -71,7 +71,7 @@ $(call gb_ExternalProject_get_state_target,libmspub,build) : --without-docs \ --disable-debug \ --disable-werror \ - $(if $(filter NO,$(SYSTEM_BOOST)),CXXFLAGS=-I$(call gb_UnpackedTarball_get_dir,boost)) \ + $(if $(filter NO,$(SYSTEM_BOOST)),CXXFLAGS=-I$(call gb_UnpackedTarball_get_dir,boost)) \ $(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \ && (cd $(EXTERNAL_WORKDIR)/src/lib && $(MAKE)) \ && touch $@ diff --git a/libmspub/UnpackedTarball_mspub.mk b/libmspub/UnpackedTarball_mspub.mk index 51931694422e..92552bdd6887 100644 --- a/libmspub/UnpackedTarball_mspub.mk +++ b/libmspub/UnpackedTarball_mspub.mk @@ -11,4 +11,10 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,mspub)) $(eval $(call gb_UnpackedTarball_set_tarball,mspub,$(MSPUB_TARBALL))) +$(eval $(call gb_UnpackedTarball_set_patchlevel,mspub,1)) + +$(eval $(call gb_UnpackedTarball_add_patches,mspub,\ + libmspub/libmspub-0.0.4-boost.patch \ +)) + # vim: set noet sw=4 ts=4: diff --git a/libmspub/libmspub-0.0.4-boost.patch b/libmspub/libmspub-0.0.4-boost.patch new file mode 100644 index 000000000000..16cde8b4fb7c --- /dev/null +++ b/libmspub/libmspub-0.0.4-boost.patch @@ -0,0 +1,42 @@ +--- a/build/win32/libmspub.vcproj ++++ b/build/win32/libmspub.vcproj +@@ -42,7 +42,7 @@ + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" +- AdditionalIncludeDirectories="$(LIBWPD_INCLUDE_DIR),$(LIBWPG_INCLUDE_DIR),$(ZLIB_INCLUDE_DIR),$(ICU_INCLUDE_DIR)" ++ AdditionalIncludeDirectories="$(LIBWPD_INCLUDE_DIR),$(LIBWPG_INCLUDE_DIR),$(ZLIB_INCLUDE_DIR),$(BOOST_INCLUDE_DIR),$(ICU_INCLUDE_DIR)" + PreprocessorDefinitions="NDEBUG;WIN32;_LIB;_CRT_SECURE_NO_WARNINGS" + StringPooling="true" + RuntimeLibrary="2" +@@ -116,7 +116,7 @@ + <Tool + Name="VCCLCompilerTool" + Optimization="0" +- AdditionalIncludeDirectories="$(LIBWPD_INCLUDE_DIR),$(LIBWPG_INCLUDE_DIR),$(ZLIB_INCLUDE_DIR),$(ICU_INCLUDE_DIR)" ++ AdditionalIncludeDirectories="$(LIBWPD_INCLUDE_DIR),$(LIBWPG_INCLUDE_DIR),$(ZLIB_INCLUDE_DIR),$(BOOST_INCLUDE_DIR),$(ICU_INCLUDE_DIR)" + PreprocessorDefinitions="_DEBUG;DEBUG;WIN32;_LIB;_CRT_SECURE_NO_WARNINGS" + BasicRuntimeChecks="3" + RuntimeLibrary="3" +diff --git a/build/win32/libmspub.vcxproj b/build/win32/libmspub.vcxproj +index 1a3bae4..c233331 100644 +--- a/build/win32/libmspub.vcxproj ++++ b/build/win32/libmspub.vcxproj +@@ -102,7 +102,7 @@ + <ClCompile> + <Optimization>MaxSpeed</Optimization> + <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> +- <AdditionalIncludeDirectories>$(LIBWPD_INCLUDE_DIR);$(LIBWPG_INCLUDE_DIR);$(ZLIB_INCLUDE_DIR);$(ICU_INCLUDE_DIR);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> ++ <AdditionalIncludeDirectories>$(LIBWPD_INCLUDE_DIR);$(LIBWPG_INCLUDE_DIR);$(ZLIB_INCLUDE_DIR);$(BOOST_INCLUDE_DIR);$(ICU_INCLUDE_DIR);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>NDEBUG;WIN32;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <StringPooling>true</StringPooling> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> +@@ -132,7 +132,7 @@ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <ClCompile> + <Optimization>Disabled</Optimization> +- <AdditionalIncludeDirectories>$(LIBWPD_INCLUDE_DIR);$(LIBWPG_INCLUDE_DIR);$(ZLIB_INCLUDE_DIR);$(ICU_INCLUDE_DIR);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> ++ <AdditionalIncludeDirectories>$(LIBWPD_INCLUDE_DIR);$(LIBWPG_INCLUDE_DIR);$(ZLIB_INCLUDE_DIR);$(BOOST_INCLUDE_DIR);$(ICU_INCLUDE_DIR);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_DEBUG;DEBUG;WIN32;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> |