2015-02-17 03:19:30 +00:00
|
|
|
# vim: set ts=3 sw=3 noet ft=sh : bash
|
2013-05-01 02:11:22 +00:00
|
|
|
|
2015-02-19 18:14:22 +00:00
|
|
|
# The platform variable is normally not set at the time libretro-config is
|
|
|
|
# included by libretro-build.sh. Other platform scripts may begin to include
|
|
|
|
# libretro-config as well if they define their platform-specific code in the
|
|
|
|
# case block below. This is a band-aid fix that we will address after 1.1 is
|
|
|
|
# released.
|
|
|
|
|
|
|
|
case "$platform" in
|
|
|
|
##
|
|
|
|
## Configs that did not use libretro-config originally
|
|
|
|
## TODO: Integrate this with everything else (post-1.1)
|
|
|
|
##
|
|
|
|
|
|
|
|
ios)
|
2015-03-09 12:33:41 +00:00
|
|
|
# NOTE: This config requires a Mac with an Xcode installation. These
|
|
|
|
# scripts will work at least as far as 10.5 that we're sure of, but
|
|
|
|
# we build with clang targeting iOS >= 5. We'll accept patches for
|
|
|
|
# older versions of iOS.
|
2015-02-19 18:14:22 +00:00
|
|
|
|
|
|
|
DIST_DIR="ios"
|
|
|
|
FORMAT_EXT=dylib
|
|
|
|
IOS=1
|
2015-02-23 07:00:15 +00:00
|
|
|
ARCH=armv7
|
2015-02-19 18:14:22 +00:00
|
|
|
FORMAT=_ios
|
|
|
|
FORMAT_COMPILER_TARGET=ios
|
|
|
|
FORMAT_COMPILER_TARGET_ALT=ios
|
2015-02-28 01:34:37 +00:00
|
|
|
export IOSSDK=$(xcodebuild -version -sdk iphoneos Path)
|
|
|
|
iosver=$(xcodebuild -version -sdk iphoneos ProductVersion)
|
|
|
|
IOSVER_MAJOR=${iosver%.*}
|
|
|
|
IOSVER_MINOR=${iosver#*.}
|
2015-02-19 18:14:22 +00:00
|
|
|
IOSVER=${IOSVER_MAJOR}${IOSVER_MINOR}
|
2015-03-21 01:50:36 +00:00
|
|
|
MIN_IOS5="-miphoneos-version-min=5.0"
|
|
|
|
MIN_IOS7="-miphoneos-version-min=7.0"
|
2015-02-19 18:14:22 +00:00
|
|
|
|
2015-03-23 05:32:06 +00:00
|
|
|
# Use generic names rather than gcc/clang to better support both
|
2015-03-24 09:52:37 +00:00
|
|
|
CC="cc -arch armv7 -marm -miphoneos-version-min=5.0 -isysroot $IOSSDK"
|
|
|
|
CXX="c++ -arch armv7 -marm -miphoneos-version-min=5.0 -isysroot $IOSSDK"
|
|
|
|
CXX11="clang++ -std=c++11 -stdlib=libc++ -arch armv7 -marm -miphoneos-version-min=5.0 -isysroot $IOSSDK"
|
2015-02-19 18:14:22 +00:00
|
|
|
;;
|
|
|
|
|
2015-03-09 12:33:41 +00:00
|
|
|
theos_ios)
|
|
|
|
DIST_DIR="theos_ios"
|
|
|
|
BUILD_PRODUCT_PREFIX="objs/obj"
|
|
|
|
FORMAT_EXT=dylib
|
|
|
|
IOS=1
|
|
|
|
ARCH=armv7
|
|
|
|
FORMAT=_ios
|
|
|
|
FORMAT_COMPILER_TARGET=theos_ios
|
|
|
|
FORMAT_COMPILER_TARGET_ALT=theos_ios
|
|
|
|
|
|
|
|
# Make sure that the cross bins you need are first in your path
|
|
|
|
CXX11="clang++ -std=c++11 -stdlib=libc++ -miphoneos-version-min=5.0"
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
2015-02-19 18:14:22 +00:00
|
|
|
##
|
|
|
|
## Original libretro-config path
|
|
|
|
##
|
|
|
|
*)
|
|
|
|
|
|
|
|
# Architecture Assignment
|
|
|
|
config_cpu() {
|
|
|
|
[ -n "$2" ] && ARCH="$1"
|
|
|
|
[ -z "$ARCH" ] && ARCH="$(uname -m)"
|
|
|
|
case "$ARCH" in
|
|
|
|
x86_64)
|
|
|
|
X86=true
|
|
|
|
X86_64=true
|
|
|
|
;;
|
|
|
|
i386|i686)
|
|
|
|
X86=true
|
|
|
|
;;
|
|
|
|
armv*)
|
2015-03-10 19:33:14 +00:00
|
|
|
ARM=true
|
2015-02-19 18:14:22 +00:00
|
|
|
export FORMAT_COMPILER_TARGET=armv
|
|
|
|
export RARCHCFLAGS="$RARCHCFLAGS -marm"
|
|
|
|
case "${ARCH}" in
|
|
|
|
armv5tel) ARMV5=true ;;
|
|
|
|
armv6l) ARMV6=true ;;
|
|
|
|
armv7l) ARMV7=true ;;
|
|
|
|
esac
|
|
|
|
;;
|
2015-02-17 03:19:30 +00:00
|
|
|
esac
|
2015-02-19 18:14:22 +00:00
|
|
|
if [ -n "$PROCESSOR_ARCHITEW6432" -a "$PROCESSOR_ARCHITEW6432" = "AMD64" ]; then
|
|
|
|
ARCH=x86_64
|
|
|
|
X86=true && X86_64=true
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
# Platform Assignment
|
|
|
|
config_platform() {
|
|
|
|
[ -n "$1" ] && platform="$1"
|
|
|
|
[ -z "$platform" ] && platform="$(uname)"
|
|
|
|
case "$platform" in
|
|
|
|
*BSD*)
|
2015-03-10 14:17:44 +00:00
|
|
|
platform=bsd
|
2015-02-19 18:14:22 +00:00
|
|
|
FORMAT_EXT="so"
|
|
|
|
FORMAT_COMPILER_TARGET="unix"
|
|
|
|
DIST_DIR="bsd"
|
|
|
|
;;
|
|
|
|
osx|*Darwin*)
|
2015-03-10 14:17:44 +00:00
|
|
|
platform=osx
|
2015-02-19 18:14:22 +00:00
|
|
|
FORMAT_EXT="dylib"
|
|
|
|
FORMAT_COMPILER_TARGET="osx"
|
|
|
|
DIST_DIR="osx"
|
|
|
|
;;
|
|
|
|
win|*mingw32*|*MINGW32*|*MSYS_NT*)
|
2015-03-10 14:17:44 +00:00
|
|
|
platform=win
|
2015-02-19 18:14:22 +00:00
|
|
|
FORMAT_EXT="dll"
|
|
|
|
FORMAT_COMPILER_TARGET="win"
|
|
|
|
DIST_DIR="win_x86"
|
|
|
|
;;
|
|
|
|
win64|*mingw64*|*MINGW64*)
|
2015-03-10 14:17:44 +00:00
|
|
|
platform=win
|
2015-02-19 18:14:22 +00:00
|
|
|
FORMAT_EXT="dll"
|
|
|
|
FORMAT_COMPILER_TARGET="win"
|
|
|
|
DIST_DIR="win_x64"
|
|
|
|
;;
|
|
|
|
*psp1*)
|
2015-03-10 14:17:44 +00:00
|
|
|
platform=psp1
|
2015-02-19 18:14:22 +00:00
|
|
|
FORMAT_EXT="a"
|
|
|
|
FORMAT_COMPILER_TARGET="psp1"
|
|
|
|
DIST_DIR="psp1"
|
|
|
|
;;
|
2015-03-09 12:41:06 +00:00
|
|
|
*wii*)
|
2015-03-10 14:17:44 +00:00
|
|
|
platform=wii
|
2015-03-09 12:41:06 +00:00
|
|
|
FORMAT_EXT="a"
|
|
|
|
FORMAT_COMPILER_TARGET="wii"
|
|
|
|
DIST_DIR="wii"
|
|
|
|
;;
|
2015-03-11 03:06:21 +00:00
|
|
|
*ngc*)
|
|
|
|
platform=ngc
|
|
|
|
FORMAT_EXT="a"
|
|
|
|
FORMAT_COMPILER_TARGET="ngc"
|
|
|
|
DIST_DIR="ngc"
|
|
|
|
;;
|
2015-03-09 12:33:41 +00:00
|
|
|
theos_ios*)
|
2015-03-10 14:17:44 +00:00
|
|
|
platform=theos_ios
|
2015-02-19 18:14:22 +00:00
|
|
|
FORMAT_EXT="dylib"
|
|
|
|
FORMAT_COMPILER_TARGET="theos_ios"
|
2015-03-09 12:33:41 +00:00
|
|
|
DIST_DIR="theos_ios"
|
2015-02-19 18:14:22 +00:00
|
|
|
;;
|
|
|
|
android)
|
|
|
|
FORMAT_EXT="so"
|
|
|
|
FORMAT_COMPILER_TARGET="android"
|
2015-03-25 19:24:38 +00:00
|
|
|
DIST_DIR="android"
|
2015-02-19 18:14:22 +00:00
|
|
|
;;
|
2015-03-25 19:24:38 +00:00
|
|
|
android-armv7)
|
2015-02-19 18:14:22 +00:00
|
|
|
FORMAT_EXT="so"
|
|
|
|
FORMAT_COMPILER_TARGET="android-armv7"
|
|
|
|
DIST_DIR="android/armeabi-v7a"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
FORMAT_EXT="so"
|
|
|
|
FORMAT_COMPILER_TARGET="unix"
|
|
|
|
DIST_DIR="unix"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
export FORMAT_COMPILER_TARGET_ALT="$FORMAT_COMPILER_TARGET"
|
|
|
|
}
|
|
|
|
|
|
|
|
config_log_build_host() {
|
|
|
|
echo "PLATFORM: $platform"
|
|
|
|
echo "ARCHITECTURE: $ARCH"
|
|
|
|
echo "TARGET: $FORMAT_COMPILER_TARGET"
|
|
|
|
}
|
|
|
|
|
|
|
|
config_cpu
|
|
|
|
config_platform
|
|
|
|
config_log_build_host
|
|
|
|
|
|
|
|
if [ -z "$JOBS" ]; then
|
2015-04-06 05:17:32 +00:00
|
|
|
# nproc is generally Linux-specific.
|
2015-02-19 18:14:22 +00:00
|
|
|
if command -v nproc >/dev/null; then
|
|
|
|
JOBS="$(nproc)"
|
2015-04-06 05:17:32 +00:00
|
|
|
elif [ "$pltaform" = "osx" ] && command -v sysctl >/dev/null; then
|
|
|
|
JOBS="$(sysctl -n hw.physicalcpu)"
|
2015-02-19 18:14:22 +00:00
|
|
|
else
|
|
|
|
JOBS=1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2014-07-27 02:03:21 +00:00
|
|
|
|
2013-06-30 16:23:26 +00:00
|
|
|
#if uncommented, will build experimental cores as well which are not yet fit for release.
|
2013-07-13 16:31:10 +00:00
|
|
|
#export BUILD_EXPERIMENTAL=1
|
2013-07-13 15:32:29 +00:00
|
|
|
|
|
|
|
#ARM DEFINES
|
2013-08-04 20:59:05 +00:00
|
|
|
#===========
|
|
|
|
|
2013-07-13 15:32:29 +00:00
|
|
|
#if uncommented, will build cores with Cortex A8 compiler optimizations
|
2013-07-13 16:31:10 +00:00
|
|
|
#export CORTEX_A8=1
|
2013-07-13 15:32:29 +00:00
|
|
|
|
|
|
|
#if uncommented, will build cores with Cortex A9 compiler optimizations
|
2013-07-13 16:31:10 +00:00
|
|
|
#export CORTEX_A9=1
|
2013-07-13 15:32:29 +00:00
|
|
|
|
|
|
|
#if uncommented, will build cores with ARM hardfloat ABI
|
2013-07-13 16:31:10 +00:00
|
|
|
#export ARM_HARDFLOAT=1
|
2013-07-13 15:32:29 +00:00
|
|
|
|
|
|
|
#if uncommented, will build cores with ARM softfloat ABI
|
2013-07-13 16:31:10 +00:00
|
|
|
#export ARM_SOFTFLOAT=1
|
2013-07-13 15:32:29 +00:00
|
|
|
|
|
|
|
#if uncommented, will build cores with ARM NEON support (ARMv7+ only)
|
2013-07-13 16:31:10 +00:00
|
|
|
#export ARM_NEON=1
|
2013-07-13 20:09:41 +00:00
|
|
|
|
|
|
|
#OPENGL DEFINES
|
2013-08-04 20:59:05 +00:00
|
|
|
#==============
|
2013-07-13 20:09:41 +00:00
|
|
|
|
2013-07-13 20:21:55 +00:00
|
|
|
#if uncommented, will build libretro GL cores. Ignored for mobile platforms - GL cores will always be built there.
|
2014-08-22 06:01:46 +00:00
|
|
|
export BUILD_LIBRETRO_GL=1
|
2013-07-13 20:09:41 +00:00
|
|
|
|
|
|
|
#if uncommented, will build cores with OpenGL ES 2 support. Not needed
|
2013-07-13 20:21:55 +00:00
|
|
|
#for platform-specific cores - only for generic core builds (ie. libretro-build.sh)
|
2013-07-13 20:09:41 +00:00
|
|
|
#export ENABLE_GLES=1
|
2013-08-04 20:59:05 +00:00
|
|
|
|
|
|
|
#ANDROID DEFINES
|
|
|
|
#================
|
|
|
|
|
2014-08-22 23:23:41 +00:00
|
|
|
export TARGET_ABIS="armeabi armeabi-v7a x86"
|
2014-08-18 04:19:31 +00:00
|
|
|
|
2013-08-04 20:59:05 +00:00
|
|
|
#uncomment to define NDK standalone toolchain for ARM
|
|
|
|
#export NDK_ROOT_DIR_ARM =
|
|
|
|
|
|
|
|
#uncomment to define NDK standalone toolchain for MIPS
|
|
|
|
#export NDK_ROOT_DIR_MIPS =
|
|
|
|
|
|
|
|
#uncomment to define NDK standalone toolchain for x86
|
|
|
|
#export NDK_ROOT_DIR_X86 =
|
2014-08-18 04:24:40 +00:00
|
|
|
|
|
|
|
# android version target if GLES is in use
|
2014-08-19 09:55:24 +00:00
|
|
|
export NDK_GL_HEADER_VER=android-18
|
2014-08-18 04:24:40 +00:00
|
|
|
|
|
|
|
# android version target if GLES is not in use
|
2014-08-19 09:55:24 +00:00
|
|
|
export NDK_NO_GL_HEADER_VER=android-9
|
2014-08-20 18:03:40 +00:00
|
|
|
|
|
|
|
# Retroarch target android API level
|
|
|
|
export RA_ANDROID_API=android-18
|
|
|
|
|
|
|
|
# Retroarch minimum API level (defines low end android version compatability)
|
|
|
|
export RA_ANDROID_MIN_API=android-9
|
2014-08-20 18:14:33 +00:00
|
|
|
|
2015-01-31 20:31:51 +00:00
|
|
|
#OSX DEFINES
|
|
|
|
#===========
|
|
|
|
|
|
|
|
# Define this to skip the universal build
|
|
|
|
# export NOUNIVERSAL=1
|
|
|
|
|
2015-02-01 08:42:43 +00:00
|
|
|
# ARCHFLAGS is a very convenient way of doing this for simple/obvious cores
|
|
|
|
# that don't need anything defined on the command line for 32 vs 64 bit
|
|
|
|
# systems, however it won't work for anything that does. For that, you need
|
|
|
|
# to do two separate builds, one for each arch, and then do something like:
|
|
|
|
# lipo -create core_i386.dylib core_x86_64.dylib -output core_ub.dylib
|
|
|
|
#
|
|
|
|
# If building on 10.5/10.6, it's possible that you could actually build a UB
|
|
|
|
# for Intel/PowerPC, but please don't. ;) Consider this a proof of concept
|
|
|
|
# for now just to test a few cores.
|
|
|
|
|
2015-02-18 07:17:47 +00:00
|
|
|
if [[ "$FORMAT_COMPILER_TARGET" = "osx" && -z "$NOUNIVERSAL" ]]; then
|
|
|
|
case "$ARCH" in
|
|
|
|
i386|x86_64)
|
2015-02-17 03:19:30 +00:00
|
|
|
export ARCHFLAGS="-arch i386 -arch x86_64"
|
|
|
|
;;
|
|
|
|
ppc|ppc64)
|
|
|
|
export ARCHFLAGS="-arch ppc -arch ppc64"
|
|
|
|
;;
|
|
|
|
*)
|
2015-02-22 04:36:50 +00:00
|
|
|
echo "Will not build universal binaries for unknown ARCH=\"$ARCH\""
|
|
|
|
;;
|
2015-02-17 03:19:30 +00:00
|
|
|
esac
|
2015-01-31 20:31:51 +00:00
|
|
|
fi
|
|
|
|
|
2015-03-27 23:45:38 +00:00
|
|
|
# OUTPUT AND LOGGING
|
|
|
|
# ==================
|
|
|
|
#
|
Implement log truncation, now ready for testing
What (should) work):
- LIBRETRO_DEVELOPER (default 1) to output all build progress
- LIBRETRO_LOG_DIR (default $WORKDIR/log) to change WHERE logs get
written. Useful for buildbots that have multiple WORKDIRs to put
logs in roughly the same place.
- LIBRETRO_LOG_SUPER (default libretro-super.log) to change the name of
libretro-build.sh's log file. No log would be written if unset, but
script-modules/log.sh sets it if unset for now.
- LIBRETRO_LOG_CORE (default %s.log) to change the name pattern for a
core log file. The %s is replaced with the "safe" core name used by
libretro-super's rules.
- LIBRETRO_LOG_APPEND (default ""), if set, would not clobber the log
files the next time you ran libretro-super. Caution: mame's output
is 34 megabytes on its own for a single successful build
What doesn't work yet:
- You should be able to unset LIBRETRO_LOG_SUPER and LIBRETRO_LOG_CORE
and have your decision mean something. This is the #1 thing I must
change, and I will do so in the next day or so.
- We assume that if you want output to screen and log, you'll have the
tee command. What if you don't? We choose log over screen in that
case, but tee is such a trivial tool to implement, perhaps we should?
- Currently logs lack date stamps. Bash's built-in printf has a way to
do this, but Apple STUPIDLY disables it because Apple. Turns out
that bash 2.05a didn't have the feature anyway. You may not have the
UNIX date command on Windows if you're somehow running bash from
cmd.exe. Worse, you have a command of the same name that requires a
/t argument to do half of what date does on UNIX. Running into
limits of bash here, easily solved using most anything else.
2015-03-28 02:31:19 +00:00
|
|
|
# This is kind of an inline design document that'll be changed for basic user
|
|
|
|
# instructions when the logging system is finished and tested.
|
|
|
|
#
|
2015-03-27 23:45:38 +00:00
|
|
|
# libretro-super has two kinds of output, the basic kind showing what the
|
|
|
|
# script is doing in a big-picture sense, and the commands and output from
|
|
|
|
# individual commands. End-users don't necessarily need to see this more
|
|
|
|
# detailed output, except when we're talking about huge cores like mame.
|
|
|
|
#
|
|
|
|
# If each can be directed to null, to the screen, to a log file, or to both
|
Implement log truncation, now ready for testing
What (should) work):
- LIBRETRO_DEVELOPER (default 1) to output all build progress
- LIBRETRO_LOG_DIR (default $WORKDIR/log) to change WHERE logs get
written. Useful for buildbots that have multiple WORKDIRs to put
logs in roughly the same place.
- LIBRETRO_LOG_SUPER (default libretro-super.log) to change the name of
libretro-build.sh's log file. No log would be written if unset, but
script-modules/log.sh sets it if unset for now.
- LIBRETRO_LOG_CORE (default %s.log) to change the name pattern for a
core log file. The %s is replaced with the "safe" core name used by
libretro-super's rules.
- LIBRETRO_LOG_APPEND (default ""), if set, would not clobber the log
files the next time you ran libretro-super. Caution: mame's output
is 34 megabytes on its own for a single successful build
What doesn't work yet:
- You should be able to unset LIBRETRO_LOG_SUPER and LIBRETRO_LOG_CORE
and have your decision mean something. This is the #1 thing I must
change, and I will do so in the next day or so.
- We assume that if you want output to screen and log, you'll have the
tee command. What if you don't? We choose log over screen in that
case, but tee is such a trivial tool to implement, perhaps we should?
- Currently logs lack date stamps. Bash's built-in printf has a way to
do this, but Apple STUPIDLY disables it because Apple. Turns out
that bash 2.05a didn't have the feature anyway. You may not have the
UNIX date command on Windows if you're somehow running bash from
cmd.exe. Worse, you have a command of the same name that requires a
/t argument to do half of what date does on UNIX. Running into
limits of bash here, easily solved using most anything else.
2015-03-28 02:31:19 +00:00
|
|
|
# the screen and a log file, you end up with a matrix os 16 possibilities. Of
|
|
|
|
# those, only a few are truly useful:
|
2015-03-27 23:45:38 +00:00
|
|
|
#
|
Implement log truncation, now ready for testing
What (should) work):
- LIBRETRO_DEVELOPER (default 1) to output all build progress
- LIBRETRO_LOG_DIR (default $WORKDIR/log) to change WHERE logs get
written. Useful for buildbots that have multiple WORKDIRs to put
logs in roughly the same place.
- LIBRETRO_LOG_SUPER (default libretro-super.log) to change the name of
libretro-build.sh's log file. No log would be written if unset, but
script-modules/log.sh sets it if unset for now.
- LIBRETRO_LOG_CORE (default %s.log) to change the name pattern for a
core log file. The %s is replaced with the "safe" core name used by
libretro-super's rules.
- LIBRETRO_LOG_APPEND (default ""), if set, would not clobber the log
files the next time you ran libretro-super. Caution: mame's output
is 34 megabytes on its own for a single successful build
What doesn't work yet:
- You should be able to unset LIBRETRO_LOG_SUPER and LIBRETRO_LOG_CORE
and have your decision mean something. This is the #1 thing I must
change, and I will do so in the next day or so.
- We assume that if you want output to screen and log, you'll have the
tee command. What if you don't? We choose log over screen in that
case, but tee is such a trivial tool to implement, perhaps we should?
- Currently logs lack date stamps. Bash's built-in printf has a way to
do this, but Apple STUPIDLY disables it because Apple. Turns out
that bash 2.05a didn't have the feature anyway. You may not have the
UNIX date command on Windows if you're somehow running bash from
cmd.exe. Worse, you have a command of the same name that requires a
/t argument to do half of what date does on UNIX. Running into
limits of bash here, easily solved using most anything else.
2015-03-28 02:31:19 +00:00
|
|
|
# Basic Detailed Useful to
|
|
|
|
# screen screen developer/end-user w/ space issues
|
2015-03-27 23:45:38 +00:00
|
|
|
# screen both developer
|
|
|
|
# both both developer
|
|
|
|
# screen log end-user
|
|
|
|
# log log buildbot
|
Implement log truncation, now ready for testing
What (should) work):
- LIBRETRO_DEVELOPER (default 1) to output all build progress
- LIBRETRO_LOG_DIR (default $WORKDIR/log) to change WHERE logs get
written. Useful for buildbots that have multiple WORKDIRs to put
logs in roughly the same place.
- LIBRETRO_LOG_SUPER (default libretro-super.log) to change the name of
libretro-build.sh's log file. No log would be written if unset, but
script-modules/log.sh sets it if unset for now.
- LIBRETRO_LOG_CORE (default %s.log) to change the name pattern for a
core log file. The %s is replaced with the "safe" core name used by
libretro-super's rules.
- LIBRETRO_LOG_APPEND (default ""), if set, would not clobber the log
files the next time you ran libretro-super. Caution: mame's output
is 34 megabytes on its own for a single successful build
What doesn't work yet:
- You should be able to unset LIBRETRO_LOG_SUPER and LIBRETRO_LOG_CORE
and have your decision mean something. This is the #1 thing I must
change, and I will do so in the next day or so.
- We assume that if you want output to screen and log, you'll have the
tee command. What if you don't? We choose log over screen in that
case, but tee is such a trivial tool to implement, perhaps we should?
- Currently logs lack date stamps. Bash's built-in printf has a way to
do this, but Apple STUPIDLY disables it because Apple. Turns out
that bash 2.05a didn't have the feature anyway. You may not have the
UNIX date command on Windows if you're somehow running bash from
cmd.exe. Worse, you have a command of the same name that requires a
/t argument to do half of what date does on UNIX. Running into
limits of bash here, easily solved using most anything else.
2015-03-28 02:31:19 +00:00
|
|
|
#
|
|
|
|
# What this tells me is that we need to log by default, as long as we kill
|
|
|
|
# old logfiles to avoid filling your HD with gigabytes of mame build logs.
|
|
|
|
# Output should go to both screen and log for developers, but users don't need
|
|
|
|
# to see the make commands, etc. Being able to disable both would be useful,
|
|
|
|
# but that a near-term TODO item. That just leaves being able to squelch the
|
|
|
|
# screen output for buildbot usage, and that's just > /dev/null on the command
|
|
|
|
# line, so not our problem here.
|
|
|
|
#
|
|
|
|
# Again, the ability to turn OFF these logs will be wanted very soon.
|
2015-03-27 23:45:38 +00:00
|
|
|
|
|
|
|
# Uncomment this to avoid clobbering logs
|
|
|
|
#LIBRETRO_LOG_APPEND=1
|
|
|
|
|
|
|
|
# Change this to adjust where logs are written
|
|
|
|
#LIBRETRO_LOG_DIR="$WORKDIR/log"
|
2015-01-31 03:01:14 +00:00
|
|
|
|
2015-03-27 23:45:38 +00:00
|
|
|
# Change this to rename the libretro-super main log file
|
2015-03-28 02:10:01 +00:00
|
|
|
#LIBRETRO_LOG_SUPER="libretro-super.log"
|
2015-01-30 10:38:10 +00:00
|
|
|
|
2015-03-27 23:45:38 +00:00
|
|
|
# Change this to rename core log files (%s for core's "safe" name)
|
2015-03-28 02:10:01 +00:00
|
|
|
#LIBRETRO_LOG_CORE="%s.log"
|
2015-01-31 03:01:14 +00:00
|
|
|
|
2015-03-28 01:31:51 +00:00
|
|
|
# Comment this if you don't need to see developer output
|
|
|
|
LIBRETRO_DEVELOPER=1
|
|
|
|
|
|
|
|
|
2015-02-19 06:31:02 +00:00
|
|
|
# BUILD_REVISIONS
|
|
|
|
# ===============
|
|
|
|
#
|
|
|
|
# libretro-super can save a revision string (e.g., the git sha hash) for any
|
|
|
|
# core it has compiled. If this feature is enabled, it will check if the
|
|
|
|
# revison string has changed before it compiles the core. This can speed up
|
|
|
|
# the build process for end-users and buildbots, and it also results in nightly
|
|
|
|
# build directories being smaller. It is not enabled by default because it
|
|
|
|
# cannot know about uncommitted changes in a working directory.
|
|
|
|
|
|
|
|
# Set this to enable the feature
|
|
|
|
#SKIP_UNCHANGED=1
|
|
|
|
|
2015-02-19 06:45:23 +00:00
|
|
|
# Set this if you don't like the default
|
|
|
|
#BUILD_REVISIONS_DIR="$WORKDIR/build-revisions"
|
|
|
|
|
2015-02-19 06:31:02 +00:00
|
|
|
|
2015-03-03 08:13:02 +00:00
|
|
|
# COLOR IN OUTPUT
|
|
|
|
# ===============
|
|
|
|
#
|
|
|
|
# If you don't like ANSI-style color in your output, uncomment this line.
|
|
|
|
#NO_COLOR=1
|
|
|
|
|
|
|
|
# If you want to force it even in log files, uncomment this line.
|
|
|
|
#FORCE_COLOR=1
|
|
|
|
|
2014-08-20 18:14:33 +00:00
|
|
|
#USER DEFINES
|
|
|
|
#------------
|
|
|
|
#These options should be defined inside your own
|
|
|
|
#local libretro-config-user.sh file rather than here.
|
|
|
|
#The following below is just a sample.
|
|
|
|
|
2015-02-18 00:04:25 +00:00
|
|
|
if [ -f "$WORKDIR/libretro-config-user.sh" ]; then
|
|
|
|
. "$WORKDIR/libretro-config-user.sh"
|
2014-08-20 18:14:33 +00:00
|
|
|
fi
|