Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • release/202005
  • release/202001
  • release/201912
  • release/201911
  • release/releaseWindowsTestOne
  • release/windowsReleaseTest
  • release/releaseTest
  • release/releaseWindowsTest
  • release/201910
  • release/qt/201910
  • release/windows-test/201910
  • release/201908
  • release/201906
  • release/201905
  • release/201904
  • release/201903
  • release/201902
  • release/201901
  • release/201812
  • 4.0.0
  • 2.2.0
  • 2.1.0
  • 2.0.1
  • 2.0.0
  • 1.4.1
  • 1.4.0
  • 1.3.0
  • 1.2.0
  • 1.1.0
30 results

rules.mak

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    rules.mak 1.96 KiB
    # Boost
    BOOST_VERSION := 1_61_0
    BOOST_URL := https://downloads.sourceforge.net/project/boost/boost/1.61.0/boost_$(BOOST_VERSION).tar.bz2
    
    PKGS += boost
    ifdef HAVE_LINUX
    ifndef HAVE_ANDROID
    PKGS_FOUND += boost
    endif
    endif
    
    BOOST_B2_OPTS := variant=release \
    				 link=static \
    				 --prefix="$(PREFIX)" \
    				 --includedir="$(PREFIX)/include" \
    				 --libdir="$(PREFIX)/lib" \
    				 --build="$(BUILD)" \
    				 --host="$(HOST)" \
    				 --target="$(HOST)" \
    				 --program-prefix="" \
    				 --with-system --with-random \
    				 define="BOOST_SYSTEM_NO_DEPRECATED" \
    				 -sNO_BZIP2=1 cxxflags=-fPIC cflags=-fPIC
    
    ifdef HAVE_WIN32
    BOOST_B2_OPTS += target-os=windows \
    				 threadapi=win32 \
    				 runtime-link=static \
    				 binary-format=pe \
    				 architecture=x86 \
    				 --user-config=user-config.jam \
    				 cxxflags="-std=c++11 -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4"
    endif
    ifdef HAVE_ANDROID
    BOOST_B2_OPTS += --user-config=user-config.jam
    endif
    
    $(TARBALLS)/boost_$(BOOST_VERSION).tar.bz2:
    	$(call download,$(BOOST_URL))
    
    .sum-boost: boost_$(BOOST_VERSION).tar.bz2
    
    boost: boost_$(BOOST_VERSION).tar.bz2 .sum-boost
    	$(UNPACK)
    	$(MOVE)
    
    .boost: boost
    ifdef HAVE_WIN32
    	cd $< && echo "using gcc : mingw64 : ${HOST}-g++" > user-config.jam
    	cd $< && echo ":" >> user-config.jam
    	cd $< && echo "<rc>${HOST}-windres" >> user-config.jam
    	cd $< && echo "<archiver>${HOST}-ar" >> user-config.jam
    	cd $< && echo ";" >> user-config.jam
    endif
    ifdef HAVE_ANDROID
    	cd $< && echo "using gcc : android : g++" > user-config.jam
    	cd $< && echo ":" >> user-config.jam
    	cd $< && echo "<archiver>${HOST}-ar" >> user-config.jam
    	cd $< && echo "<compileflags>-DANDROID" >> user-config.jam
    	cd $< && echo "<compileflags>-D__ANDROID__" >> user-config.jam
    	cd $< && echo "<compileflags>-I$(ANDROID_TOOLCHAIN)/include/c++/4.9" >> user-config.jam
    	cd $< && echo ";" >> user-config.jam
    endif
    	cd $< && $(HOSTVARS) ./bootstrap.sh
    	cd $< && $(HOSTVARS) ./b2 $(BOOST_B2_OPTS) install
    	touch $@