OPTION(PCRE_BUILD_TESTS "Build the tests" OFF)
/*
#if defined(__GNUC__) && __GNUC__ >= 3 && defined(__ELF__)
# define ULP_AS_STRING(x) ULP_AS_STRING_INTERNAL(x)
# define ULP_AS_STRING_INTERNAL(x) #x
# define USER_LABEL_PREFIX_STR ULP_AS_STRING(__USER_LABEL_PREFIX__)
extern Arg no_arg
__attribute__((alias(USER_LABEL_PREFIX_STR "_ZN7pcrecpp2RE6no_argE")));
#endif
*/
# Dreamcast cmake toolchain file
# this one is important
set(CMAKE_SYSTEM_NAME Dreamcast)
#this one not so much
set(CMAKE_SYSTEM_VERSION 1)
# specify the cross compiler
set(CMAKE_C_COMPILER /home/dreamcast/kos/utils/gnu_wrappers/kos-cc)
set(CMAKE_CXX_COMPILER /home/dreamcast/kos/utils/gnu_wrappers/kos-c++)
# search for programs in the build host directories
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
>> cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=dc.cmake
>> make
>> svn co svn://svn.gna.org/svn/freeeq/trunk freeeq
# Dreamcast cmake toolchain file
# this one is important
set(CMAKE_SYSTEM_NAME Dreamcast)
#this one not so much
set(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_CXX_FLAGS "-DUSE_ROMDISK -frtti")
# specify the cross compiler
set(CMAKE_C_COMPILER /home/dreamcast/kos/utils/gnu_wrappers/kos-cc)
set(CMAKE_CXX_COMPILER /home/dreamcast/kos/utils/gnu_wrappers/kos-c++)
# search for programs in the build host directories
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
# Dreamcast paths for libs
set(SDL_LIBRARY /home/dreamcast/kos/addons/lib/dreamcast/libSDL_1213.a)
set(SDL_INCLUDE_DIR ${KOS_BASE}/addons/include/)
set(SDL_IMAGE_LIBRARY /home/dreamcast/kos/addons/lib/dreamcast/libSDL_image_1212.a)
set(SDL_IMAGE_INCLUDE_DIR ${KOS_BASE}/addons/include/)
set(PNG_LIBRARY /home/dreamcast/kos/addons/lib/dreamcast/libpng.a)
set(PNG_PNG_INCLUDE_DIR ${KOS_BASE}/addons/include/)
set(SDLMIXER_LIBRARY /home/dreamcast/kos/addons/lib/dreamcast/libSDL_mixer_1212.a)
set(SDLMIXER_INCLUDE_DIR ${KOS_BASE}/addons/include/)
set(ZLIB_LIBRARY /home/dreamcast/kos/addons/lib/dreamcast/libz.a)
set(ZLIB_INCLUDE_DIR ${KOS_BASE}/addons/include/)
set(PCRE_LIBRARY /home/dreamcast/kos/addons/lib/dreamcast/libpcre.a)
set(PCRE_INCLUDE_DIR ${KOS_BASE}/addons/include/)
set(PCRECPP_LIBRARY /home/dreamcast/kos/addons/lib/dreamcast/libpcrecpp.a)
set(PCRECPP_INCLUDE_DIR ${KOS_BASE}/addons/include/)
# Dreamcast specific options!!
set(FREEEQ_DATA_DIR "/rd")
set(FREEEQ_VERSION "0.3-svn")
option( STM_SHARED "Build shared library" OFF )
option( TINYXML_SHARED "Build shared library" OFF )
option( TMX_SHARED "Build shared library" OFF )
option( TME_SHARED "Build shared library" OFF )
option( TMX_DEBUG "Enabled debug support" OFF )
option( TME_DEBUG "Enabled debug support" OFF )
option( TMX_USE_U16 "Use unsigned 16-bit tile type" ON )
option( TME_USE_RENDERER_SDL "Build SDL renderer" OFF )
option( TME_USE_RENDERER_DC "Build Dreamcast PVR renderer" ON )
option( FREEEQ_USE_DC "Dreamcast specific" ON )
option( FREEEQ_USE_ROMDISK "Use romdisk" ON )
#set(FREEEQ_DATA_DIR "../data")
>> cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=dc.cmake
>> make
Cita
Did you play this game on Dreamcast? I didn't see any version lurking arround the net.