mirror of https://github.com/PCSX2/pcsx2.git
cmake: Update some missing files. Compile Devel by default.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3056 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
d7ac8fd81c
commit
460728393a
|
@ -30,14 +30,12 @@ set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
|
||||||
include(Pcsx2Utils)
|
include(Pcsx2Utils)
|
||||||
include(SearchForStuff)
|
include(SearchForStuff)
|
||||||
|
|
||||||
set(CMAKE_BUILD_TYPE Devel)
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# if no build type is set, use Debug as default
|
# if no build type is set, use Devel as default
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "")
|
if(CMAKE_BUILD_TYPE STREQUAL "")
|
||||||
set(CMAKE_BUILD_TYPE Debug)
|
set(CMAKE_BUILD_TYPE Debug)
|
||||||
message(STATUS "BuildType set to Debug!!! by default")
|
message(STATUS "BuildType set to Devel by default")
|
||||||
endif(CMAKE_BUILD_TYPE STREQUAL "")
|
endif(CMAKE_BUILD_TYPE STREQUAL "")
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -105,6 +105,7 @@ set(UtilitiesSources
|
||||||
Console.cpp
|
Console.cpp
|
||||||
EventSource.cpp
|
EventSource.cpp
|
||||||
Exceptions.cpp
|
Exceptions.cpp
|
||||||
|
FastFormatString.cpp
|
||||||
HashTools.cpp
|
HashTools.cpp
|
||||||
Linux/LnxHostSys.cpp
|
Linux/LnxHostSys.cpp
|
||||||
Linux/LnxMisc.cpp
|
Linux/LnxMisc.cpp
|
||||||
|
@ -115,6 +116,7 @@ set(UtilitiesSources
|
||||||
pxCheckBox.cpp
|
pxCheckBox.cpp
|
||||||
pxRadioPanel.cpp
|
pxRadioPanel.cpp
|
||||||
pxStaticText.cpp
|
pxStaticText.cpp
|
||||||
|
pxWindowTextWriter.cpp
|
||||||
Semaphore.cpp
|
Semaphore.cpp
|
||||||
StringHelpers.cpp
|
StringHelpers.cpp
|
||||||
ThreadingDialogs.cpp
|
ThreadingDialogs.cpp
|
||||||
|
|
|
@ -0,0 +1,50 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Script default parameter
|
||||||
|
MAX_DEPTH=1
|
||||||
|
DIR=$PWD
|
||||||
|
CMAKE_FILE=CMakeLists.txt
|
||||||
|
SKIP_H=FALSE
|
||||||
|
|
||||||
|
## Help message
|
||||||
|
help()
|
||||||
|
{
|
||||||
|
cat <<EOF
|
||||||
|
This script detects '.cpp/.h' files that are in directory (and sub) but not in the current cmake.
|
||||||
|
options:
|
||||||
|
-dir <dirname> : give the directory to check. Default '.'
|
||||||
|
-help : print this help message and exit
|
||||||
|
-max_depth <depth> : how many depth to check missing file. Default 1
|
||||||
|
-skip : skip the check of '.h' file. Disable by default
|
||||||
|
EOF
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
## Handle option
|
||||||
|
while [ -n "$1" ]; do
|
||||||
|
case $1 in
|
||||||
|
-help|-h) help;shift 1;; # appel de la fonction help
|
||||||
|
-skip|-s) SKIP_H=TRUE;shift 1;;
|
||||||
|
-dir|-d) DIR=$2;shift 2;;
|
||||||
|
-max_depth|-m) MAX_DEPTH=$2;shift 2;;
|
||||||
|
--) shift;break;;
|
||||||
|
-*) echo "ERROR: $1 option does not exists. Use -h for help";exit 1;;
|
||||||
|
*) break;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
## Main sript
|
||||||
|
for file in `find $DIR -maxdepth $MAX_DEPTH -name "*.cpp"` ; do
|
||||||
|
PATTERN=`basename $file`
|
||||||
|
grep $PATTERN $DIR/$CMAKE_FILE > /dev/null || echo $file is missing in $CMAKE_FILE
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "${SKIP_H}" = "FALSE" ] ; then
|
||||||
|
for file in `find $DIR -maxdepth $MAX_DEPTH -name "*.h"` ; do
|
||||||
|
PATTERN=`basename $file`
|
||||||
|
grep $PATTERN $DIR/$CMAKE_FILE > /dev/null || echo $file is missing in $CMAKE_FILE
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
exit
|
|
@ -144,6 +144,7 @@ set(pcsx2Sources
|
||||||
MMI.cpp
|
MMI.cpp
|
||||||
MTGS.cpp
|
MTGS.cpp
|
||||||
Patch.cpp
|
Patch.cpp
|
||||||
|
Patch_Memory.cpp
|
||||||
Pcsx2Config.cpp
|
Pcsx2Config.cpp
|
||||||
pcsx2hostfs.cpp
|
pcsx2hostfs.cpp
|
||||||
PluginManager.cpp
|
PluginManager.cpp
|
||||||
|
@ -193,7 +194,9 @@ set(pcsx2Headers
|
||||||
Counters.h
|
Counters.h
|
||||||
Dmac.h
|
Dmac.h
|
||||||
Dump.h
|
Dump.h
|
||||||
|
DataBase_Loader.h
|
||||||
Elfheader.h
|
Elfheader.h
|
||||||
|
File_Reader.h
|
||||||
Gif.h
|
Gif.h
|
||||||
GS.h
|
GS.h
|
||||||
Hardware.h
|
Hardware.h
|
||||||
|
@ -211,6 +214,7 @@ set(pcsx2Headers
|
||||||
MemoryTypes.h
|
MemoryTypes.h
|
||||||
NakedAsm.h
|
NakedAsm.h
|
||||||
Patch.h
|
Patch.h
|
||||||
|
Patch_Obsolete.h
|
||||||
PathDefs.h
|
PathDefs.h
|
||||||
Plugins.h
|
Plugins.h
|
||||||
PrecompiledHeader.h
|
PrecompiledHeader.h
|
||||||
|
@ -297,6 +301,7 @@ set(pcsx2GuiSources
|
||||||
gui/Dialogs/AppConfigDialog.cpp
|
gui/Dialogs/AppConfigDialog.cpp
|
||||||
gui/Dialogs/AssertionDialog.cpp
|
gui/Dialogs/AssertionDialog.cpp
|
||||||
gui/Panels/BaseApplicableConfigPanel.cpp
|
gui/Panels/BaseApplicableConfigPanel.cpp
|
||||||
|
gui/Panels/MemoryCardListView.cpp
|
||||||
gui/Dialogs/BaseConfigurationDialog.cpp
|
gui/Dialogs/BaseConfigurationDialog.cpp
|
||||||
gui/Dialogs/BaseConfigurationDialog.inl
|
gui/Dialogs/BaseConfigurationDialog.inl
|
||||||
gui/Dialogs/BiosSelectorDialog.cpp
|
gui/Dialogs/BiosSelectorDialog.cpp
|
||||||
|
|
Loading…
Reference in New Issue