From 28ea1649cb0ad0de74340fef8f1043b993a8f8dc Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sun, 1 Feb 2015 00:41:09 +0000 Subject: [PATCH] Remove Linux build instructions. They're hopelessly outdated, and not worth maintaining, as the .travis.yml really provides all the necessary info. --- README.md | 2 +- docs/BUILD.MinGW.md | 42 ------------------------------------------ mingw-toolchain.cmake | 20 -------------------- 3 files changed, 1 insertion(+), 63 deletions(-) delete mode 100644 docs/BUILD.MinGW.md delete mode 100644 mingw-toolchain.cmake diff --git a/README.md b/README.md index b2d0f55f..cff14a62 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ LOOT uses [CMake](http://cmake.org) to generate build files, and requires the fo * [Libloadorder](http://github.com/WrinklyNinja/libloadorder) * [yaml-cpp](http://github.com/WrinklyNinja/yaml-cpp) -Alphanum and Libespm do not require any additional setup. The rest of the libraries must be built separately. Instructions for building them and LOOT itself using MSVC or MinGW are given in [docs/BUILD.MSVC.md](docs/BUILD.MSVC.md) and [docs/BUILD.MinGW.md](docs/BUILD.MinGW.md) respectively. +Alphanum and Libespm do not require any additional setup. The rest of the libraries must be built separately. Instructions for building them and LOOT itself using Microsoft Visual Studio are given in [docs/BUILD.MSVC.md](docs/BUILD.MSVC.md). Although LOOT uses a cross-platform build system and cross-platform libraries, it does rely on some Windows API functionality. Anyone wishing to port LOOT to other platforms will need to ensure equivalent functionality is implemented for their target platform. The Windows API code is wrapped in `#ifdef _WIN32` blocks so that it can be easily identified. diff --git a/docs/BUILD.MinGW.md b/docs/BUILD.MinGW.md deleted file mode 100644 index bffb5073..00000000 --- a/docs/BUILD.MinGW.md +++ /dev/null @@ -1,42 +0,0 @@ -# Build Instructions using MinGW - -These instructions were used to build LOOT using mingw-w64 on Ubuntu and Debian linux, though they should also apply to other similar environments. - -#### Boost - -``` -./bootstrap.sh -echo "using gcc : 4.6.3 : i686-w64-mingw32-g++ : i686-w64-mingw32-windres i686-w64-mingw32-ar i686-w64-mingw32-ranlib ;" > tools/build/v2/user-config.jam -./b2 toolset=gcc-4.6.3 target-os=windows threadapi=win32 link=static runtime-link=static variant=release address-model=32 cxxflags=-fPIC --with-log --with-date_time --with-thread --with-filesystem --with-program_options --with-locale --with-regex --with-system --with-iostreams -``` - -#### Chromium Embedded Framework - -Most of the required binaries are pre-built, but the libcef_dll_wrapper dynamic library must be built. - -#### yaml-cpp - -``` -cmake . -DCMAKE_C_FLAGS=-m32 -DPROJECT_ARCH=32 -DCMAKE_TOOLCHAIN_FILE=../LOOT/mingw-toolchain.cmake -DBOOST_ROOT=../boost -make -``` - -#### Libloadorder - -Follow the instructions in libloadorder's README.md to build it as a static library. - -#### Libgit2 - -``` -mkdir build && cd build -cmake .. -DBUILD_SHARED_LIBS=OFF -DOPENSSL_ROOT_DIR=../openssl -DCMAKE_C_FLAGS=-m32 -DPROJECT_ARCH=32 -DCMAKE_TOOLCHAIN_FILE=../LOOT/mingw-toolchain.cmake -make -``` - -#### LOOT - -``` -mkdir build && cd build -cmake .. -DPROJECT_LIBS_DIR=".." -DPROJECT_ARCH=32 -DPROJECT_LINK=STATIC -DCMAKE_TOOLCHAIN_FILE="mingw-toolchain.cmake" -make -``` diff --git a/mingw-toolchain.cmake b/mingw-toolchain.cmake deleted file mode 100644 index b63e682e..00000000 --- a/mingw-toolchain.cmake +++ /dev/null @@ -1,20 +0,0 @@ -# Cross-compiling from Linux to Windows. -# -# Takes the PROJECT_ARCH variable, with value "32" or "64". -set (CMAKE_SYSTEM_NAME Windows) - -IF (PROJECT_ARCH MATCHES "32") - set (COMPILER_PREFIX i686-w64-mingw32) -ELSE () - set (COMPILER_PREFIX x86_64-w64-mingw32) -ENDIF () - -set (CMAKE_C_COMPILER ${COMPILER_PREFIX}-gcc) -set (CMAKE_CXX_COMPILER ${COMPILER_PREFIX}-g++) -IF (CMAKE_HOST_SYSTEM_NAME MATCHES "Windows") - set (CMAKE_RC_COMPILER windres) - set (CMAKE_RANLIB ${COMPILER_PREFIX}-gcc-ranlib) -ELSE () - set (CMAKE_RC_COMPILER ${COMPILER_PREFIX}-windres) - set (CMAKE_RANLIB ${COMPILER_PREFIX}-ranlib) -ENDIF ()