mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-13 18:34:45 +00:00
document git submodules, check for submodules, fail if bison or boost not present
This commit is contained in:
parent
a50789d39a
commit
338da2da21
14
README.md
14
README.md
@ -12,6 +12,16 @@ wolfgang.thaller@gmx.net.
|
||||
Installing/Building
|
||||
-------------------
|
||||
|
||||
The Retro68 git repository uses submodules; be sure to use the `--recursive` option to `git clone` or use
|
||||
|
||||
git submodule update --init
|
||||
|
||||
after cloning. To get the latest changes, use
|
||||
|
||||
git pull
|
||||
git submodule update
|
||||
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- Linux, Mac OS X or Windows (via Cygwin)
|
||||
@ -20,12 +30,14 @@ Installing/Building
|
||||
- GCC dependencies: GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+
|
||||
- bison version 3.0.2 or later
|
||||
- ruby version 2.1 or later
|
||||
- flex
|
||||
- texinfo
|
||||
- Recommended: Apple Universal Interfaces (version 3.x; version 3.4 is tested)
|
||||
- An ancient Mac and/or an emulator.
|
||||
|
||||
For Ubuntu Linux, the following should help a bit:
|
||||
|
||||
sudo apt-get install cmake libgmp-dev libmpfr-dev libmpc-dev libboost-all-dev bison texinfo ruby
|
||||
sudo apt-get install cmake libgmp-dev libmpfr-dev libmpc-dev libboost-all-dev bison flex texinfo ruby
|
||||
|
||||
On a Mac, get the homebrew package manager and:
|
||||
|
||||
|
@ -24,8 +24,13 @@ find_package(Boost COMPONENTS wave filesystem system thread regex program_option
|
||||
set(CMAKE_PROGRAM_PATH ${CMAKE_PROGRAM_PATH} "/usr/local/opt/bison/bin")
|
||||
find_package(BISON 3.0.2)
|
||||
|
||||
if(Boost_FOUND AND BISON_FOUND)
|
||||
if(NOT Boost_FOUND)
|
||||
message(FATAL_ERROR "The boost libraries have not been found.")
|
||||
endif()
|
||||
|
||||
if(NOT BISON_FOUND)
|
||||
message(FATAL_ERROR "GNU Bison version 3.0.2 or later is required.")
|
||||
endif()
|
||||
|
||||
include_directories(. ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
@ -78,7 +83,3 @@ target_include_directories(Rez PRIVATE ${Boost_INCLUDE_DIR})
|
||||
install(TARGETS Rez RUNTIME DESTINATION bin)
|
||||
|
||||
add_subdirectory(Test)
|
||||
|
||||
else(Boost_FOUND AND BISON_FOUND)
|
||||
message(WARNING "Rez compiler will not be built; both boost and Bison 3.0.2 are required")
|
||||
endif(Boost_FOUND AND BISON_FOUND)
|
||||
|
@ -24,6 +24,16 @@ DEFAULT_PREFIX=`pwd -P`/toolchain/
|
||||
PREFIX=$DEFAULT_PREFIX
|
||||
BINUTILS=`pwd -P`/binutils-build
|
||||
|
||||
##################### Prerequisites check
|
||||
|
||||
if [ ! -d "$SRC/multiversal" ]; then
|
||||
echo "Could not find directory '$SRC/multiversal'."
|
||||
echo "It looks like you did not clone the git submodules."
|
||||
echo "Please run:"
|
||||
echo " git submodule update --init"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
##################### Command-line Options
|
||||
|
||||
SKIP_THIRDPARTY=false
|
||||
|
Loading…
Reference in New Issue
Block a user