mirror of https://github.com/PCSX2/pcsx2.git
[cmake] Move flags clean in the build modules. Next step allow user to control them.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3416 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
83adf0f0d4
commit
8864c8bbaf
|
@ -12,11 +12,23 @@
|
|||
# ${CMAKE_SHARED_LIBRARY_CXX_FLAGS} = "-fPIC"
|
||||
# ${CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS} = "-rdynamic"
|
||||
#
|
||||
# ${CMAKE_C_FLAGS} = "-g -O2"
|
||||
# ${CMAKE_CXX_FLAGS} = "-g -O2"
|
||||
# Use in debug mode
|
||||
# ${CMAKE_CXX_FLAGS_DEBUG} = "-g"
|
||||
# Use in release mode
|
||||
# ${CMAKE_CXX_FLAGS_RELEASE} = "-O3 -DNDEBUG"
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Do not use default cmake flags
|
||||
#-------------------------------------------------------------------------------
|
||||
set(CMAKE_C_FLAGS "")
|
||||
set(CMAKE_CXX_FLAGS "")
|
||||
set(CMAKE_C_FLAGS_DEBUG "")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "")
|
||||
set(CMAKE_C_FLAGS_RELEASE "")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "")
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Remove bad default option
|
||||
#-------------------------------------------------------------------------------
|
||||
|
@ -25,6 +37,7 @@ SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS " ")
|
|||
SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS " ")
|
||||
# Remove -fPIC option. No good reason to use it for plugins. Moreover we
|
||||
# only support x86 architecture. And last but not least it impact the performance.
|
||||
# Long term future note :), amd64 build will need the -fPIC flags
|
||||
set(CMAKE_SHARED_LIBRARY_C_FLAGS "")
|
||||
set(CMAKE_SHARED_LIBRARY_CXX_FLAGS "")
|
||||
|
||||
|
|
|
@ -9,16 +9,6 @@ endif(NOT TOP_CMAKE_WAS_SOURCED)
|
|||
# library name
|
||||
set(UtilitiesName Utilities)
|
||||
|
||||
# Clear default flags
|
||||
set(CMAKE_C_FLAGS "")
|
||||
set(CMAKE_CXX_FLAGS "")
|
||||
set(CMAKE_C_FLAGS_DEBUG "")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "")
|
||||
set(CMAKE_C_FLAGS_DEVEL "")
|
||||
set(CMAKE_CXX_FLAGS_DEVEL "")
|
||||
set(CMAKE_C_FLAGS_RELEASE "")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "")
|
||||
|
||||
# set common flags
|
||||
set(CommonFlags
|
||||
-pthread
|
||||
|
|
|
@ -9,16 +9,6 @@ endif(NOT TOP_CMAKE_WAS_SOURCED)
|
|||
# library name
|
||||
set(x86emitterName x86emitter)
|
||||
|
||||
# Clear default flags
|
||||
set(CMAKE_C_FLAGS "")
|
||||
set(CMAKE_CXX_FLAGS "")
|
||||
set(CMAKE_C_FLAGS_DEBUG "")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "")
|
||||
set(CMAKE_C_FLAGS_DEVEL "")
|
||||
set(CMAKE_CXX_FLAGS_DEVEL "")
|
||||
set(CMAKE_C_FLAGS_RELEASE "")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "")
|
||||
|
||||
# set common flags
|
||||
set(CommonFlags
|
||||
-pthread
|
||||
|
|
|
@ -6,16 +6,6 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
|
|||
endif(NOT TOP_CMAKE_WAS_SOURCED)
|
||||
|
||||
|
||||
# Clear default flags
|
||||
set(CMAKE_C_FLAGS "")
|
||||
set(CMAKE_CXX_FLAGS "")
|
||||
set(CMAKE_C_FLAGS_DEBUG "")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "")
|
||||
set(CMAKE_C_FLAGS_DEVEL "")
|
||||
set(CMAKE_CXX_FLAGS_DEVEL "")
|
||||
set(CMAKE_C_FLAGS_RELEASE "")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "")
|
||||
|
||||
# set common flags
|
||||
set(CommonFlags
|
||||
-pthread
|
||||
|
|
|
@ -9,16 +9,6 @@ endif(NOT TOP_CMAKE_WAS_SOURCED)
|
|||
# plugin name
|
||||
set(spu2xName spu2x)
|
||||
|
||||
# Clear default flags
|
||||
set(CMAKE_C_FLAGS "")
|
||||
set(CMAKE_CXX_FLAGS "")
|
||||
set(CMAKE_C_FLAGS_DEBUG "")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "")
|
||||
set(CMAKE_C_FLAGS_DEVEL "")
|
||||
set(CMAKE_CXX_FLAGS_DEVEL "")
|
||||
set(CMAKE_C_FLAGS_RELEASE "")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "")
|
||||
|
||||
set(CommonFlags
|
||||
-Wall
|
||||
-m32
|
||||
|
|
|
@ -6,16 +6,6 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
|
|||
endif(NOT TOP_CMAKE_WAS_SOURCED)
|
||||
|
||||
|
||||
# Clear default flags
|
||||
set(CMAKE_C_FLAGS "")
|
||||
set(CMAKE_CXX_FLAGS "")
|
||||
set(CMAKE_C_FLAGS_DEBUG "")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "")
|
||||
set(CMAKE_C_FLAGS_DEVEL "")
|
||||
set(CMAKE_CXX_FLAGS_DEVEL "")
|
||||
set(CMAKE_C_FLAGS_RELEASE "")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "")
|
||||
|
||||
# plugin name
|
||||
set(zzoglName zzogl)
|
||||
|
||||
|
|
Loading…
Reference in New Issue