Commit a modified copy of the CMake files from issue 513. (Note: work in progress. Not currently for general use. Builds made using cmake are currently not supported, and unlikely to work properly.)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2464 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42
2010-01-21 15:12:50 +00:00
parent 0373c47d3a
commit cbb2000400
32 changed files with 2641 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
# make bzip2
# build local bzip2
if(localBZip2)
add_subdirectory(bzip2)
endif(localBZip2)
# make zlib
# build local zlib
if(localZLIB)
add_subdirectory(zlib)
endif(localZLIB)
# make SoundTouch
if(localSoundTouch)
add_subdirectory(SoundTouch)
endif(localSoundTouch)
+53
View File
@@ -0,0 +1,53 @@
# SoundTouch library
# library name
set(SoundTouchName SoundTouch)
# variable with all sources of this library
set(SoundTouchSources
AAFilter.cpp
FIFOSampleBuffer.cpp
FIRFilter.cpp
RateTransposer.cpp
SoundTouch.cpp
TDStretch.cpp
WavFile.cpp
cpu_detect_x86_gcc.cpp
mmx_optimized.cpp
sse_optimized.cpp)
# variable with all headers of this library
set(SoundTouchHeaders
AAFilter.h
BPMDetect.h
FIFOSampleBuffer.h
FIFOSamplePipe.h
FIRFilter.h
RateTransposer.h
SITypes.h
SoundTouch.h
TDStretch.h
WavFile.h
cpu_detect.h)
# add library
add_library(${SoundTouchName} STATIC ${SoundTouchSources})
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(CMAKE_C_FLAGS_DEBUG "-g -O0 -march=athlon-xp -march=prescott")
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -march=athlon-xp -march=prescott")
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
set(CMAKE_C_FLAGS_DEVEL "-O1 -g -W -march=athlon-xp -march=prescott")
set(CMAKE_CXX_FLAGS_DEVEL "-O1 -g -W -march=athlon-xp -march=prescott")
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
set(CMAKE_C_FLAGS_RELEASE "-fexpensive-optimizations -O3 -Os -W -march=athlon-xp -march=prescott")
set(CMAKE_CXX_FLAGS_RELEASE "-fexpensive-optimizations -O3 -Os -W -march=athlon-xp -march=prescott")
endif(CMAKE_BUILD_TYPE STREQUAL Release)
+42
View File
@@ -0,0 +1,42 @@
# bzip2 library
# library name
set(bzip2Name bzip2)
# variable with all sources of this library
set(bzip2Sources
blocksort.c
bzlib.c
compress.c
crctable.c
decompress.c
huffman.c
randtable.c)
# variable with all headers of this library
set(bzip2Headers
bzlib.h
bzlib_private.h)
# add library
add_library(${bzip2Name} STATIC ${bzip2Sources} ${bzip2Headers})
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(CMAKE_C_FLAGS_DEBUG "-g -O0 -march=athlon-xp -march=prescott")
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -march=athlon-xp -march=prescott")
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
set(CMAKE_C_FLAGS_DEVEL "-O1 -g -W -march=athlon-xp -march=prescott")
set(CMAKE_CXX_FLAGS_DEVEL "-O1 -g -W -march=athlon-xp -march=prescott")
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
set(CMAKE_C_FLAGS_RELEASE "-fexpensive-optimizations -O3 -Os -W -march=athlon-xp -march=prescott")
set(CMAKE_CXX_FLAGS_RELEASE "-fexpensive-optimizations -O3 -Os -W -march=athlon-xp -march=prescott")
endif(CMAKE_BUILD_TYPE STREQUAL Release)
+54
View File
@@ -0,0 +1,54 @@
# zlib library
# library name
set(zlibName zlib)
# variable with all sources of this library
set(zlibSources
adler32.c
compress.c
crc32.c
deflate.c
gzio.c
infback.c
inffast.c
inflate.c
inftrees.c
trees.c
uncompr.c
zutil.c)
# variable with all headers of this library
set(zlibHeaders
crc32.h
deflate.h
inffast.h
inffixed.h
inflate.h
inftrees.h
trees.h
zconf.h
zlib.h
zutil.h)
# add library
add_library(${zlibName} STATIC ${zlibSources} ${zlibHeaders})
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(CMAKE_C_FLAGS_DEBUG "-W -g -O0")
set(CMAKE_CXX_FLAGS_DEBUG "-W -g -O0")
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
set(CMAKE_C_FLAGS_DEVEL "-O2 -W")
set(CMAKE_CXX_FLAGS_DEVEL "-O2 -W")
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
set(CMAKE_C_FLAGS_RELEASE "-fexpensive-optimizations -O3 -W")
set(CMAKE_CXX_FLAGS_RELEASE "-fexpensive-optimizations -O3 -W")
endif(CMAKE_BUILD_TYPE STREQUAL Release)
+64
View File
@@ -0,0 +1,64 @@
# Project Name
project(Pcsx2)
# need cmake version >=2.6
cmake_minimum_required(VERSION 2.6)
# include modules
include(${PROJECT_SOURCE_DIR}/cmake/Pcsx2Utils.cmake)
include(${PROJECT_SOURCE_DIR}/cmake/SearchForStuff.cmake)
#-------------------------------------------------------------------------------
# if no build type is set, use Debug as default
#-------------------------------------------------------------------------------
if(CMAKE_BUILD_TYPE STREQUAL "")
set(CMAKE_BUILD_TYPE Debug)
message(STATUS "BuildType set to Debug!!! by default")
endif(CMAKE_BUILD_TYPE STREQUAL "")
#-------------------------------------------------------------------------------
# add additional project-wide include directories
include_directories(${PROJECT_SOURCE_DIR}/3rdparty
${PROJECT_SOURCE_DIR}/common/include
${PROJECT_SOURCE_DIR}/common/include/Utilities
${PROJECT_SOURCE_DIR}/common/include/x86emitter)
# make 3rdParty
add_subdirectory(3rdparty)
# make common
add_subdirectory(common)
# make tools
add_subdirectory(tools)
# make pcsx2
add_subdirectory(pcsx2)
# make plugins
add_subdirectory(plugins)
#-------------------------------------------------------------------------------
# Resources
#-------------------------------------------------------------------------------
# This target is used to convert all binary Resources to c/c++-Header files.
# It is always considered as out-of-date, so it is build every time.
#-------------------------------------------------------------------------------
# add resources here
set(resourceList AppIcon16.png
AppIcon32.png
AppIcon64.png
BackgroundLogo.png
ButtonIcon_Camera.png
ConfigIcon_Cpu.png
ConfigIcon_Gamefixes.png
ConfigIcon_Paths.png
ConfigIcon_Plugins.png
ConfigIcon_Speedhacks.png
ConfigIcon_Video.png
Dualshock.jpg)
createResourceTarget(${resourceList})
#-------------------------------------------------------------------------------
+72
View File
@@ -0,0 +1,72 @@
# Find a NVidia Cg Toolkit installation
# This module finds a NVidia Cg Toolkit installation.
# CG_FOUND found Cg
# CG_INCLUDE_DIRS include path to cg.h
# CG_LIBRARIES path to Cg libs
# CG_COMPILER path to Cg compiler
# find Cg on Windows
if(WIN32)
# find Cg compiler
find_program(CG_COMPILER cgc PATHS
"C:/Program Files/NVIDIA Corporation/cg/bin"
DOC "Path to the Cg compiler.")
# find Cg include
find_path(CG_INCLUDE_DIRS NAMES Cg/cg.h GL/glext.h PATHS
"C:/Program Files/NVIDIA Corporation/cg/include"
DOC "Path to the Cg/GL includes.")
# find Cg libraries
# Cg library
find_library(CG_LIBRARY NAMES Cg PATHS
"C:/Program Files/NVIDIA Corporation/cg/lib"
DOC "Path to the Cg library.")
# Cg GL library
find_library(CG_GL_LIBRARY NAMES CgGL PATHS
"C:/Program Files/NVIDIA Corporation/cg/lib"
DOC "Path to the CgGL library.")
set(CG_LIBRARIES ${CG_LIBRARY} ${CG_GL_LIBRARY})
else(WIN32) # Unix based OS
# find Cg compiler
find_program(CG_COMPILER cgc PATHS
/usr/bin
/usr/local/bin
DOC "Path to the Cg compiler.")
# find Cg include
find_path(CG_INCLUDE_DIRS NAMES Cg/cg.h GL/glext.h PATHS
/usr/include
/usr/local/include
/opt/nvidia-cg-toolkit/include
DOC "Path to the Cg/GL includes.")
# find Cg libraries
# Cg library
find_library(CG_LIBRARY NAMES Cg PATHS
/usr/include
/usr/local/include
/opt/nvidia-cg-toolkit/include
DOC "Path to the Cg library.")
# Cg GL library
find_library(CG_GL_LIBRARY NAMES CgGL PATHS
/usr/include
/usr/local/include
/opt/nvidia-cg-toolkit/include
DOC "Path to the CgGL library.")
set(CG_LIBRARIES ${CG_LIBRARY} ${CG_GL_LIBRARY})
endif(WIN32)
# handle the QUIETLY and REQUIRED arguments and set CG_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Cg DEFAULT_MSG CG_LIBRARIES CG_INCLUDE_DIRS)
mark_as_advanced(CG_FOUND CG_INCLUDE_DIRS CG_LIBRARIES CG_COMPILER)
+47
View File
@@ -0,0 +1,47 @@
#
# Try to find GLEW library and include path.
# Once done this will define
#
# GLEW_FOUND
# GLEW_INCLUDE_PATH
# GLEW_LIBRARY
#
IF (WIN32)
FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h
$ENV{PROGRAMFILES}/GLEW/include
${PROJECT_SOURCE_DIR}/src/nvgl/glew/include
DOC "The directory where GL/glew.h resides")
FIND_LIBRARY( GLEW_LIBRARY
NAMES glew GLEW glew32 glew32s
PATHS
$ENV{PROGRAMFILES}/GLEW/lib
${PROJECT_SOURCE_DIR}/src/nvgl/glew/bin
${PROJECT_SOURCE_DIR}/src/nvgl/glew/lib
DOC "The GLEW library")
ELSE (WIN32)
FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h
/usr/include
/usr/local/include
/sw/include
/opt/local/include
DOC "The directory where GL/glew.h resides")
FIND_LIBRARY( GLEW_LIBRARY
NAMES GLEW glew
PATHS
/usr/lib64
/usr/lib
/usr/local/lib64
/usr/local/lib
/sw/lib
/opt/local/lib
DOC "The GLEW library")
ENDIF (WIN32)
IF (GLEW_INCLUDE_PATH)
SET( GLEW_FOUND 1 CACHE STRING "Set to 1 if GLEW is found, 0 otherwise")
ELSE (GLEW_INCLUDE_PATH)
SET( GLEW_FOUND 0 CACHE STRING "Set to 1 if GLEW is found, 0 otherwise")
ENDIF (GLEW_INCLUDE_PATH)
MARK_AS_ADVANCED( GLEW_FOUND )
+26
View File
@@ -0,0 +1,26 @@
# Try to find SoundTouch
# Once done, this will define
#
# SOUNDTOUCH_FOUND - system has SoundTouch
# SOUNDTOUCH_INCLUDE_DIR - the SoundTouch include directories
# SOUNDTOUCH_LIBRARIES - link these to use SoundTouch
if(SoundTouch_INCLUDE_DIR AND SoundTouch_LIBRARIES)
set(SoundTouch_FIND_QUIETLY TRUE)
endif(SoundTouch_INCLUDE_DIR AND SoundTouch_LIBRARIES)
# include dir
find_path(SoundTouch_INCLUDE_DIR soundtouch/SoundTouch.h)
# finally the library itself
find_library(tmpLibBPM NAMES BPM SoundTouch)
find_library(tmpLibST NAMES SoundTouch)
set(SoundTouch_LIBRARIES ${tmpLibBPM} ${tmpLibST})
# handle the QUIETLY and REQUIRED arguments and set SOUNDTOUCH_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(SoundTouch DEFAULT_MSG SoundTouch_LIBRARIES SoundTouch_INCLUDE_DIR)
mark_as_advanced(SoundTouch_LIBRARIES SoundTouch_INCLUDE_DIR)
+56
View File
@@ -0,0 +1,56 @@
# additonal cmake macros and functions
#-------------------------------------------------------------------------------
# createResourceTarget
#-------------------------------------------------------------------------------
# This function is used to generate header files, used as resources.
# A list of Resources taken as input parameter.
#-------------------------------------------------------------------------------
function(createResourceTarget)
# working directory
set(workdir ${PROJECT_SOURCE_DIR}/pcsx2/gui/Resources)
# create dummy target depending on bin2cpp
add_custom_target(Resources
DEPENDS bin2cpp)
# create a custom command for every resource file
foreach(entry IN LISTS ARGV)
# create custom command and assign to target Resources
add_custom_command(TARGET Resources POST_BUILD
COMMAND bin2cpp ${entry}
WORKING_DIRECTORY ${workdir})
endforeach(entry)
endfunction(createResourceTarget)
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# detectOperatingSystem
#-------------------------------------------------------------------------------
# This function detects on which OS cmake is run and set a flag to control the
# build process. Supported OS: Linux, MacOSX, Windows
#-------------------------------------------------------------------------------
function(detectOperatingSystem)
# nothing detected yet
set(Linux FALSE PARENT_SCOPE)
set(MacOSX FALSE PARENT_SCOPE)
set(Windows FALSE PARENT_SCOPE)
# check if we are on Linux
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(Linux TRUE PARENT_SCOPE)
endif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
# check if we are on MacOSX
if(APPLE)
set(MacOSX TRUE PARENT_SCOPE)
endif(APPLE)
# check if we are on Windows
if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
set(Windows TRUE PARENT_SCOPE)
endif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
endfunction(detectOperatingSystem)
#-------------------------------------------------------------------------------
+249
View File
@@ -0,0 +1,249 @@
# Search for additional software.
#-------------------------------------------------------------------------------
# Minmal required version of libraries
#-------------------------------------------------------------------------------
set(minimal_wxWidgets_version 2.8.0)
set(minimal_GTK2_version 2.10)
set(minimal_SDL_version 1.2)
# to set the proper dependencies and decide which plugins should be build we
# need to know on which OS we are currenty working/running
detectOperatingSystem()
#-------------------------------------------------------------------------------
# FindStuff
#-------------------------------------------------------------------------------
if(Linux)
# gtk required
find_package(GTK2 REQUIRED gtk)
# gtk found
if(GTK2_FOUND)
# add gtk include directories
include_directories(${GTK2_INCLUDE_DIRS})
#else(GTK2_FOUND)
# message(FATAL_ERROR "GTK2 libraries and include files not found.
# Please install GTK2 version ${minimal_GTK2_version} or higher.")
endif(GTK2_FOUND)
endif(Linux)
#------------------------------------------------------------
# wx required
find_package(wxWidgets REQUIRED base core adv)
# wx found
if(wxWidgets_FOUND)
include(${wxWidgets_USE_FILE})
#else(wxWidgets_FOUND)
# message(FATAL_ERROR "wxWidgets libraries and include files not found.\
# Please install wxWidgets version ${minimal_wxWidgets_version} \
# or higher.")
endif(wxWidgets_FOUND)
#------------------------------------------------------------
# zlib required
find_package(ZLIB)
# if we found zlib on the system, use it else use local one
if(ZLIB_FOUND)
# add zlib include directories
include_directories(${ZLIB_INCLUDE_DIRS})
else(ZLIB_FOUND)
# use locale one
set(localZLIB TRUE)
endif(ZLIB_FOUND)
#------------------------------------------------------------
# bzip2 optional
find_package(BZip2)
# if we found bzip2 on the system,
# use it else use local one
if(BZIP2_FOUND)
# add zlib include directories
include_directories(${BZIP2_INCLUDE_DIR})
else(BZIP2_FOUND)
# use locale one
set(localBZip2 TRUE)
endif(BZIP2_FOUND)
#------------------------------------------------------------
# OpenGL optional
find_package(OpenGL)
# opengl found
if(OPENGL_FOUND)
# add OpenGL include directories
include_directories(${OPENGL_INCLUDE_DIR})
endif(OPENGL_FOUND)
#------------------------------------------------------------
# SDL optional
find_package(SDL)
# SDL found
if(SDL_FOUND)
# add SDL include directories
include_directories(${SDL_INCLUDE_DIR})
endif(SDL_FOUND)
#------------------------------------------------------------
include(${PROJECT_SOURCE_DIR}/cmake/FindSoundTouch.cmake)
# found SoundTouch
if(SOUNDTOUCH_FOUND)
# add SoundTouch include directories
include_directories(${SoundTouch_INCLUDE_DIR})
else(SOUNDTOUCH_FOUND)
# use local one
set(localSoundTouch TRUE)
# found
set(SOUNDTOUCH_FOUND TRUE)
endif(SOUNDTOUCH_FOUND)
#------------------------------------------------------------
include(${PROJECT_SOURCE_DIR}/cmake/FindCg.cmake)
# found Cg
if(CG_FOUND)
# add Cg include directories
include_directories(${CG_INCLUDE_DIR})
endif(CG_FOUND)
#------------------------------------------------------------
# ALSA optional
find_package(ALSA)
# ALSA found
if(ALSA_FOUND)
# add ALSA include directories
include_directories(${ALSA_INCLUDE_DIRS})
endif(ALSA_FOUND)
#------------------------------------------------------------
#-------------------------------------------------------------------------------
# Plugins
#-------------------------------------------------------------------------------
# Check all plugins for additional dependencies.
# If all dependencies of a plugin are available, including OS, the plugin will
# be build.
#-------------------------------------------------------------------------------
# null plugins should work on every platform, enable them all
#---------------------------------------
# CDVDnull
#---------------------------------------
set(CDVDnull TRUE)
#---------------------------------------
#---------------------------------------
# dev9null
#---------------------------------------
set(dev9null TRUE)
#---------------------------------------
#---------------------------------------
# FWnull
#---------------------------------------
set(FWnull TRUE)
#---------------------------------------
#---------------------------------------
# GSnull
#---------------------------------------
set(GSnull TRUE)
#---------------------------------------
#---------------------------------------
# PadNull
#---------------------------------------
set(PadNull TRUE)
#---------------------------------------
#---------------------------------------
# SPU2null
#---------------------------------------
set(SPU2null TRUE)
#---------------------------------------
#---------------------------------------
# USBnull
#---------------------------------------
set(USBnull TRUE)
#---------------------------------------
#---------------------------------------
# onepad
#---------------------------------------
# requires: SDL
#---------------------------------------
if(SDL_FOUND)
set(onepad TRUE)
else(SDL_FOUND)
set(onepad FALSE)
endif(SDL_FOUND)
#---------------------------------------
#---------------------------------------
# spu2-x
#---------------------------------------
# requires: SoundTouch
#---------------------------------------
if(SOUNDTOUCH_FOUND)
set(spu2-x TRUE)
else(SOUNDTOUCH_FOUND)
set(spu2-x FALSE)
endif(SOUNDTOUCH_FOUND)
#---------------------------------------
#---------------------------------------
# zerogs
#---------------------------------------
# requires:OpenGL
#---------------------------------------
if(OPENGL_FOUND)
set(zerogs TRUE)
else(OPENGL_FOUND)
set(zerogs FALSE)
endif(OPENGL_FOUND)
#---------------------------------------
#---------------------------------------
# zerospu2
#---------------------------------------
# requires: SoundTouch
# ALSA
#---------------------------------------
if(SOUNDTOUCH_FOUND AND ALSA_FOUND)
set(zerospu2 TRUE)
else(SOUNDTOUCH_FOUND AND ALSA_FOUND)
set(zerospu2 FALSE)
endif(SOUNDTOUCH_FOUND AND ALSA_FOUND)
#---------------------------------------
#-------------------------------------------------------------------------------
# [TODO] Write CMakeLists.txt for these plugins.
set(cdvdGigaherz FALSE)
set(CDVDiso FALSE)
set(CDVDisoEFP FALSE)
set(CDVDlinuz FALSE)
set(CDVDolio FALSE)
set(CDVDpeops FALSE)
set(GSdx FALSE)
set(LilyPad FALSE)
set(PeopsSPU2 FALSE)
set(SSSPSXPAD FALSE)
set(xpad FALSE)
set(zeropad FALSE)
#-------------------------------------------------------------------------------
+5
View File
@@ -0,0 +1,5 @@
# src
add_subdirectory(src)
+7
View File
@@ -0,0 +1,7 @@
# make Utilities
add_subdirectory(Utilities)
# make x86emitter
add_subdirectory(x86emitter)
+105
View File
@@ -0,0 +1,105 @@
# Utilities library
# library name
set(UtilitiesName Utilities)
# variable with all sources of this library
set(UtilitiesSources
../../include/Utilities/EventSource.inl
../../include/Utilities/TlsVariable.inl
AlignedMalloc.cpp
CheckedStaticBox.cpp
Console.cpp
EventSource.cpp
Exceptions.cpp
HashTools.cpp
Linux/LnxHostSys.cpp
Linux/LnxMisc.cpp
Linux/LnxThreads.cpp
Mutex.cpp
PathUtils.cpp
PrecompiledHeader.cpp
pxCheckBox.cpp
pxRadioPanel.cpp
pxStaticText.cpp
Semaphore.cpp
StringHelpers.cpp
ThreadTools.cpp
vssprintf.cpp
wxGuiTools.cpp
wxHelpers.cpp
# x86/MemcpyFast.cpp
)
# collect .S files
set(UtilitiesSSources
x86/MemcpyFast.S)
# variable with all headers of this library
set(UtilitiesHeaders
../../include/Utilities/Assertions.h
../../include/Utilities/CheckedStaticBox.h
../../include/Utilities/Console.h
../../include/Utilities/Dependencies.h
../../include/Utilities/EventSource.h
../../include/Utilities/Exceptions.h
../../include/Utilities/FixedPointTypes.h
../../include/Utilities/General.h
../../include/Utilities/HashMap.h
../../include/Utilities/lnx_memzero.h
../../include/Utilities/MemcpyFast.h
../../include/Utilities/Path.h
../../include/Utilities/pxCheckBox.h
../../include/Utilities/pxRadioPanel.h
../../include/Utilities/pxStaticText.h
../../include/Utilities/RedtapeWindows.h
../../include/Utilities/SafeArray.h
../../include/Utilities/ScopedPtr.h
../../include/Utilities/StringHelpers.h
../../include/Utilities/Threading.h
../../include/Utilities/wxBaseTools.h
../../include/Utilities/wxGuiTools.h
PrecompiledHeader.h)
# change language of .S-files to c++
set_source_files_properties(${UtilitiesSSources} PROPERTIES LANGUAGE CXX)
# add library
add_library(${UtilitiesName} STATIC ${UtilitiesSources} ${UtilitiesHeaders} ${UtilitiesSSources})
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(CMAKE_C_FLAGS_DEBUG "-W -g -march=i486 -Wno-format -Wno-unused-parameter -Wno-unused-value -Wunused-variable -fno-guess-branch-probability -fno-dse -fno-tree-dse -fno-strict-aliasing -pipe -msse -msse2 -m32")
set(CMAKE_CXX_FLAGS_DEBUG "-W -g -march=i486 -Wno-format -Wno-unused-parameter -Wno-unused-value -Wunused-variable -fno-guess-branch-probability -fno-dse -fno-tree-dse -fno-strict-aliasing -pipe -msse -msse2 -m32")
# add defines
add_definitions(-DPCSX2_DEVBUILD -DPCSX2_DEBUG)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
set(CMAKE_C_FLAGS_DEVEL "-fdefer-pop -fcprop-registers -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants -fthread-jumps -fcrossjumping -foptimize-sibling-calls -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm -frerun-cse-after-loop -fcaller-saves -fpeephole2 -fsched-interblock -fsched-spec -fregmove -fstrict-overflow -fdelete-null-pointer-checks -freorder-blocks -freorder-functions -falign-functions -falign-jumps -falign-loops -falign-labels -ftree-vrp -ftree-pre -march=i486 -Wno-format -Wno-unused-parameter -Wno-unused-value -Wunused-variable -fno-guess-branch-probability -fno-dse -fno-tree-dse -fno-strict-aliasing -pipe -msse -msse2 -m32")
set(CMAKE_CXX_FLAGS_DEVEL "-fdefer-pop -fcprop-registers -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants -fthread-jumps -fcrossjumping -foptimize-sibling-calls -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm -frerun-cse-after-loop -fcaller-saves -fpeephole2 -fsched-interblock -fsched-spec -fregmove -fstrict-overflow -fdelete-null-pointer-checks -freorder-blocks -freorder-functions -falign-functions -falign-jumps -falign-loops -falign-labels -ftree-vrp -ftree-pre -march=i486 -Wno-format -Wno-unused-parameter -Wno-unused-value -Wunused-variable -fno-guess-branch-probability -fno-dse -fno-tree-dse -fno-strict-aliasing -pipe -msse -msse2 -m32")
# add defines
add_definitions(-DPCSX2_DEVBUILD -DPCSX2_DEBUG)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
set(CMAKE_C_FLAGS_RELEASE "-fdefer-pop -fcprop-registers -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants -fthread-jumps -fcrossjumping -foptimize-sibling-calls -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm -frerun-cse-after-loop -fcaller-saves -fpeephole2 -fsched-interblock -fsched-spec -fregmove -fstrict-overflow -fdelete-null-pointer-checks -freorder-blocks -freorder-functions -falign-functions -falign-jumps -falign-loops -falign-labels -ftree-vrp -ftree-pre -march=i486 -Wno-format -Wno-unused-parameter -Wno-unused-value -Wunused-variable -fno-guess-branch-probability -fno-dse -fno-tree-dse -fno-strict-aliasing -pipe -msse -msse2 -m32 -s")
set(CMAKE_CXX_FLAGS_RELEASE "-fdefer-pop -fcprop-registers -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants -fthread-jumps -fcrossjumping -foptimize-sibling-calls -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm -frerun-cse-after-loop -fcaller-saves -fpeephole2 -fsched-interblock -fsched-spec -fregmove -fstrict-overflow -fdelete-null-pointer-checks -freorder-blocks -freorder-functions -falign-functions -falign-jumps -falign-loops -falign-labels -ftree-vrp -ftree-pre -march=i486 -Wno-format -Wno-unused-parameter -Wno-unused-value -Wunused-variable -fno-guess-branch-probability -fno-dse -fno-tree-dse -fno-strict-aliasing -pipe -msse -msse2 -m32 -s")
# add defines
add_definitions()
endif(CMAKE_BUILD_TYPE STREQUAL Release)
# link target with wx
target_link_libraries(${UtilitiesName} ${wxWidgets_LIBRARIES})
# add additional include directories
include_directories(.)
+93
View File
@@ -0,0 +1,93 @@
# x86emitter library
# library name
set(x86emitterName x86emitter)
# variable with all sources of this library
set(x86emitterSources
../../include/x86emitter/inlines.inl
3dnow.cpp
cpudetect.cpp
fpu.cpp
groups.cpp
jmp.cpp
legacy.cpp
legacy_sse.cpp
LnxCpuDetect.cpp
movs.cpp
PrecompiledHeader.cpp
simd.cpp
tools.cpp
x86emitter.cpp)
# variable with all headers of this library
set(x86emitterHeaders
../../include/x86emitter/implement/dwshift.h
../../include/x86emitter/implement/group1.h
../../include/x86emitter/implement/group2.h
../../include/x86emitter/implement/group3.h
../../include/x86emitter/implement/helpers.h
../../include/x86emitter/implement/incdec.h
../../include/x86emitter/implement/jmpcall.h
../../include/x86emitter/implement/movs.h
../../include/x86emitter/implement/simd_arithmetic.h
../../include/x86emitter/implement/simd_comparisons.h
../../include/x86emitter/implement/simd_helpers.h
../../include/x86emitter/implement/simd_moremovs.h
../../include/x86emitter/implement/simd_shufflepack.h
../../include/x86emitter/implement/simd_templated_helpers
../../include/x86emitter/implement/test.h
../../include/x86emitter/implement/xchg.h
# ../../include/x86emitter/implement/xmm/
../../include/x86emitter/instructions.h
../../include/x86emitter/internal.h
../../include/x86emitter/legacy_instructions.h
../../include/x86emitter/legacy_internal.h
../../include/x86emitter/legacy_types.h
../../include/x86emitter/macros.h
../../include/x86emitter/sse_helpers.h
../../include/x86emitter/tools.h
../../include/x86emitter/x86emitter.h
../../include/x86emitter/x86types.h
PrecompiledHeader.h)
# add library
add_library(${x86emitterName} STATIC ${x86emitterSources} ${x86emitterHeaders})
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(CMAKE_C_FLAGS_DEBUG "-march=i486 -Wno-format -Wno-unused-parameter -Wno-unused-value -Wunused-variable -fno-guess-branch-probability -fno-dse -fno-tree-dse -fno-strict-aliasing -pipe -msse -msse2 -m32 -W -g")
set(CMAKE_CXX_FLAGS_DEBUG "-march=i486 -Wno-format -Wno-unused-parameter -Wno-unused-value -Wunused-variable -fno-guess-branch-probability -fno-dse -fno-tree-dse -fno-strict-aliasing -pipe -msse -msse2 -m32 -W -g")
# add defines
add_definitions(-DPCSX2_DEVBUILD -DPCSX2_DEBUG)
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
set(CMAKE_C_FLAGS_DEVEL "-march=i486 -Wno-format -Wno-unused-parameter -Wno-unused-value -Wunused-variable -fno-guess-branch-probability -fno-dse -fno-tree-dse -fno-strict-aliasing -pipe -msse -msse2 -m32 -fdefer-pop -fcprop-registers -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants -fthread-jumps -fcrossjumping -foptimize-sibling-calls -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm -frerun-cse-after-loop -fcaller-saves -fpeephole2 -fsched-interblock -fsched-spec -fregmove -fstrict-overflow -fdelete-null-pointer-checks -freorder-blocks -freorder-functions -falign-functions -falign-jumps -falign-loops -falign-labels -ftree-vrp -ftree-pre")
set(CMAKE_CXX_FLAGS_DEVEL "-march=i486 -Wno-format -Wno-unused-parameter -Wno-unused-value -Wunused-variable -fno-guess-branch-probability -fno-dse -fno-tree-dse -fno-strict-aliasing -pipe -msse -msse2 -m32 -fdefer-pop -fcprop-registers -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants -fthread-jumps -fcrossjumping -foptimize-sibling-calls -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm -frerun-cse-after-loop -fcaller-saves -fpeephole2 -fsched-interblock -fsched-spec -fregmove -fstrict-overflow -fdelete-null-pointer-checks -freorder-blocks -freorder-functions -falign-functions -falign-jumps -falign-loops -falign-labels -ftree-vrp -ftree-pre")
# add defines
add_definitions(-DPCSX2_DEVBUILD -DPCSX2_DEBUG)
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
set(CMAKE_C_FLAGS_RELEASE "-march=i486 -Wno-format -Wno-unused-parameter -Wno-unused-value -Wunused-variable -fno-guess-branch-probability -fno-dse -fno-tree-dse -fno-strict-aliasing -pipe -msse -msse2 -m32 -fdefer-pop -fcprop-registers -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants -fthread-jumps -fcrossjumping -foptimize-sibling-calls -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm -frerun-cse-after-loop -fcaller-saves -fpeephole2 -fsched-interblock -fsched-spec -fregmove -fstrict-overflow -fdelete-null-pointer-checks -freorder-blocks -freorder-functions -falign-functions -falign-jumps -falign-loops -falign-labels -ftree-vrp -ftree-pre -s")
set(CMAKE_CXX_FLAGS_RELEASE "-march=i486 -Wno-format -Wno-unused-parameter -Wno-unused-value -Wunused-variable -fno-guess-branch-probability -fno-dse -fno-tree-dse -fno-strict-aliasing -pipe -msse -msse2 -m32 -fdefer-pop -fcprop-registers -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants -fthread-jumps -fcrossjumping -foptimize-sibling-calls -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm -frerun-cse-after-loop -fcaller-saves -fpeephole2 -fsched-interblock -fsched-spec -fregmove -fstrict-overflow -fdelete-null-pointer-checks -freorder-blocks -freorder-functions -falign-functions -falign-jumps -falign-loops -falign-labels -ftree-vrp -ftree-pre -s")
# add defines
add_definitions()
endif(CMAKE_BUILD_TYPE STREQUAL Release)
# link target with wx
target_link_libraries(${x86emitterName} ${wxWidgets_LIBRARIES})
# add additional include directories
include_directories(../../include
../../include/x86emitter)
File diff suppressed because it is too large Load Diff
+81
View File
@@ -0,0 +1,81 @@
# CDVDnull Plugin
# plugin name
set(CDVDnullName CDVDnull)
# CDVDnull sources
set(CDVDnullSources
CDVD.cpp)
# CDVDnull headers
set(CDVDnullHeaders
CDVD.h)
# CDVDnull Linux sources
set(CDVDnullLinuxSources
Linux/callbacks.c
Linux/Config.cpp
Linux/interface.c
Linux/support.c)
# CDVDnull Linux headers
set(CDVDnullLinuxHeaders
Linux/callbacks.h
Linux/Config.h
Linux/interface.h
Linux/support.h)
# CDVDnull Windows sources
set(CDVDnullWindowsSources
Windows/CDVDnull.def
Windows/plugin.def)
# CDVDnull Windows headers
set(CDVDnullWindowsHeaders
)
# add library
add_library(${CDVDnullName} SHARED
${CDVDnullSources}
${CDVDnullHeaders}
${CDVDnullLinuxSources}
${CDVDnullLinuxHeaders}
)
# set output directory
set_target_properties(${CDVDnullName} PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin/plugins)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(CMAKE_C_FLAGS_DEBUG "-Wall -fPIC -m32 -g")
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -fPIC -m32 -g")
# add defines
add_definitions()
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
set(CMAKE_C_FLAGS_DEVEL "-Wall -fPIC -m32 -O2")
set(CMAKE_CXX_FLAGS_DEVEL "-Wall -fPIC -m32 -O2")
# add defines
add_definitions()
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
set(CMAKE_C_FLAGS_RELEASE "-Wall -fPIC -m32 -O2 -s")
set(CMAKE_CXX_FLAGS_RELEASE "-Wall -fPIC -m32 -O2 -s")
# add defines
add_definitions()
endif(CMAKE_BUILD_TYPE STREQUAL Release)
# link target with wx
target_link_libraries(${CDVDnullName})
# add additional include directories
include_directories(.
../../common/include)
+117
View File
@@ -0,0 +1,117 @@
# Plugins
# make cdvdGigaherz
#if(cdvdGigaherz)
# add_subdirectory(cdvdGigaherz)
#endif(cdvdGigaherz)
# make CDVDiso
if(CDVDiso)
add_subdirectory(CDVDiso)
endif(CDVDiso)
# make CDVDisoEFP
if(CDVDisoEFP)
add_subdirectory(CDVDisoEFP)
endif(CDVDisoEFP)
# make CDVDlinuz
if(CDVDlinuz)
add_subdirectory(CDVDlinuz)
endif(CDVDlinuz)
# make CDVDnull
if(CDVDnull)
add_subdirectory(CDVDnull)
endif(CDVDnull)
# make CDVDolio
if(CDVDolio)
add_subdirectory(CDVDolio)
endif(CDVDolio)
# make CDVDpeops
#if(CDVDpeops)
# add_subdirectory(CDVDpeops)
#endif(CDVDpeops)
# make dev9null
if(dev9null)
add_subdirectory(dev9null)
endif(dev9null)
# make FWnull
if(FWnull)
add_subdirectory(FWnull)
endif(FWnull)
# make GSdx
#if(GSdx)
# add_subdirectory(GSdx)
#endif(GSdx)
# make GSnull
if(GSnull)
add_subdirectory(GSnull)
endif(GSnull)
# make LilyPad
#if(LilyPad)
# add_subdirectory(LilyPad)
#endif(LilyPad)
# make onepad
if(onepad)
add_subdirectory(onepad)
endif(onepad)
# make PadNull
if(PadNull)
add_subdirectory(PadNull)
endif(PadNull)
# make PeopsSPU2
if(PeopsSPU2)
add_subdirectory(PeopsSPU2)
endif(PeopsSPU2)
# make SPU2null
if(SPU2null)
add_subdirectory(SPU2null)
endif(SPU2null)
# make spu2-x
#if(spu2-x)
# add_subdirectory(spu2-x)
#endif(spu2-x)
# make SSSPSXPAD
#if(SSSPSXPAD)
# add_subdirectory(SSSPSXPAD)
#endif(SSSPSXPAD)
# make USBnull
if(USBnull)
add_subdirectory(USBnull)
endif(USBnull)
# make xpad
#if(xpad)
# add_subdirectory(xpad)
#endif(xpad)
# make zerogs
if(zerogs)
add_subdirectory(zerogs)
endif(zerogs)
# make zeropad
if(zeropad)
add_subdirectory(zeropad)
endif(zeropad)
# make zerospu2
if(zerospu2)
add_subdirectory(zerospu2)
endif(zerospu2)
+79
View File
@@ -0,0 +1,79 @@
# FWnull Plugin
# plugin name
set(FWnullName FWnull)
# FWnull sources
set(FWnullSources
Config.cpp
FW.cpp)
# FWnull headers
set(FWnullHeaders
Config.h
FW.h)
# FWnull Linux sources
set(FWnullLinuxSources
)
# FWnull Linux headers
set(FWnullLinuxHeaders
)
# FWnull Windows sources
set(FWnullWindowsSources
Windows/Config.cpp
Windows/FireWireNull.def
Windows/FireWireNul.rc
Windows/Win32.cpp)
# FWnull Windows headers
set(FWnullWindowsHeaders
Windows/resource.h)
# add library
add_library(${FWnullName} SHARED
${FWnullSources}
${FWnullHeaders}
${FWnullLinuxSources}
${FWnullLinuxHeaders})
# set output directory
set_target_properties(${FWnullName} PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin/plugins)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(CMAKE_C_FLAGS_DEBUG "-Wall -fPIC -m32 -g")
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -fPIC -m32 -g")
# add defines
add_definitions()
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
set(CMAKE_C_FLAGS_DEVEL "-Wall -fPIC -m32 -O2")
set(CMAKE_CXX_FLAGS_DEVEL "-Wall -fPIC -m32 -O2")
# add defines
add_definitions()
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
set(CMAKE_C_FLAGS_RELEASE "-Wall -fPIC -m32 -O2 -s")
set(CMAKE_CXX_FLAGS_RELEASE "-Wall -fPIC -m32 -O2 -s")
# add defines
add_definitions()
endif(CMAKE_BUILD_TYPE STREQUAL Release)
# link target with wx
target_link_libraries(${FWnullName})
# add additional include directories
include_directories(.
../../common/include)
+101
View File
@@ -0,0 +1,101 @@
# GSnull Plugin
# plugin name
set(GSnullName GSnull)
# GSnull sources
set(GSnullSources
GifTransfer.cpp
GS.cpp)
# GSnull headers
set(GSnullHeaders
GifTransfer.h
GS.h
Registers.h)
# GSnull Linux sources
set(GSnullLinuxSources
# Linux/callbacks.c
Linux/Config.cpp
Linux/GSLinux.cpp
Linux/interface.c
Linux/Linux.cpp
Linux/support.c)
# GSnull Linux headers
set(GSnullLinuxHeaders
Linux/callbacks.h
Linux/Config.h
Linux/GSLinux.h
Linux/interface.h
Linux/Linux.h
Linux/support.h)
# GSnull null sources
set(GSnullnullSources
null/GSnull.cpp)
# GSnull null headers
set(GSnullnullHeaders
null/GSnull.h)
# GSnull Windows sources
set(GSnullWindowsSources
Windows/Config.cpp
Windows/GS.def
Windows/GS.rc
Windows/GSwin.cpp
Windows/Win32.cpp)
# GSnull Windows headers
set(GSnullWindowsHeaders
)
# add library
add_library(${GSnullName} SHARED
${GSnullSources}
${GSnullHeaders}
${GSnullnullSources}
${GSnullnullHeaders}
${GSnullLinuxSources}
${GSnullLinuxHeaders})
# set output directory
set_target_properties(${GSnullName} PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin/plugins)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(CMAKE_C_FLAGS_DEBUG "-Wall -fPIC -m32 -msse2 -g")
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -fPIC -m32 -msse2 -g")
# add defines
add_definitions()
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
set(CMAKE_C_FLAGS_DEVEL "-Wall -fPIC -m32 -msse2 -O2")
set(CMAKE_CXX_FLAGS_DEVEL "-Wall -fPIC -m32 -msse2 -O2")
# add defines
add_definitions()
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
set(CMAKE_C_FLAGS_RELEASE "-Wall -fPIC -m32 -O2 -msse2 -s")
set(CMAKE_CXX_FLAGS_RELEASE "-Wall -fPIC -m32 -O2 -msse2 -s")
# add defines
add_definitions()
endif(CMAKE_BUILD_TYPE STREQUAL Release)
# link target with wx
target_link_libraries(${GSnullName})
# add additional include directories
include_directories(.
../../common/include)
+87
View File
@@ -0,0 +1,87 @@
# PadNull Plugin
# plugin name
set(PadNullName PadNull)
# PadNull sources
set(PadNullSources
Pad.cpp)
# PadNull headers
set(PadNullHeaders
Pad.h)
# PadNull Linux sources
set(PadNullLinuxSources
# Linllux/callbacks.c
Linux/Config.cpp
Linux/interface.c
Linux/PadLinux.cpp
Linux/support.c)
# PadNull Linux headers
set(PadNullLinuxHeaders
Linux/callbacks.h
Linux/Config.h
Linux/interface.h
Linux/PadLinux.h
Linux/support.h)
# PadNull Windows sources
set(PadNullWindowsSources
Windows/Config.cpp
Windows/PadNull.rc
Windows/PadWin.cpp
Windows/Win32.cpp)
# PadNull Windows headers
set(PadNullWindowsHeaders
Windows/PadWin.h
Windows/resource.h)
# add library
add_library(${PadNullName} SHARED
${PadNullSources}
${PadNullHeaders}
${PadNullLinuxSources}
${PadNullLinuxHeaders})
# set output directory
set_target_properties(${PadNullName} PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin/plugins)
# Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(CMAKE_C_FLAGS_DEBUG "-Wall -fPIC -m32 -g")
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -fPIC -m32 -g")
# add defines
add_definitions()
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
# Devel - Build
if(CMAKE_BUILD_TYPE STREQUAL Devel)
set(CMAKE_C_FLAGS_DEVEL "-Wall -fPIC -m32 -O2")
set(CMAKE_CXX_FLAGS_DEVEL "-Wall -fPIC -m32 -O2")
# add defines
add_definitions()
endif(CMAKE_BUILD_TYPE STREQUAL Devel)
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
set(CMAKE_C_FLAGS_RELEASE "-Wall -fPIC -m32 -O2 -s")
set(CMAKE_CXX_FLAGS_RELEASE "-Wall -fPIC -m32 -O2 -s")
# add defines
add_definitions()
endif(CMAKE_BUILD_TYPE STREQUAL Release)
# link target with wx
target_link_libraries(${PadNullName})
# add additional include directories
include_directories(.
../../common/include
Linux)

Some files were not shown because too many files have changed in this diff Show More