Apply a bunch of CMake patches by riebl, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10921 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
32c9213ccf
commit
3c2b69fb5c
@ -1,351 +0,0 @@
|
||||
# root CMakeLists for the SuperTuxKart project
|
||||
# Always edit 'CMakeLists.in.txt' and not 'CMakeLists.txt', the latter is automatically generated
|
||||
|
||||
cmake_minimum_required(VERSION 2.8.1)
|
||||
include (CheckCXXSourceCompiles)
|
||||
|
||||
project(SuperTuxKart)
|
||||
|
||||
if (NOT CMAKE_BUILD_TYPE)
|
||||
message(STATUS "No build type selected, default to Release")
|
||||
set(CMAKE_BUILD_TYPE "Release")
|
||||
endif()
|
||||
|
||||
|
||||
#set(CMAKE_VERBOSE_MAKEFILE TRUE)
|
||||
|
||||
set(STK_SOURCE_DIR "src")
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "bin")
|
||||
set(PROJECT_VERSION "0.7.3")
|
||||
|
||||
set(CMAKE_CXX_FLAGS_RELEASE -O2)
|
||||
|
||||
# Tweakable values
|
||||
if(CMAKE_BUILD_TYPE MATCHES "Debug")
|
||||
set(DEBUG ON)
|
||||
else()
|
||||
set(DEBUG OFF)
|
||||
endif()
|
||||
|
||||
option(USE_WIIUSE "Support for wiimote input devices" OFF)
|
||||
option(USE_FRIBIDI "Support for right-to-left languages" ON)
|
||||
option(FONT_TOOL "Compile font tool" OFF)
|
||||
set(IRRLICHT_DIR "/path/to/irrlicht" CACHE STRING "Path to Irrlicht")
|
||||
|
||||
# Build the Bullet physics library
|
||||
add_subdirectory("${STK_SOURCE_DIR}/bullet")
|
||||
|
||||
# Build the ENet UDP network library
|
||||
add_subdirectory("${STK_SOURCE_DIR}/enet")
|
||||
|
||||
# Build the Wiiuse library
|
||||
if(USE_WIIUSE)
|
||||
add_subdirectory("${STK_SOURCE_DIR}/wiiuse")
|
||||
endif()
|
||||
|
||||
# Set include paths
|
||||
include_directories("${STK_SOURCE_DIR}")
|
||||
include_directories("${STK_SOURCE_DIR}/enet/include")
|
||||
include_directories("${STK_SOURCE_DIR}/bullet/src")
|
||||
if(USE_WIIUSE)
|
||||
include_directories("${STK_SOURCE_DIR}/wiiuse")
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
# We could use smarter detection of the frameworks but supporting a single official setup makes things easy...
|
||||
include_directories("/Library/Frameworks/IrrFramework.framework/Versions/A/Headers/")
|
||||
include_directories("/Library/Frameworks/fribidi.framework/Headers")
|
||||
include_directories("/Library/Frameworks/Ogg.framework/Headers")
|
||||
include_directories("/Library/Frameworks/Vorbis.framework/Headers")
|
||||
include_directories("/usr/local/include")
|
||||
include_directories("/usr/include")
|
||||
find_library(Ogg /Library/Frameworks/Ogg.framework)
|
||||
find_library(Vorbis /Library/Frameworks/Vorbis.framework)
|
||||
endif()
|
||||
|
||||
# Set lib paths
|
||||
if(APPLE)
|
||||
# nothing to add
|
||||
elseif(UNIX)
|
||||
link_directories("${IRRLICHT_DIR}/lib/Linux")
|
||||
elseif(MSVC)
|
||||
link_directories("${IRRLICHT_DIR}/lib/Win32-visualstudio")
|
||||
else()
|
||||
link_directories("${IRRLICHT_DIR}/lib/Win32-gcc")
|
||||
endif()
|
||||
|
||||
link_directories("${STK_SOURCE_DIR}/bullet")
|
||||
|
||||
if(USE_WIIUSE)
|
||||
link_directories("${STK_SOURCE_DIR}/wiiuse")
|
||||
endif()
|
||||
|
||||
# OpenGL
|
||||
if(APPLE)
|
||||
find_library(OpenGL /System/Library/Frameworks/OpenGL.framework /System/Library/Frameworks/AGL.framework)
|
||||
else()
|
||||
find_package(OpenGL)
|
||||
|
||||
if(OPENGL_FOUND)
|
||||
message("-- OpenGL found (include dirs: ${OPENGL_INCLUDE_DIR})")
|
||||
include_directories(${OPENGL_INCLUDE_DIR})
|
||||
else()
|
||||
message(FATAL_ERROR "OpenGL not found.")
|
||||
endif()
|
||||
|
||||
if(UNIX)
|
||||
# X11, stk requires xf86vm
|
||||
find_package(X11)
|
||||
|
||||
if(X11_FOUND)
|
||||
message("-- X11 libs found")
|
||||
else()
|
||||
message(FATAL_ERROR "X11 not found.")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# OpenAL
|
||||
if(APPLE)
|
||||
find_library(OpenAL /Library/Frameworks/OpenAL.framework)
|
||||
else()
|
||||
find_package(OpenAL)
|
||||
|
||||
if(OPENAL_FOUND)
|
||||
message("-- OpenAL found (include dirs: ${OPENAL_INCLUDE_DIR})")
|
||||
include_directories(${OPENAL_INCLUDE_DIR})
|
||||
else()
|
||||
message(FATAL_ERROR "OpenAL not found.")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Check if we finally got irrlicht
|
||||
if(APPLE)
|
||||
find_library(Irrlicht /Library/Frameworks/IrrFramework.framework)
|
||||
else()
|
||||
find_path(HAVE_IRRLICHT irrlicht.h PATHS ${IRRLICHT_DIR} ${IRRLICHT_DIR}/include /usr/include/irrlicht/ /usr/local/include/irrlicht/)
|
||||
|
||||
if(HAVE_IRRLICHT)
|
||||
message("-- Irrlicht found (in ${HAVE_IRRLICHT}/irrlicht.h)")
|
||||
include_directories(${HAVE_IRRLICHT})
|
||||
find_library(IRRLICHT_LIB /usr/lib /usr/local/lib ${IRRLICHT_DIR}/lib/Linux)
|
||||
|
||||
set(CMAKE_REQUIRED_INCLUDES ${HAVE_IRRLICHT})
|
||||
set(CMAKE_REQUIRED_LIBRARIES ${IRRLICHT_LIB})
|
||||
CHECK_CXX_SOURCE_COMPILES("#include <IrrCompileConfig.h>
|
||||
int main(int argc, char** argv) {
|
||||
#if IRRLICHT_VERSION_MAJOR > 1 || (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR >= 8)
|
||||
// ok
|
||||
#else
|
||||
#error Your irrlicht is too old
|
||||
#endif
|
||||
}" IRRLICHT_RECENT_ENOUGH)
|
||||
if(IRRLICHT_RECENT_ENOUGH)
|
||||
# OK
|
||||
else()
|
||||
message(FATAL_ERROR "\n -- This irrlicht is too old, please use irrlicht 1.8 (SVN)")
|
||||
endif()
|
||||
else()
|
||||
message(FATAL_ERROR "\n -- Irrlicht not found (can't locate irrlicht.h)\n Use -DIRRLICHT_DIR=/path/to/irrlicht")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include_directories(${HAVE_IRRLICHT})
|
||||
|
||||
# CURL
|
||||
find_package(CURL)
|
||||
if(CURL_FOUND)
|
||||
include_directories(${CURL_INCLUDE_DIRS})
|
||||
else()
|
||||
message(FATAL_ERROR "-- libcURL not found, please install it.")
|
||||
endif()
|
||||
|
||||
# Fribidi
|
||||
if(USE_FRIBIDI)
|
||||
FIND_PATH(FRIBIDI_INCLUDE_DIR fribidi/fribidi.h
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
)
|
||||
|
||||
SET(FRIBIDI_NAMES ${FRIBIDI_NAMES} fribidi libfribidi)
|
||||
FIND_LIBRARY(FRIBIDI_LIBRARY
|
||||
NAMES ${FRIBIDI_NAMES}
|
||||
PATHS /usr/lib /usr/local/lib
|
||||
)
|
||||
|
||||
IF (FRIBIDI_LIBRARY AND FRIBIDI_INCLUDE_DIR)
|
||||
message("-- Fribidi found")
|
||||
else()
|
||||
message(FATAL_ERROR "Fribidi not found. Either install fribidi or disable bidi support with -DUSE_FRIBIDI=0 (if you don't use a right-to-left language then you don't need this).")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Set some compiler options
|
||||
if(UNIX)
|
||||
add_definitions(-Wall)
|
||||
endif()
|
||||
|
||||
add_definitions(-DHAVE_OGGVORBIS) # TODO: remove this switch
|
||||
|
||||
if(DEBUG)
|
||||
add_definitions(-DDEBUG)
|
||||
else()
|
||||
add_definitions(-DNDEBUG)
|
||||
endif()
|
||||
|
||||
find_package(Freetype)
|
||||
|
||||
if(FONT_TOOL)
|
||||
if(FREETYPE_FOUND)
|
||||
message("-- Freetype found")
|
||||
find_package(X11)
|
||||
include_directories(${FREETYPE_INCLUDE_DIRS})
|
||||
add_executable(font_tool
|
||||
tools/font_tool/CFontTool.cpp
|
||||
tools/font_tool/CFontTool.h
|
||||
tools/font_tool/CVectorFontTool.h
|
||||
tools/font_tool/main.cpp
|
||||
)
|
||||
target_link_libraries(font_tool ${FREETYPE_LIBRARIES})
|
||||
target_link_libraries(font_tool ${X11_Xft_LIB})
|
||||
target_link_libraries(font_tool ${OPENGL_LIBRARIES})
|
||||
target_link_libraries(font_tool Irrlicht)
|
||||
else()
|
||||
message("-- Freetype was not found, the font tool won't be built (only useful for developers)")
|
||||
endif()
|
||||
else()
|
||||
message("-- Font tool deactivated, the font tool won't be built (only useful for developers)")
|
||||
endif()
|
||||
|
||||
set( SRCS ${SRCS} %LIST_OF_FILES%)
|
||||
|
||||
if (APPLE)
|
||||
# icon files to copy in the bundle
|
||||
set( OSX_ICON_FILES ${PROJECT_SOURCE_DIR}/src/ide/Xcode/stk.icns)
|
||||
set_source_files_properties( ${OSX_ICON_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
||||
set( SRCS ${SRCS} ${OSX_ICON_FILES} )
|
||||
|
||||
# build the executable and create an app bundle
|
||||
add_executable(supertuxkart MACOSX_BUNDLE ${SRCS} )
|
||||
|
||||
target_link_libraries(supertuxkart
|
||||
bulletdynamics
|
||||
bulletcollision
|
||||
bulletmath
|
||||
enet
|
||||
${CURL_LIBRARIES}
|
||||
# We could use smarter detection of the frameworks but supporting a single official setup makes things easy...
|
||||
/Library/Frameworks/IrrFramework.framework
|
||||
/Library/Frameworks/Ogg.framework
|
||||
/Library/Frameworks/OpenAL.framework
|
||||
/Library/Frameworks/Vorbis.framework
|
||||
# TODO: allow linking against frameworks from a SDK.
|
||||
/System/Library/Frameworks/AGL.framework
|
||||
/System/Library/Frameworks/IOKit.framework
|
||||
/System/Library/Frameworks/QuickTime.framework
|
||||
/System/Library/Frameworks/Carbon.framework
|
||||
/System/Library/Frameworks/AudioUnit.framework
|
||||
/System/Library/Frameworks/Cocoa.framework
|
||||
/System/Library/Frameworks/OpenGL.framework)
|
||||
|
||||
# configure CMake to use a custom Info.plist
|
||||
set_target_properties(supertuxkart PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${PROJECT_SOURCE_DIR}/src/ide/Xcode/SuperTuxKart-Info.plist )
|
||||
|
||||
add_definitions(`ln -sf ${PROJECT_SOURCE_DIR}/data ${CMAKE_BINARY_DIR}/bin/supertuxkart.app/Contents/Resources`)
|
||||
|
||||
else()
|
||||
|
||||
add_definitions(-DSUPERTUXKART_DATADIR=\"${CMAKE_INSTALL_PREFIX}/share/games/supertuxkart\")
|
||||
|
||||
# Build the final executable
|
||||
add_executable(supertuxkart ${SRCS})
|
||||
|
||||
target_link_libraries(supertuxkart
|
||||
Irrlicht
|
||||
bulletdynamics
|
||||
bulletcollision
|
||||
bulletmath
|
||||
enet
|
||||
pthread
|
||||
${CURL_LIBRARIES}
|
||||
${OPENGL_LIBRARIES}
|
||||
${OPENAL_LIBRARY}
|
||||
vorbisfile)
|
||||
endif()
|
||||
|
||||
if(USE_FRIBIDI)
|
||||
if(APPLE)
|
||||
target_link_libraries(supertuxkart /Library/Frameworks/fribidi.framework)
|
||||
else()
|
||||
target_link_libraries(supertuxkart fribidi)
|
||||
endif()
|
||||
add_definitions(-DENABLE_BIDI=1)
|
||||
endif()
|
||||
|
||||
if(USE_WIIUSE)
|
||||
target_link_libraries(supertuxkart wiiuse bluetooth)
|
||||
add_definitions(-DENABLE_WIIUSE)
|
||||
endif()
|
||||
|
||||
if(UNIX AND NOT APPLE)
|
||||
target_link_libraries(supertuxkart Xxf86vm)
|
||||
elseif(APPLE)
|
||||
# We could use smarter detection of the frameworks but supporting a single official setup makes things easy...
|
||||
target_link_libraries(supertuxkart /Library/Frameworks/IrrFramework.framework)
|
||||
target_link_libraries(supertuxkart /Library/Frameworks/Ogg.framework)
|
||||
target_link_libraries(supertuxkart /Library/Frameworks/OpenAL.framework)
|
||||
target_link_libraries(supertuxkart /Library/Frameworks/Vorbis.framework)
|
||||
|
||||
target_link_libraries(supertuxkart /System/Library/Frameworks/AGL.framework)
|
||||
target_link_libraries(supertuxkart /System/Library/Frameworks/IOKit.framework)
|
||||
target_link_libraries(supertuxkart /System/Library/Frameworks/QuickTime.framework)
|
||||
target_link_libraries(supertuxkart /System/Library/Frameworks/Carbon.framework)
|
||||
target_link_libraries(supertuxkart /System/Library/Frameworks/AudioUnit.framework)
|
||||
target_link_libraries(supertuxkart /System/Library/Frameworks/Cocoa.framework)
|
||||
target_link_libraries(supertuxkart /System/Library/Frameworks/OpenGL.framework)
|
||||
endif()
|
||||
|
||||
# ==== Make dist target ====
|
||||
add_custom_target(dist
|
||||
COMMAND rm -rf ${CMAKE_BINARY_DIR}/SuperTuxKart-${PROJECT_VERSION} && rm -f ${CMAKE_BINARY_DIR}/SuperTuxKart-${PROJECT_VERSION}.tar.bz2
|
||||
&& echo "Exporting..."
|
||||
&& svn export ${PROJECT_SOURCE_DIR} ${CMAKE_BINARY_DIR}/SuperTuxKart-${PROJECT_VERSION}
|
||||
&& echo "Compressing..."
|
||||
&& cd ${CMAKE_BINARY_DIR}
|
||||
&& tar -cjf ${CMAKE_BINARY_DIR}/SuperTuxKart-${PROJECT_VERSION}.tar.bz2 ./SuperTuxKart-${PROJECT_VERSION}
|
||||
&& echo "Done, cleaning up"
|
||||
&& rm -rf ${CMAKE_BINARY_DIR}/SuperTuxKart-${PROJECT_VERSION}
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
|
||||
|
||||
# ==== Install target ====
|
||||
MACRO(installfilemacro filepath)
|
||||
set(source_regex "(.*)/data/(.*)")
|
||||
set(svn_regex "(.*).svn(.*)")
|
||||
|
||||
string(REGEX MATCH "${svn_regex}" is_svn_dir "${curr}")
|
||||
if(is_svn_dir)
|
||||
# don't install SVN files
|
||||
else()
|
||||
string(REGEX MATCH "${source_regex}" source_path "${curr}")
|
||||
if(source_path)
|
||||
string(REGEX REPLACE "${source_regex}" "\\2" after_source "${source_path}")
|
||||
get_filename_component(install_location ${after_source} PATH)
|
||||
install(FILES ${filepath} DESTINATION "share/games/supertuxkart/data/${install_location}")
|
||||
endif(source_path)
|
||||
endif()
|
||||
ENDMACRO(installfilemacro)
|
||||
|
||||
FILE(GLOB_RECURSE datafiles "${CMAKE_CURRENT_SOURCE_DIR}/data/*")
|
||||
foreach(curr ${datafiles})
|
||||
installfilemacro(${curr})
|
||||
endforeach()
|
||||
|
||||
|
||||
install(TARGETS supertuxkart RUNTIME DESTINATION games BUNDLE DESTINATION .)
|
||||
install(FILES data/supertuxkart.desktop DESTINATION share/applications)
|
||||
install(FILES data/supertuxkart_32.xpm data/supertuxkart_64.xpm DESTINATION share/pixmaps)
|
||||
|
||||
add_custom_target(GenerateDesktopFile
|
||||
COMMAND sed 's\#PREFIX\#${CMAKE_INSTALL_PREFIX}\#' ${CMAKE_CURRENT_SOURCE_DIR}/data/supertuxkart_desktop.template | sed 's\#VERSION\#${PROJECT_VERSION}\#' > ${CMAKE_CURRENT_SOURCE_DIR}/data/supertuxkart.desktop
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
||||
ADD_DEPENDENCIES(supertuxkart GenerateDesktopFile)
|
File diff suppressed because one or more lines are too long
@ -22,4 +22,4 @@ dist_icon_DATA = supertuxkart_32.xpm supertuxkart_64.xpm
|
||||
EXTRA_DIST = supertuxkart_desktop.template
|
||||
CLEANFILES = supertuxkart.desktop
|
||||
supertuxkart.desktop: Makefile supertuxkart_desktop.template
|
||||
sed 's#PREFIX#$(prefix)#' '$(srcdir)/supertuxkart_desktop.template' >supertuxkart.desktop
|
||||
sed 's#@PREFIX@#$(prefix)#' '$(srcdir)/supertuxkart_desktop.template' >supertuxkart.desktop
|
||||
|
@ -181,8 +181,8 @@
|
||||
less (which might feel better).
|
||||
reduce-turn: A factor that's multiplied to the steering when skidding,
|
||||
which is used to reduce the turn angle used to reduce the turn angle. -->
|
||||
<skid increase="1.05" decrease="0.95" max="2.5" time-till-max="0.5"
|
||||
visual="1.0" visual-time="0"
|
||||
<skid increase="1.05" decrease="0.95" max="2.5" time-till-max="2.0"
|
||||
visual="1.0" visual-time="0.5"
|
||||
time-till-bonus="1.5 2.5"
|
||||
bonus-force="100 200" bonus-time="3.0 4.0"
|
||||
post-skid-rotate-factor="1" reduce-turn-min="0.6"
|
||||
|
@ -1,15 +1,15 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=SuperTuxKart
|
||||
Icon=PREFIX/share/pixmaps/supertuxkart_64.xpm
|
||||
Icon=@PREFIX@/share/pixmaps/supertuxkart_64.xpm
|
||||
GenericName=A kart racing game
|
||||
GenericName[de_DE]=Ein Kart-Rennspiel
|
||||
GenericName[fr_FR]=Un jeu de karting
|
||||
GenericName[gl]=Xogo de carreiras con karts
|
||||
GenericName[ro_RO]=Un joc de curse cu carturi
|
||||
Exec=PREFIX/games/supertuxkart --log=file
|
||||
Exec=@PREFIX@/games/supertuxkart --log=file
|
||||
Terminal=false
|
||||
StartupNotify=false
|
||||
Type=Application
|
||||
TryExec=PREFIX/games/supertuxkart
|
||||
TryExec=@PREFIX@/games/supertuxkart
|
||||
Categories=Game;ArcadeGame;
|
||||
|
229
sources.cmake
Normal file
229
sources.cmake
Normal file
@ -0,0 +1,229 @@
|
||||
# Generated by ./generate_source_cmake.sh. Do not edit this file manually.
|
||||
set(STK_SOURCES
|
||||
src/utils/random_generator.cpp
|
||||
src/utils/string_utils.cpp
|
||||
src/utils/translation.cpp
|
||||
src/utils/leak_check.cpp
|
||||
src/utils/constants.cpp
|
||||
src/utils/profiler.cpp
|
||||
src/utils/vec3.cpp
|
||||
src/audio/music_information.cpp
|
||||
src/audio/sfx_openal.cpp
|
||||
src/audio/sfx_buffer.cpp
|
||||
src/audio/music_manager.cpp
|
||||
src/audio/music_ogg.cpp
|
||||
src/audio/sfx_manager.cpp
|
||||
src/replay/replay_base.cpp
|
||||
src/replay/replay_play.cpp
|
||||
src/replay/replay_recorder.cpp
|
||||
src/guiengine/widgets/label_widget.cpp
|
||||
src/guiengine/widgets/spinner_widget.cpp
|
||||
src/guiengine/widgets/list_widget.cpp
|
||||
src/guiengine/widgets/button_widget.cpp
|
||||
src/guiengine/widgets/icon_button_widget.cpp
|
||||
src/guiengine/widgets/bubble_widget.cpp
|
||||
src/guiengine/widgets/progress_bar_widget.cpp
|
||||
src/guiengine/widgets/model_view_widget.cpp
|
||||
src/guiengine/widgets/ribbon_widget.cpp
|
||||
src/guiengine/widgets/CGUIEditBox.cpp
|
||||
src/guiengine/widgets/check_box_widget.cpp
|
||||
src/guiengine/widgets/dynamic_ribbon_widget.cpp
|
||||
src/guiengine/widgets/text_box_widget.cpp
|
||||
src/guiengine/CGUISpriteBank.cpp
|
||||
src/guiengine/engine.cpp
|
||||
src/guiengine/screen.cpp
|
||||
src/guiengine/skin.cpp
|
||||
src/guiengine/modaldialog.cpp
|
||||
src/guiengine/scalable_font.cpp
|
||||
src/guiengine/event_handler.cpp
|
||||
src/guiengine/layout_manager.cpp
|
||||
src/guiengine/abstract_top_level_container.cpp
|
||||
src/guiengine/screen_loader.cpp
|
||||
src/guiengine/abstract_state_manager.cpp
|
||||
src/guiengine/widget.cpp
|
||||
src/items/flyable.cpp
|
||||
src/items/bowling.cpp
|
||||
src/items/projectile_manager.cpp
|
||||
src/items/rubber_band.cpp
|
||||
src/items/powerup_manager.cpp
|
||||
src/items/cake.cpp
|
||||
src/items/powerup.cpp
|
||||
src/items/attachment_manager.cpp
|
||||
src/items/swatter.cpp
|
||||
src/items/item_manager.cpp
|
||||
src/items/plunger.cpp
|
||||
src/items/attachment.cpp
|
||||
src/items/rubber_ball.cpp
|
||||
src/items/item.cpp
|
||||
src/tinygettext/dictionary.cpp
|
||||
src/tinygettext/dictionary_manager.cpp
|
||||
src/tinygettext/language.cpp
|
||||
src/tinygettext/log.cpp
|
||||
src/tinygettext/iconv.cpp
|
||||
src/tinygettext/stk_file_system.cpp
|
||||
src/tinygettext/tinygettext.cpp
|
||||
src/tinygettext/plural_forms.cpp
|
||||
src/tinygettext/po_parser.cpp
|
||||
src/main_loop.cpp
|
||||
src/tutorial/tutorial.cpp
|
||||
src/tutorial/tutorial_data.cpp
|
||||
src/tutorial/tutorial_manager.cpp
|
||||
src/animations/three_d_animation.cpp
|
||||
src/animations/animation_base.cpp
|
||||
src/animations/billboard_animation.cpp
|
||||
src/animations/ipo.cpp
|
||||
src/karts/skidding.cpp
|
||||
src/karts/ghost_kart.cpp
|
||||
src/karts/kart_model.cpp
|
||||
src/karts/kart_with_stats.cpp
|
||||
src/karts/kart_gfx.cpp
|
||||
src/karts/kart_properties.cpp
|
||||
src/karts/kart.cpp
|
||||
src/karts/kart_properties_manager.cpp
|
||||
src/karts/emergency_animation.cpp
|
||||
src/karts/controller/player_controller.cpp
|
||||
src/karts/controller/default_ai_controller.cpp
|
||||
src/karts/controller/ai_base_controller.cpp
|
||||
src/karts/controller/new_ai_controller.cpp
|
||||
src/karts/controller/end_controller.cpp
|
||||
src/karts/controller/controller.cpp
|
||||
src/karts/moveable.cpp
|
||||
src/karts/max_speed.cpp
|
||||
src/states_screens/race_gui_base.cpp
|
||||
src/states_screens/help_screen_3.cpp
|
||||
src/states_screens/options_screen_input2.cpp
|
||||
src/states_screens/credits.cpp
|
||||
src/states_screens/grand_prix_lose.cpp
|
||||
src/states_screens/race_gui.cpp
|
||||
src/states_screens/help_screen_1.cpp
|
||||
src/states_screens/options_screen_players.cpp
|
||||
src/states_screens/dialogs/custom_video_settings.cpp
|
||||
src/states_screens/dialogs/press_a_key_dialog.cpp
|
||||
src/states_screens/dialogs/select_challenge.cpp
|
||||
src/states_screens/dialogs/story_mode_new.cpp
|
||||
src/states_screens/dialogs/message_dialog.cpp
|
||||
src/states_screens/dialogs/player_info_dialog.cpp
|
||||
src/states_screens/dialogs/confirm_resolution_dialog.cpp
|
||||
src/states_screens/dialogs/enter_player_name_dialog.cpp
|
||||
src/states_screens/dialogs/add_device_dialog.cpp
|
||||
src/states_screens/dialogs/race_over_dialog.cpp
|
||||
src/states_screens/dialogs/race_paused_dialog.cpp
|
||||
src/states_screens/dialogs/gp_info_dialog.cpp
|
||||
src/states_screens/dialogs/track_info_dialog.cpp
|
||||
src/states_screens/dialogs/addons_loading.cpp
|
||||
src/states_screens/kart_selection.cpp
|
||||
src/states_screens/tutorial_screen.cpp
|
||||
src/states_screens/options_screen_audio.cpp
|
||||
src/states_screens/tracks_screen.cpp
|
||||
src/states_screens/race_result_gui.cpp
|
||||
src/states_screens/options_screen_video.cpp
|
||||
src/states_screens/story_mode_lobby.cpp
|
||||
src/states_screens/grand_prix_win.cpp
|
||||
src/states_screens/addons_screen.cpp
|
||||
src/states_screens/feature_unlocked.cpp
|
||||
src/states_screens/help_screen_2.cpp
|
||||
src/states_screens/race_setup_screen.cpp
|
||||
src/states_screens/options_screen_input.cpp
|
||||
src/states_screens/arenas_screen.cpp
|
||||
src/states_screens/race_gui_overworld.cpp
|
||||
src/states_screens/options_screen_ui.cpp
|
||||
src/states_screens/main_menu_screen.cpp
|
||||
src/states_screens/help_screen_4.cpp
|
||||
src/states_screens/minimal_race_gui.cpp
|
||||
src/states_screens/state_manager.cpp
|
||||
src/io/xml_writer.cpp
|
||||
src/io/xml_node.cpp
|
||||
src/io/file_manager.cpp
|
||||
src/challenges/challenge_data.cpp
|
||||
src/challenges/game_slot.cpp
|
||||
src/challenges/unlock_manager.cpp
|
||||
src/challenges/challenge.cpp
|
||||
src/addons/network_http.cpp
|
||||
src/addons/news_manager.cpp
|
||||
src/addons/addon.cpp
|
||||
src/addons/zip.cpp
|
||||
src/addons/request.cpp
|
||||
src/addons/addons_manager.cpp
|
||||
src/tracks/check_manager.cpp
|
||||
src/tracks/graph_node.cpp
|
||||
src/tracks/lod_node_loader.cpp
|
||||
src/tracks/check_sphere.cpp
|
||||
src/tracks/terrain_info.cpp
|
||||
src/tracks/quad.cpp
|
||||
src/tracks/quad_set.cpp
|
||||
src/tracks/check_structure.cpp
|
||||
src/tracks/bezier_curve.cpp
|
||||
src/tracks/track_object.cpp
|
||||
src/tracks/check_lap.cpp
|
||||
src/tracks/check_line.cpp
|
||||
src/tracks/track_sector.cpp
|
||||
src/tracks/track.cpp
|
||||
src/tracks/track_object_manager.cpp
|
||||
src/tracks/ambient_light_sphere.cpp
|
||||
src/tracks/track_manager.cpp
|
||||
src/tracks/quad_graph.cpp
|
||||
src/input/input_manager.cpp
|
||||
src/input/device_manager.cpp
|
||||
src/input/binding.cpp
|
||||
src/input/wiimote_manager.cpp
|
||||
src/input/input_device.cpp
|
||||
src/config/device_config.cpp
|
||||
src/config/stk_config.cpp
|
||||
src/config/user_config.cpp
|
||||
src/network/kart_update_message.cpp
|
||||
src/network/race_info_message.cpp
|
||||
src/network/network_kart.cpp
|
||||
src/network/connect_message.cpp
|
||||
src/network/message.cpp
|
||||
src/network/network_manager.cpp
|
||||
src/network/kart_control_message.cpp
|
||||
src/network/race_state.cpp
|
||||
src/network/race_result_message.cpp
|
||||
src/graphics/camera.cpp
|
||||
src/graphics/shadow.cpp
|
||||
src/graphics/slip_stream.cpp
|
||||
src/graphics/irr_driver.cpp
|
||||
src/graphics/hit_sfx.cpp
|
||||
src/graphics/particle_emitter.cpp
|
||||
src/graphics/hardware_skinning.cpp
|
||||
src/graphics/post_processing.cpp
|
||||
src/graphics/CBatchingMesh.cpp
|
||||
src/graphics/explosion.cpp
|
||||
src/graphics/referee.cpp
|
||||
src/graphics/material_manager.cpp
|
||||
src/graphics/stars.cpp
|
||||
src/graphics/rain.cpp
|
||||
src/graphics/skid_marks.cpp
|
||||
src/graphics/mesh_tools.cpp
|
||||
src/graphics/particle_kind_manager.cpp
|
||||
src/graphics/particle_kind.cpp
|
||||
src/graphics/material.cpp
|
||||
src/graphics/lod_node.cpp
|
||||
src/graphics/moving_texture.cpp
|
||||
src/graphics/per_camera_node.cpp
|
||||
src/race/race_manager.cpp
|
||||
src/race/highscores.cpp
|
||||
src/race/grand_prix_data.cpp
|
||||
src/race/highscore_manager.cpp
|
||||
src/race/grand_prix_manager.cpp
|
||||
src/race/history.cpp
|
||||
src/physics/btKart.cpp
|
||||
src/physics/btUprightConstraint.cpp
|
||||
src/physics/triangle_mesh.cpp
|
||||
src/physics/physical_object.cpp
|
||||
src/physics/btKartRaycast.cpp
|
||||
src/physics/physics.cpp
|
||||
src/physics/irr_debug_drawer.cpp
|
||||
src/main.cpp
|
||||
src/modes/game_tutorial.cpp
|
||||
src/modes/world_status.cpp
|
||||
src/modes/world_with_rank.cpp
|
||||
src/modes/standard_race.cpp
|
||||
src/modes/linear_world.cpp
|
||||
src/modes/profile_world.cpp
|
||||
src/modes/world.cpp
|
||||
src/modes/three_strikes_battle.cpp
|
||||
src/modes/tutorial_race.cpp
|
||||
src/modes/follow_the_leader.cpp
|
||||
src/modes/overworld.cpp
|
||||
)
|
@ -1,8 +1,14 @@
|
||||
# CMakeLists.txt - wiiuse
|
||||
|
||||
#include_directories(".")
|
||||
|
||||
add_library(wiiuse
|
||||
classic.c events.c io.c io_win.c nunchuk.c
|
||||
dynamics.c guitar_hero_3.c io_nix.c ir.c wiiuse.c
|
||||
)
|
||||
classic.c
|
||||
dynamics.c
|
||||
events.c
|
||||
guitar_hero_3.c
|
||||
io.c
|
||||
io_nix.c
|
||||
io_win.c
|
||||
ir.c
|
||||
nunchuk.c
|
||||
wiiuse.c
|
||||
)
|
||||
|
@ -1,452 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
.PHONY : default_target
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canoncical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/bin/cmake -E remove -f
|
||||
|
||||
# The program to use to edit the cache.
|
||||
CMAKE_EDIT_COMMAND = /usr/bin/cmake-gui
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /home/funto/projets/stk/trunk
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /home/funto/projets/stk/trunk
|
||||
|
||||
#=============================================================================
|
||||
# Targets provided globally by CMake.
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
|
||||
/usr/bin/cmake-gui -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : edit_cache
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache/fast: edit_cache
|
||||
.PHONY : edit_cache/fast
|
||||
|
||||
# Special rule for the target install
|
||||
install: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
/usr/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install
|
||||
|
||||
# Special rule for the target install
|
||||
install/fast: preinstall/fast
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
|
||||
/usr/bin/cmake -P cmake_install.cmake
|
||||
.PHONY : install/fast
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
|
||||
/usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
||||
.PHONY : install/local
|
||||
|
||||
# Special rule for the target install/local
|
||||
install/local/fast: install/local
|
||||
.PHONY : install/local/fast
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip: preinstall
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
|
||||
/usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
||||
.PHONY : install/strip
|
||||
|
||||
# Special rule for the target install/strip
|
||||
install/strip/fast: install/strip
|
||||
.PHONY : install/strip/fast
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
|
||||
.PHONY : list_install_components
|
||||
|
||||
# Special rule for the target list_install_components
|
||||
list_install_components/fast: list_install_components
|
||||
.PHONY : list_install_components/fast
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
||||
/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : rebuild_cache
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache/fast: rebuild_cache
|
||||
.PHONY : rebuild_cache/fast
|
||||
|
||||
# The main all target
|
||||
all: cmake_check_build_system
|
||||
cd /home/funto/projets/stk/trunk && $(CMAKE_COMMAND) -E cmake_progress_start /home/funto/projets/stk/trunk/CMakeFiles /home/funto/projets/stk/trunk/src/wiiuse/CMakeFiles/progress.marks
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f CMakeFiles/Makefile2 src/wiiuse/all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /home/funto/projets/stk/trunk/CMakeFiles 0
|
||||
.PHONY : all
|
||||
|
||||
# The main clean target
|
||||
clean:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f CMakeFiles/Makefile2 src/wiiuse/clean
|
||||
.PHONY : clean
|
||||
|
||||
# The main clean target
|
||||
clean/fast: clean
|
||||
.PHONY : clean/fast
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall: all
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f CMakeFiles/Makefile2 src/wiiuse/preinstall
|
||||
.PHONY : preinstall
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall/fast:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f CMakeFiles/Makefile2 src/wiiuse/preinstall
|
||||
.PHONY : preinstall/fast
|
||||
|
||||
# clear depends
|
||||
depend:
|
||||
cd /home/funto/projets/stk/trunk && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||
.PHONY : depend
|
||||
|
||||
# Convenience name for target.
|
||||
src/wiiuse/CMakeFiles/wiiuse.dir/rule:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f CMakeFiles/Makefile2 src/wiiuse/CMakeFiles/wiiuse.dir/rule
|
||||
.PHONY : src/wiiuse/CMakeFiles/wiiuse.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
wiiuse: src/wiiuse/CMakeFiles/wiiuse.dir/rule
|
||||
.PHONY : wiiuse
|
||||
|
||||
# fast build rule for target.
|
||||
wiiuse/fast:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/build
|
||||
.PHONY : wiiuse/fast
|
||||
|
||||
classic.o: classic.c.o
|
||||
.PHONY : classic.o
|
||||
|
||||
# target to build an object file
|
||||
classic.c.o:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/classic.c.o
|
||||
.PHONY : classic.c.o
|
||||
|
||||
classic.i: classic.c.i
|
||||
.PHONY : classic.i
|
||||
|
||||
# target to preprocess a source file
|
||||
classic.c.i:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/classic.c.i
|
||||
.PHONY : classic.c.i
|
||||
|
||||
classic.s: classic.c.s
|
||||
.PHONY : classic.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
classic.c.s:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/classic.c.s
|
||||
.PHONY : classic.c.s
|
||||
|
||||
dynamics.o: dynamics.c.o
|
||||
.PHONY : dynamics.o
|
||||
|
||||
# target to build an object file
|
||||
dynamics.c.o:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/dynamics.c.o
|
||||
.PHONY : dynamics.c.o
|
||||
|
||||
dynamics.i: dynamics.c.i
|
||||
.PHONY : dynamics.i
|
||||
|
||||
# target to preprocess a source file
|
||||
dynamics.c.i:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/dynamics.c.i
|
||||
.PHONY : dynamics.c.i
|
||||
|
||||
dynamics.s: dynamics.c.s
|
||||
.PHONY : dynamics.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
dynamics.c.s:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/dynamics.c.s
|
||||
.PHONY : dynamics.c.s
|
||||
|
||||
events.o: events.c.o
|
||||
.PHONY : events.o
|
||||
|
||||
# target to build an object file
|
||||
events.c.o:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/events.c.o
|
||||
.PHONY : events.c.o
|
||||
|
||||
events.i: events.c.i
|
||||
.PHONY : events.i
|
||||
|
||||
# target to preprocess a source file
|
||||
events.c.i:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/events.c.i
|
||||
.PHONY : events.c.i
|
||||
|
||||
events.s: events.c.s
|
||||
.PHONY : events.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
events.c.s:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/events.c.s
|
||||
.PHONY : events.c.s
|
||||
|
||||
guitar_hero_3.o: guitar_hero_3.c.o
|
||||
.PHONY : guitar_hero_3.o
|
||||
|
||||
# target to build an object file
|
||||
guitar_hero_3.c.o:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/guitar_hero_3.c.o
|
||||
.PHONY : guitar_hero_3.c.o
|
||||
|
||||
guitar_hero_3.i: guitar_hero_3.c.i
|
||||
.PHONY : guitar_hero_3.i
|
||||
|
||||
# target to preprocess a source file
|
||||
guitar_hero_3.c.i:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/guitar_hero_3.c.i
|
||||
.PHONY : guitar_hero_3.c.i
|
||||
|
||||
guitar_hero_3.s: guitar_hero_3.c.s
|
||||
.PHONY : guitar_hero_3.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
guitar_hero_3.c.s:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/guitar_hero_3.c.s
|
||||
.PHONY : guitar_hero_3.c.s
|
||||
|
||||
io.o: io.c.o
|
||||
.PHONY : io.o
|
||||
|
||||
# target to build an object file
|
||||
io.c.o:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/io.c.o
|
||||
.PHONY : io.c.o
|
||||
|
||||
io.i: io.c.i
|
||||
.PHONY : io.i
|
||||
|
||||
# target to preprocess a source file
|
||||
io.c.i:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/io.c.i
|
||||
.PHONY : io.c.i
|
||||
|
||||
io.s: io.c.s
|
||||
.PHONY : io.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
io.c.s:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/io.c.s
|
||||
.PHONY : io.c.s
|
||||
|
||||
io_nix.o: io_nix.c.o
|
||||
.PHONY : io_nix.o
|
||||
|
||||
# target to build an object file
|
||||
io_nix.c.o:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/io_nix.c.o
|
||||
.PHONY : io_nix.c.o
|
||||
|
||||
io_nix.i: io_nix.c.i
|
||||
.PHONY : io_nix.i
|
||||
|
||||
# target to preprocess a source file
|
||||
io_nix.c.i:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/io_nix.c.i
|
||||
.PHONY : io_nix.c.i
|
||||
|
||||
io_nix.s: io_nix.c.s
|
||||
.PHONY : io_nix.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
io_nix.c.s:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/io_nix.c.s
|
||||
.PHONY : io_nix.c.s
|
||||
|
||||
io_win.o: io_win.c.o
|
||||
.PHONY : io_win.o
|
||||
|
||||
# target to build an object file
|
||||
io_win.c.o:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/io_win.c.o
|
||||
.PHONY : io_win.c.o
|
||||
|
||||
io_win.i: io_win.c.i
|
||||
.PHONY : io_win.i
|
||||
|
||||
# target to preprocess a source file
|
||||
io_win.c.i:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/io_win.c.i
|
||||
.PHONY : io_win.c.i
|
||||
|
||||
io_win.s: io_win.c.s
|
||||
.PHONY : io_win.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
io_win.c.s:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/io_win.c.s
|
||||
.PHONY : io_win.c.s
|
||||
|
||||
ir.o: ir.c.o
|
||||
.PHONY : ir.o
|
||||
|
||||
# target to build an object file
|
||||
ir.c.o:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/ir.c.o
|
||||
.PHONY : ir.c.o
|
||||
|
||||
ir.i: ir.c.i
|
||||
.PHONY : ir.i
|
||||
|
||||
# target to preprocess a source file
|
||||
ir.c.i:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/ir.c.i
|
||||
.PHONY : ir.c.i
|
||||
|
||||
ir.s: ir.c.s
|
||||
.PHONY : ir.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
ir.c.s:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/ir.c.s
|
||||
.PHONY : ir.c.s
|
||||
|
||||
nunchuk.o: nunchuk.c.o
|
||||
.PHONY : nunchuk.o
|
||||
|
||||
# target to build an object file
|
||||
nunchuk.c.o:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/nunchuk.c.o
|
||||
.PHONY : nunchuk.c.o
|
||||
|
||||
nunchuk.i: nunchuk.c.i
|
||||
.PHONY : nunchuk.i
|
||||
|
||||
# target to preprocess a source file
|
||||
nunchuk.c.i:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/nunchuk.c.i
|
||||
.PHONY : nunchuk.c.i
|
||||
|
||||
nunchuk.s: nunchuk.c.s
|
||||
.PHONY : nunchuk.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
nunchuk.c.s:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/nunchuk.c.s
|
||||
.PHONY : nunchuk.c.s
|
||||
|
||||
wiiuse.o: wiiuse.c.o
|
||||
.PHONY : wiiuse.o
|
||||
|
||||
# target to build an object file
|
||||
wiiuse.c.o:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/wiiuse.c.o
|
||||
.PHONY : wiiuse.c.o
|
||||
|
||||
wiiuse.i: wiiuse.c.i
|
||||
.PHONY : wiiuse.i
|
||||
|
||||
# target to preprocess a source file
|
||||
wiiuse.c.i:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/wiiuse.c.i
|
||||
.PHONY : wiiuse.c.i
|
||||
|
||||
wiiuse.s: wiiuse.c.s
|
||||
.PHONY : wiiuse.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
wiiuse.c.s:
|
||||
cd /home/funto/projets/stk/trunk && $(MAKE) -f src/wiiuse/CMakeFiles/wiiuse.dir/build.make src/wiiuse/CMakeFiles/wiiuse.dir/wiiuse.c.s
|
||||
.PHONY : wiiuse.c.s
|
||||
|
||||
# Help Target
|
||||
help:
|
||||
@echo "The following are some of the valid targets for this Makefile:"
|
||||
@echo "... all (the default if no target is provided)"
|
||||
@echo "... clean"
|
||||
@echo "... depend"
|
||||
@echo "... edit_cache"
|
||||
@echo "... install"
|
||||
@echo "... install/local"
|
||||
@echo "... install/strip"
|
||||
@echo "... list_install_components"
|
||||
@echo "... rebuild_cache"
|
||||
@echo "... wiiuse"
|
||||
@echo "... classic.o"
|
||||
@echo "... classic.i"
|
||||
@echo "... classic.s"
|
||||
@echo "... dynamics.o"
|
||||
@echo "... dynamics.i"
|
||||
@echo "... dynamics.s"
|
||||
@echo "... events.o"
|
||||
@echo "... events.i"
|
||||
@echo "... events.s"
|
||||
@echo "... guitar_hero_3.o"
|
||||
@echo "... guitar_hero_3.i"
|
||||
@echo "... guitar_hero_3.s"
|
||||
@echo "... io.o"
|
||||
@echo "... io.i"
|
||||
@echo "... io.s"
|
||||
@echo "... io_nix.o"
|
||||
@echo "... io_nix.i"
|
||||
@echo "... io_nix.s"
|
||||
@echo "... io_win.o"
|
||||
@echo "... io_win.i"
|
||||
@echo "... io_win.s"
|
||||
@echo "... ir.o"
|
||||
@echo "... ir.i"
|
||||
@echo "... ir.s"
|
||||
@echo "... nunchuk.o"
|
||||
@echo "... nunchuk.i"
|
||||
@echo "... nunchuk.s"
|
||||
@echo "... wiiuse.o"
|
||||
@echo "... wiiuse.i"
|
||||
@echo "... wiiuse.s"
|
||||
.PHONY : help
|
||||
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
cd /home/funto/projets/stk/trunk && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
@ -1,4 +1,11 @@
|
||||
#! /bin/sh
|
||||
FILES=`find src -path 'src/bullet' -prune -o -path 'src/ide' -prune -o -path 'src/wiiuse' -prune -o -regex ".*\.[ch]p*" -exec echo "{} " \;`
|
||||
echo $FILES
|
||||
sed "s/%LIST_OF_FILES%/$(echo $FILES | sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/&/\\\&/g')/g" CMakeLists.in.txt > CMakeLists.txt
|
||||
#!/bin/sh
|
||||
DEST_FILE="sources.cmake"
|
||||
|
||||
echo "# Generated by $0. Do not edit this file manually." > $DEST_FILE
|
||||
echo "set(STK_SOURCES" >> $DEST_FILE
|
||||
find src \
|
||||
-path 'src/bullet' -prune -o \
|
||||
-path 'src/ide' -prune -o \
|
||||
-path 'src/wiiuse' -prune -o \
|
||||
-regex ".*\.cpp" -print >> $DEST_FILE
|
||||
echo ")" >> $DEST_FILE
|
||||
|
Loading…
Reference in New Issue
Block a user