2012-11-26 22:03:44 +00:00
# vim:noexpandtab:
2012-11-18 16:00:27 +00:00
cmake_minimum_required ( VERSION 2.8.8 )
project ( PPSSPP )
2012-11-26 04:06:35 +00:00
if ( ANDROID )
if ( ARMEABI OR ARMEABI_V7A )
set ( ARM ON )
endif ( )
2012-11-18 16:00:27 +00:00
endif ( )
2012-11-26 04:06:35 +00:00
if ( IOS )
2013-02-17 14:41:51 +00:00
set ( ARM ON )
2012-11-18 16:00:27 +00:00
endif ( )
if ( BLACKBERRY )
2012-11-26 02:41:57 +00:00
set ( ARM ON )
endif ( )
2012-12-16 11:17:13 +00:00
if ( ARM )
2012-11-26 02:41:57 +00:00
set ( USING_GLES2 ON )
else ( ) # Assume x86
set ( X86 ON )
2012-11-18 16:00:27 +00:00
endif ( )
2013-01-12 15:15:46 +00:00
if ( ANDROID OR BLACKBERRY OR IOS OR PANDORA )
2012-11-26 04:06:35 +00:00
set ( HEADLESS OFF )
elseif ( NOT DEFINED HEADLESS )
set ( HEADLESS ON )
2012-11-18 16:00:27 +00:00
endif ( )
# User-editable options (go into CMakeCache.txt)
option ( ARM "Set to ON if targeting an ARM processor" ${ ARM } )
2012-11-26 02:41:57 +00:00
option ( X86 "Set to ON if targeting an X86 processor" ${ X86 } )
option ( ANDROID "Set to ON if targeting an Android device" ${ ANDROID } )
option ( BLACKBERRY "Set to ON if targeting a Blackberry device" ${ BLACKBERRY } )
2013-01-12 15:15:46 +00:00
option ( PANDORA "Set to ON if targeting an OpenPandora device" ${ PANDORA } )
2012-11-26 04:06:35 +00:00
option ( IOS "Set to ON if targeting an iOS device" ${ IOS } )
2012-11-26 02:41:57 +00:00
option ( USING_GLES2 "Set to ON if target device uses OpenGL ES 2.0" ${ USING_GLES2 } )
2012-12-16 11:17:13 +00:00
option ( USING_QT_UI "Set to ON if you wish to use the Qt frontend wrapper" ${ USING_QT_UI } )
2012-11-18 16:00:27 +00:00
option ( HEADLESS "Set to OFF to not generate the PPSSPPHeadless target" ${ HEADLESS } )
if ( ANDROID )
2012-11-26 02:41:57 +00:00
if ( NOT ANDROID_ABI )
message ( FATAL_ERROR "CMAKE_TOOLCHAIN_FILE was not set!\n"
2012-11-26 03:25:14 +00:00
" D e l e t e t h e C M a k e C a c h e . t x t f i l e a n d C M a k e F i l e s d i r e c t o r y . "
" R e r u n $ { C M A K E _ C O M M A N D } w i t h \ " - D C M A K E _ T O O L C H A I N _ F I L E "
" = $ { C M A K E _ S O U R C E _ D I R } / a n d r o i d / a n d r o i d . t o o l c h a i n . c m a k e \ " " )
2012-11-26 02:41:57 +00:00
endif ( )
set ( CoreLibName ppsspp_jni )
set ( CoreLinkType SHARED )
2012-11-26 04:06:35 +00:00
elseif ( IOS )
if ( NOT IOS_PLATFORM )
message ( FATAL_ERROR "CMAKE_TOOLCHAIN_FILE was not set!\n"
" D e l e t e t h e C M a k e C a c h e . t x t f i l e a n d C M a k e F i l e s d i r e c t o r y . "
" R e r u n $ { C M A K E _ C O M M A N D } w i t h \ " - D C M A K E _ T O O L C H A I N _ F I L E "
" = $ { C M A K E _ S O U R C E _ D I R } / i o s / i o s . t o o l c h a i n . c m a k e \ " " )
endif ( )
set ( CoreLibName Core )
set ( CoreLinkType STATIC )
2012-11-18 16:00:27 +00:00
else ( )
2012-11-26 02:41:57 +00:00
set ( CoreLibName Core )
set ( CoreLinkType STATIC )
2012-11-18 16:00:27 +00:00
endif ( )
#find_package(Qt5Widgets)
2013-02-24 03:23:04 +00:00
if ( USING_GLES2 AND NOT IOS )
2012-11-26 02:41:57 +00:00
set ( OPENGL_LIBRARIES GLESv2 )
2013-02-24 03:23:04 +00:00
elseif ( NOT IOS )
2012-11-26 02:41:57 +00:00
include ( FindOpenGL REQUIRED )
2012-11-18 16:00:27 +00:00
endif ( )
2013-02-24 03:23:04 +00:00
if ( NOT BLACKBERRY AND NOT ANDROID AND NOT IOS )
2012-12-02 04:48:00 +00:00
include ( FindSDL )
2012-11-18 16:00:27 +00:00
endif ( )
include ( FindThreads )
2012-11-26 22:06:18 +00:00
if ( APPLE )
find_library ( COCOA_LIBRARY Cocoa )
endif ( )
2012-11-18 16:00:27 +00:00
2012-11-26 02:41:57 +00:00
# Needed for Globals.h
2012-11-18 16:00:27 +00:00
include_directories ( "${CMAKE_SOURCE_DIR}" )
if ( BLACKBERRY )
2012-11-26 02:41:57 +00:00
add_definitions ( -DBLACKBERRY )
if ( BLACKBERRY VERSION_GREATER 10 )
add_definitions ( -DBLACKBERRY10 )
endif ( )
2012-11-18 16:00:27 +00:00
endif ( )
if ( ANDROID )
2012-11-26 02:41:57 +00:00
add_definitions ( -DANDROID )
2012-11-18 16:00:27 +00:00
endif ( )
2012-11-26 04:06:35 +00:00
if ( IOS )
add_definitions ( -DIOS )
2012-11-18 16:00:27 +00:00
endif ( )
2013-01-12 15:15:46 +00:00
if ( PANDORA )
add_definitions ( -DPANDORA )
endif ( )
2012-11-18 16:00:27 +00:00
if ( ARM )
2012-11-26 02:41:57 +00:00
add_definitions ( -DARM )
2012-11-18 16:00:27 +00:00
endif ( )
2012-12-16 11:17:13 +00:00
if ( USING_GLES2 )
2012-11-26 02:41:57 +00:00
add_definitions ( -DUSING_GLES2 )
2012-11-18 16:00:27 +00:00
endif ( )
2013-01-11 18:06:02 +00:00
set ( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG" )
set ( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -D_NDEBUG" )
2012-11-18 16:00:27 +00:00
2012-11-26 02:41:57 +00:00
if ( NOT MSVC )
2012-11-26 03:25:14 +00:00
# Disable some warnings
2013-01-22 20:16:34 +00:00
set ( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2" )
2012-11-26 03:25:14 +00:00
add_definitions ( -Wno-multichar )
2012-11-26 02:41:57 +00:00
add_definitions ( -fno-strict-aliasing )
2013-01-10 22:49:33 +00:00
add_definitions ( -ffast-math )
2012-11-26 02:41:57 +00:00
if ( NOT APPLE )
2012-12-01 15:28:00 +00:00
add_definitions ( -Wno-psabi )
2012-11-26 02:41:57 +00:00
add_definitions ( -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__BSD_VISIBLE=1 )
add_definitions ( -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 )
endif ( )
2013-02-24 03:23:04 +00:00
if ( IOS )
add_definitions ( -DGL_ETC1_RGB8_OES=0 )
2013-02-04 19:36:43 +00:00
endif ( )
2012-11-26 02:41:57 +00:00
if ( BLACKBERRY )
add_definitions ( -D_QNX_SOURCE=1 -D_C99=1 )
endif ( )
if ( X86 )
# enable sse2 code generation
add_definitions ( -msse2 )
endif ( )
2013-02-24 12:17:52 +00:00
if ( IOS )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++" )
elseif ( APPLE )
2013-02-24 03:23:04 +00:00
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++" )
endif ( )
2012-11-26 02:41:57 +00:00
if ( CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.7.0 )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x" )
else ( )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
endif ( )
else ( )
# Disable warnings about MS-specific _s variants of libc functions
add_definitions ( -D_CRT_SECURE_NO_WARNINGS )
2012-11-18 16:00:27 +00:00
endif ( )
set ( CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" )
set ( CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" )
if ( ANDROID )
2012-11-26 02:41:57 +00:00
set ( CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/android/libs/${ANDROID_ABI}" )
2012-11-18 16:00:27 +00:00
endif ( )
# This sets up the MSVC project dirs according to the physical project dirs
macro ( setup_target_project TargetName ProjectDir )
2012-11-26 02:41:57 +00:00
get_property ( TargetSources TARGET "${TargetName}" PROPERTY SOURCES )
foreach ( Source ${ TargetSources } )
# Figure out the file's path relative to the ProjectDir
# NOTE: &#$@ double-quoted regexps
string ( REGEX REPLACE "${ProjectDir}" "" RelativePath "${Source}" )
string ( REGEX REPLACE "[\\\\/][^\\\\/]*$" "" RelativePath "${RelativePath}" )
string ( REGEX REPLACE "^[\\\\/]" "" RelativePath "${RelativePath}" )
string ( REGEX REPLACE "/" "\\\\\\\\" RelativePath "${RelativePath}" )
# put the source file in a source_group equivalent to the relative path
source_group ( "${RelativePath}" FILES ${ Source } )
endforeach ( )
2012-11-18 16:00:27 +00:00
endmacro ( )
# Commented-out files are files that don't compile
# and were disabled in the original MSVC project anyway
set ( CommonExtra )
if ( ARM )
2012-11-26 02:41:57 +00:00
set ( CommonExtra ${ CommonExtra }
2012-12-09 02:54:58 +00:00
C o m m o n / A r m C P U D e t e c t . c p p
2012-11-26 02:41:57 +00:00
C o m m o n / A r m E m i t t e r . h
C o m m o n / A r m E m i t t e r . c p p
2013-01-07 12:11:33 +00:00
C o m m o n / A r m T h u n k . c p p )
2012-11-26 02:41:57 +00:00
elseif ( X86 )
set ( CommonExtra ${ CommonExtra }
C o m m o n / A B I . c p p
C o m m o n / A B I . h
C o m m o n / C P U D e t e c t . c p p
C o m m o n / C P U D e t e c t . h
C o m m o n / T h u n k . c p p
C o m m o n / T h u n k . h
C o m m o n / x 6 4 A n a l y z e r . c p p
C o m m o n / x 6 4 A n a l y z e r . h
C o m m o n / x 6 4 E m i t t e r . c p p
C o m m o n / x 6 4 E m i t t e r . h )
2012-11-18 16:00:27 +00:00
endif ( )
if ( WIN32 )
2012-11-26 02:41:57 +00:00
set ( CommonExtra ${ CommonExtra }
C o m m o n / s t d a f x . c p p
C o m m o n / s t d a f x . h )
2012-11-18 16:00:27 +00:00
endif ( )
add_library ( Common STATIC
2012-11-26 02:41:57 +00:00
$ { C o m m o n E x t r a }
C o m m o n / C o l o r U t i l . c p p
C o m m o n / C o l o r U t i l . h
C o m m o n / C o n s o l e L i s t e n e r . c p p
C o m m o n / C o n s o l e L i s t e n e r . h
C o m m o n / C r y p t o / a e s _ c b c . c p p
C o m m o n / C r y p t o / a e s _ c o r e . c p p
C o m m o n / C r y p t o / b n . c p p
C o m m o n / C r y p t o / e c . c p p
C o m m o n / C r y p t o / m d 5 . c p p
C o m m o n / C r y p t o / m d 5 . h
C o m m o n / C r y p t o / s h a 1 . c p p
C o m m o n / C r y p t o / s h a 1 . h
C o m m o n / E x t e n d e d T r a c e . c p p
C o m m o n / E x t e n d e d T r a c e . h
C o m m o n / F P U R o u n d M o d e G e n e r i c . c p p
# Common/FPURoundModeX86.cpp
C o m m o n / F i l e S e a r c h . c p p
C o m m o n / F i l e S e a r c h . h
C o m m o n / F i l e U t i l . c p p
C o m m o n / F i l e U t i l . h
C o m m o n / H a s h . c p p
C o m m o n / H a s h . h
C o m m o n / I n i F i l e . c p p
C o m m o n / I n i F i l e . h
C o m m o n / L o g M a n a g e r . c p p
C o m m o n / L o g M a n a g e r . h
2013-01-08 07:29:12 +00:00
C o m m o n / M a t h U t i l . c p p
C o m m o n / M a t h U t i l . h
2012-11-26 02:41:57 +00:00
C o m m o n / M e m A r e n a . c p p
C o m m o n / M e m A r e n a . h
C o m m o n / M e m o r y U t i l . c p p
C o m m o n / M e m o r y U t i l . h
C o m m o n / M i s c . c p p
C o m m o n / M s g H a n d l e r . c p p
C o m m o n / M s g H a n d l e r . h
C o m m o n / S t r i n g U t i l . c p p
C o m m o n / S t r i n g U t i l . h
C o m m o n / T h r e a d . c p p
C o m m o n / T h r e a d . h
C o m m o n / T i m e r . c p p
C o m m o n / T i m e r . h
C o m m o n / V e r s i o n . c p p )
2012-11-18 16:00:27 +00:00
include_directories ( Common )
setup_target_project ( Common Common )
if ( WIN32 )
2012-11-26 02:41:57 +00:00
target_link_libraries ( Common winmm )
2012-11-18 16:00:27 +00:00
endif ( )
add_library ( zlib STATIC
2012-11-26 02:41:57 +00:00
e x t / z l i b / a d l e r 3 2 . c
e x t / z l i b / c o m p r e s s . c
e x t / z l i b / c r c 3 2 . c
e x t / z l i b / c r c 3 2 . h
e x t / z l i b / d e f l a t e . c
e x t / z l i b / d e f l a t e . h
e x t / z l i b / g z c l o s e . c
e x t / z l i b / g z g u t s . h
e x t / z l i b / g z l i b . c
e x t / z l i b / g z r e a d . c
e x t / z l i b / g z w r i t e . c
e x t / z l i b / i n f b a c k . c
e x t / z l i b / i n f f a s t . c
e x t / z l i b / i n f f a s t . h
e x t / z l i b / i n f f i x e d . h
e x t / z l i b / i n f l a t e . c
e x t / z l i b / i n f l a t e . h
e x t / z l i b / i n f t r e e s . c
e x t / z l i b / i n f t r e e s . h
e x t / z l i b / m a k e _ v m s . c o m
e x t / z l i b / t r e e s . c
e x t / z l i b / t r e e s . h
e x t / z l i b / u n c o m p r . c
e x t / z l i b / z c o n f . h
e x t / z l i b / z l i b . h
e x t / z l i b / z u t i l . c
e x t / z l i b / z u t i l . h
2012-11-18 16:00:27 +00:00
)
include_directories ( ext/zlib )
2013-01-02 21:10:41 +00:00
add_library ( snappy STATIC
e x t / s n a p p y / s n a p p y - c . c p p
e x t / s n a p p y / s n a p p y - i n t e r n a l . h
e x t / s n a p p y / s n a p p y - s i n k s o u r c e . h
e x t / s n a p p y / s n a p p y - s t u b s - i n t e r n a l . h
e x t / s n a p p y / s n a p p y - s t u b s - p u b l i c . h
e x t / s n a p p y / s n a p p y . c p p
e x t / s n a p p y / s n a p p y . h
)
include_directories ( ext/snappy )
2012-11-18 16:00:27 +00:00
add_library ( etcpack STATIC
2012-11-26 02:41:57 +00:00
n a t i v e / e x t / e t c p a c k / e t c d e c . c p p
n a t i v e / e x t / e t c p a c k / e t c d e c . h
n a t i v e / e x t / e t c p a c k / e t c p a c k . c p p
n a t i v e / e x t / e t c p a c k / e t c p a c k . h
n a t i v e / e x t / e t c p a c k / i m a g e . c p p
n a t i v e / e x t / e t c p a c k / i m a g e . h )
2012-11-18 16:00:27 +00:00
include_directories ( native/ext/etcpack )
2013-01-19 16:05:08 +00:00
add_library ( cityhash STATIC
n a t i v e / e x t / c i t y h a s h / c i t y . c p p
n a t i v e / e x t / c i t y h a s h / c i t y . h
n a t i v e / e x t / c i t y h a s h / c i t y c r c . h
)
include_directories ( ext/cityhash )
2012-11-26 02:41:57 +00:00
if ( NOT USING_GLES2 )
include_directories ( ${ OPENGL_INCLUDE_DIR } )
add_definitions ( -DGLEW_STATIC )
add_library ( glew STATIC
n a t i v e / e x t / g l e w / G L / g l e w . h
n a t i v e / e x t / g l e w / G L / g l x e w . h
n a t i v e / e x t / g l e w / G L / w g l e w . h
n a t i v e / e x t / g l e w / g l e w . c )
target_link_libraries ( glew ${ OPENGL_LIBRARIES } )
include_directories ( native/ext/glew )
set ( GLEW_LIBRARIES glew )
2012-11-18 16:00:27 +00:00
endif ( )
add_library ( sha1 STATIC
2012-11-26 02:41:57 +00:00
n a t i v e / e x t / s h a 1 / s h a 1 . c p p
n a t i v e / e x t / s h a 1 / s h a 1 . h )
2012-11-18 16:00:27 +00:00
include_directories ( native/ext/sha1 )
add_library ( stb_image STATIC
2012-11-26 02:41:57 +00:00
n a t i v e / e x t / s t b _ i m a g e / s t b _ i m a g e . c
n a t i v e / e x t / s t b _ i m a g e / s t b _ i m a g e . h )
2012-11-18 16:00:27 +00:00
include_directories ( native/ext/stb_image )
add_library ( stb_vorbis STATIC
2012-11-26 02:41:57 +00:00
n a t i v e / e x t / s t b _ v o r b i s / s t b _ v o r b i s . c
n a t i v e / e x t / s t b _ v o r b i s / s t b _ v o r b i s . h )
2012-11-18 16:00:27 +00:00
include_directories ( native/ext/stb_vorbis )
2012-11-23 16:03:51 +00:00
if ( ANDROID )
2012-11-26 02:41:57 +00:00
add_library ( libzip STATIC
n a t i v e / e x t / l i b z i p / z i p . h
n a t i v e / e x t / l i b z i p / m k s t e m p . c
n a t i v e / e x t / l i b z i p / z i p _ a d d . c
n a t i v e / e x t / l i b z i p / z i p _ a d d _ d i r . c
n a t i v e / e x t / l i b z i p / z i p _ c l o s e . c
n a t i v e / e x t / l i b z i p / z i p _ d e l e t e . c
n a t i v e / e x t / l i b z i p / z i p _ d i r e n t . c
n a t i v e / e x t / l i b z i p / z i p _ e n t r y _ f r e e . c
n a t i v e / e x t / l i b z i p / z i p _ e n t r y _ n e w . c
n a t i v e / e x t / l i b z i p / z i p _ e r r _ s t r . c
n a t i v e / e x t / l i b z i p / z i p _ e r r o r . c
n a t i v e / e x t / l i b z i p / z i p _ e r r o r _ c l e a r . c
n a t i v e / e x t / l i b z i p / z i p _ e r r o r _ g e t . c
n a t i v e / e x t / l i b z i p / z i p _ e r r o r _ g e t _ s y s _ t y p e . c
n a t i v e / e x t / l i b z i p / z i p _ e r r o r _ s t r e r r o r . c
n a t i v e / e x t / l i b z i p / z i p _ e r r o r _ t o _ s t r . c
n a t i v e / e x t / l i b z i p / z i p _ f c l o s e . c
n a t i v e / e x t / l i b z i p / z i p _ f i l e _ e r r o r _ c l e a r . c
n a t i v e / e x t / l i b z i p / z i p _ f i l e _ e r r o r _ g e t . c
n a t i v e / e x t / l i b z i p / z i p _ f i l e _ g e t _ o f f s e t . c
n a t i v e / e x t / l i b z i p / z i p _ f i l e _ s t r e r r o r . c
n a t i v e / e x t / l i b z i p / z i p _ f i l e r a n g e _ c r c . c
n a t i v e / e x t / l i b z i p / z i p _ f o p e n . c
n a t i v e / e x t / l i b z i p / z i p _ f o p e n _ i n d e x . c
n a t i v e / e x t / l i b z i p / z i p _ f r e a d . c
n a t i v e / e x t / l i b z i p / z i p _ f r e e . c
n a t i v e / e x t / l i b z i p / z i p _ g e t _ a r c h i v e _ c o m m e n t . c
n a t i v e / e x t / l i b z i p / z i p _ g e t _ a r c h i v e _ f l a g . c
n a t i v e / e x t / l i b z i p / z i p _ g e t _ f i l e _ c o m m e n t . c
n a t i v e / e x t / l i b z i p / z i p _ g e t _ n a m e . c
n a t i v e / e x t / l i b z i p / z i p _ g e t _ n u m _ f i l e s . c
n a t i v e / e x t / l i b z i p / z i p _ m e m d u p . c
n a t i v e / e x t / l i b z i p / z i p _ n a m e _ l o c a t e . c
n a t i v e / e x t / l i b z i p / z i p _ n e w . c
n a t i v e / e x t / l i b z i p / z i p _ o p e n . c
n a t i v e / e x t / l i b z i p / z i p _ r e n a m e . c
n a t i v e / e x t / l i b z i p / z i p _ r e p l a c e . c
n a t i v e / e x t / l i b z i p / z i p _ s e t _ a r c h i v e _ c o m m e n t . c
n a t i v e / e x t / l i b z i p / z i p _ s e t _ a r c h i v e _ f l a g . c
n a t i v e / e x t / l i b z i p / z i p _ s e t _ f i l e _ c o m m e n t . c
n a t i v e / e x t / l i b z i p / z i p _ s e t _ n a m e . c
n a t i v e / e x t / l i b z i p / z i p _ s o u r c e _ b u f f e r . c
n a t i v e / e x t / l i b z i p / z i p _ s o u r c e _ f i l e . c
n a t i v e / e x t / l i b z i p / z i p _ s o u r c e _ f i l e p . c
n a t i v e / e x t / l i b z i p / z i p _ s o u r c e _ f r e e . c
n a t i v e / e x t / l i b z i p / z i p _ s o u r c e _ f u n c t i o n . c
n a t i v e / e x t / l i b z i p / z i p _ s o u r c e _ z i p . c
n a t i v e / e x t / l i b z i p / z i p _ s t a t . c
n a t i v e / e x t / l i b z i p / z i p _ s t a t _ i n d e x . c
n a t i v e / e x t / l i b z i p / z i p _ s t a t _ i n i t . c
n a t i v e / e x t / l i b z i p / z i p _ s t r e r r o r . c
n a t i v e / e x t / l i b z i p / z i p _ u n c h a n g e . c
n a t i v e / e x t / l i b z i p / z i p _ u n c h a n g e _ a l l . c
n a t i v e / e x t / l i b z i p / z i p _ u n c h a n g e _ a r c h i v e . c
n a t i v e / e x t / l i b z i p / z i p _ u n c h a n g e _ d a t a . c )
target_link_libraries ( libzip zlib )
include_directories ( native/ext/libzip )
set ( LIBZIP libzip )
2012-11-18 16:00:27 +00:00
endif ( )
set ( nativeExtra )
2012-12-02 04:48:00 +00:00
set ( nativeExtraLibs )
2012-11-18 16:00:27 +00:00
if ( ANDROID )
2012-11-26 02:41:57 +00:00
set ( nativeExtra ${ nativeExtra }
n a t i v e / b a s e / N a t i v e A p p . h
n a t i v e / a n d r o i d / a p p - a n d r o i d . c p p
n a t i v e / a n d r o i d / n a t i v e _ a u d i o . c p p
n a t i v e / a n d r o i d / n a t i v e _ a u d i o . h )
add_library ( native_audio SHARED
n a t i v e / a n d r o i d / n a t i v e - a u d i o - s o . c p p
n a t i v e / a n d r o i d / n a t i v e - a u d i o - s o . h )
target_link_libraries ( native_audio OpenSLES )
2012-12-02 04:48:00 +00:00
# No target
2013-02-17 14:04:44 +00:00
elseif ( IOS )
set ( nativeExtra ${ nativeExtra }
i o s / m a i n . m
i o s / A p p D e l e g a t e . m
i o s / A p p D e l e g a t e . h
i o s / V i e w C o n t r o l l e r . m m
i o s / V i e w C o n t r o l l e r . h )
2013-02-24 03:23:04 +00:00
set ( nativeExtraLibs ${ nativeExtraLibs } "-framework Foundation -framework AudioToolbox -framework CoreGraphics -framework QuartzCore -framework OpenGLES -framework UIKit -framework GLKit" )
set ( TargetBin PPSSPP )
2012-12-16 11:17:13 +00:00
elseif ( USING_QT_UI )
# Currently unused
find_package ( Qt4 COMPONENTS QtMultimedia QtOpenGL QtGui QtCore )
include ( ${ QT_USE_FILE } )
qt4_wrap_cpp ( nativeQtHeader native/base/QtMain.h )
set ( nativeExtra ${ nativeExtra } native/base/QtMain.cpp ${ nativeQtHeader } )
set ( nativeExtraLibs ${ nativeExtraLibs } ${ QT_LIBRARIES } )
set ( TargetBin PPSSPPQt )
2012-12-02 04:48:00 +00:00
elseif ( BLACKBERRY )
set ( nativeExtra ${ nativeExtra } native/base/BlackberryMain.cpp )
set ( nativeExtraLibs ${ nativeExtraLibs } asound bps screen socket EGL )
set ( TargetBin PPSSPPBlackberry )
elseif ( SDL_FOUND )
2012-12-16 11:17:13 +00:00
# Require SDL
2012-12-02 04:48:00 +00:00
include_directories ( ${ SDL_INCLUDE_DIR } )
set ( nativeExtra ${ nativeExtra } native/base/PCMain.cpp )
set ( nativeExtraLibs ${ nativeExtraLibs } ${ SDL_LIBRARY } )
if ( APPLE )
set ( nativeExtra ${ nativeExtra } SDL/SDLMain.h SDL/SDLMain.mm )
set ( nativeExtraLibs ${ nativeExtraLibs } ${ COCOA_LIBRARY } )
2013-01-12 15:15:46 +00:00
elseif ( PANDORA )
set ( nativeExtraLibs ${ nativeExtraLibs } pthread EGL X11 )
2012-12-02 04:48:00 +00:00
endif ( )
2013-02-17 14:04:44 +00:00
set ( TargetBin PPSSPPSDL )
2012-12-02 04:48:00 +00:00
else ( )
message ( FATAL_ERROR "Could not find SDL. Failing." )
2012-11-18 16:00:27 +00:00
endif ( )
2012-11-26 02:41:57 +00:00
if ( X86 )
set ( nativeExtra ${ nativeExtra }
n a t i v e / b a s e / b a c k t r a c e . c p p
n a t i v e / b a s e / b a c k t r a c e . h )
2012-11-18 16:00:27 +00:00
endif ( )
add_library ( native STATIC
2012-11-26 02:41:57 +00:00
$ { n a t i v e E x t r a }
n a t i v e / a u d i o / m i x e r . c p p
n a t i v e / a u d i o / m i x e r . h
n a t i v e / a u d i o / w a v _ r e a d . c p p
n a t i v e / a u d i o / w a v _ r e a d . h
n a t i v e / b a s e / b a s i c t y p e s . h
n a t i v e / b a s e / b u f f e r . c p p
n a t i v e / b a s e / b u f f e r . h
n a t i v e / b a s e / c o l o r . h
n a t i v e / b a s e / c o l o r u t i l . c p p
n a t i v e / b a s e / c o l o r u t i l . h
n a t i v e / b a s e / d i s p l a y . c p p
n a t i v e / b a s e / d i s p l a y . h
n a t i v e / b a s e / e r r o r _ c o n t e x t . c p p
n a t i v e / b a s e / e r r o r _ c o n t e x t . h
n a t i v e / b a s e / f a s t l i s t . h
n a t i v e / b a s e / f a s t l i s t _ t e s t . c p p
n a t i v e / b a s e / l i n k e d _ p t r . h
n a t i v e / b a s e / l o g g i n g . h
n a t i v e / b a s e / m u t e x . h
n a t i v e / b a s e / s c o p e d _ p t r . h
n a t i v e / b a s e / s t a t s . h
n a t i v e / b a s e / s t r i n g u t i l . c p p
n a t i v e / b a s e / s t r i n g u t i l . h
n a t i v e / b a s e / t h r e a d u t i l . c p p
n a t i v e / b a s e / t h r e a d u t i l . h
n a t i v e / b a s e / t i m e u t i l . c p p
n a t i v e / b a s e / t i m e u t i l . h
n a t i v e / f i l e / c h u n k _ f i l e . c p p
n a t i v e / f i l e / c h u n k _ f i l e . h
n a t i v e / f i l e / d i a l o g . c p p
n a t i v e / f i l e / d i a l o g . h
n a t i v e / f i l e / e a s y _ f i l e . c p p
n a t i v e / f i l e / e a s y _ f i l e . h
n a t i v e / f i l e / f d _ u t i l . c p p
n a t i v e / f i l e / f d _ u t i l . h
n a t i v e / f i l e / f i l e _ u t i l . c p p
n a t i v e / f i l e / f i l e _ u t i l . h
n a t i v e / f i l e / v f s . h
n a t i v e / f i l e / z i p _ r e a d . c p p
n a t i v e / f i l e / z i p _ r e a d . h
n a t i v e / g f x / g l _ d e b u g _ l o g . c p p
n a t i v e / g f x / g l _ d e b u g _ l o g . h
n a t i v e / g f x / g l _ l o s t _ m a n a g e r . c p p
n a t i v e / g f x / g l _ l o s t _ m a n a g e r . h
n a t i v e / g f x / t e x t u r e . c p p
n a t i v e / g f x / t e x t u r e . h
n a t i v e / g f x / t e x t u r e _ a t l a s . c p p
n a t i v e / g f x / t e x t u r e _ a t l a s . h
# native/gfx/texture_dx11.cpp
n a t i v e / g f x / t e x t u r e _ g e n . c p p
n a t i v e / g f x / t e x t u r e _ g e n . h
n a t i v e / g f x _ e s 2 / d r a w _ b u f f e r . c p p
n a t i v e / g f x _ e s 2 / d r a w _ b u f f e r . h
n a t i v e / g f x _ e s 2 / f b o . c p p
n a t i v e / g f x _ e s 2 / f b o . h
n a t i v e / g f x _ e s 2 / g l _ s t a t e . c p p
n a t i v e / g f x _ e s 2 / g l _ s t a t e . h
n a t i v e / g f x _ e s 2 / g l s l _ p r o g r a m . c p p
n a t i v e / g f x _ e s 2 / g l s l _ p r o g r a m . h
n a t i v e / g f x _ e s 2 / v e r t e x _ f o r m a t . c p p
n a t i v e / g f x _ e s 2 / v e r t e x _ f o r m a t . h
n a t i v e / i m a g e / p n g _ l o a d . c p p
n a t i v e / i m a g e / p n g _ l o a d . h
n a t i v e / i m a g e / z i m _ l o a d . c p p
n a t i v e / i m a g e / z i m _ l o a d . h
n a t i v e / i m a g e / z i m _ s a v e . c p p
n a t i v e / i m a g e / z i m _ s a v e . h
n a t i v e / i n p u t / g e s t u r e _ d e t e c t o r . c p p
n a t i v e / i n p u t / g e s t u r e _ d e t e c t o r . h
n a t i v e / i n p u t / i n p u t _ s t a t e . h
n a t i v e / j s o n / j s o n _ w r i t e r . c p p
n a t i v e / j s o n / j s o n _ w r i t e r . h
n a t i v e / m a t h / c o m p r e s s i o n . h
n a t i v e / m a t h / c u r v e s . c p p
n a t i v e / m a t h / c u r v e s . h
n a t i v e / m a t h / l i n / a a b b . c p p
n a t i v e / m a t h / l i n / a a b b . h
n a t i v e / m a t h / l i n / m a t r i x 4 x 4 . c p p
n a t i v e / m a t h / l i n / m a t r i x 4 x 4 . h
n a t i v e / m a t h / l i n / p l a n e . c p p
n a t i v e / m a t h / l i n / p l a n e . h
n a t i v e / m a t h / l i n / q u a t . c p p
n a t i v e / m a t h / l i n / q u a t . h
n a t i v e / m a t h / l i n / r a y . h
n a t i v e / m a t h / l i n / v e c 3 . c p p
n a t i v e / m a t h / l i n / v e c 3 . h
n a t i v e / m a t h / m a t h _ u t i l . c p p
n a t i v e / m a t h / m a t h _ u t i l . h
n a t i v e / m i d i / m i d i _ i n p u t . c p p
n a t i v e / m i d i / m i d i _ i n p u t . h
n a t i v e / n e t / h t t p _ c l i e n t . c p p
n a t i v e / n e t / h t t p _ c l i e n t . h
n a t i v e / n e t / r e s o l v e . c p p
n a t i v e / n e t / r e s o l v e . h
n a t i v e / p r o f i l e r / p r o f i l e r . c p p
n a t i v e / p r o f i l e r / p r o f i l e r . h
n a t i v e / u i / s c r e e n . c p p
n a t i v e / u i / s c r e e n . h
n a t i v e / u i / u i . c p p
n a t i v e / u i / u i . h
n a t i v e / u i / v i r t u a l _ i n p u t . c p p
n a t i v e / u i / v i r t u a l _ i n p u t . h
n a t i v e / u t i l / b i t s / b i t s . c p p
n a t i v e / u t i l / b i t s / b i t s . h
n a t i v e / u t i l / b i t s / h a m m i n g . h
n a t i v e / u t i l / b i t s / v a r i n t . c p p
n a t i v e / u t i l / b i t s / v a r i n t . h
n a t i v e / u t i l / h a s h / h a s h . c p p
n a t i v e / u t i l / h a s h / h a s h . h
n a t i v e / u t i l / r a n d o m / p e r l i n . c p p
n a t i v e / u t i l / r a n d o m / p e r l i n . h
n a t i v e / u t i l / r a n d o m / r n g . h
2013-01-02 23:53:11 +00:00
n a t i v e / u t i l / t e x t / u t f 8 . h
n a t i v e / u t i l / t e x t / u t f 8 . c p p
2012-11-26 02:41:57 +00:00
n a t i v e / e x t / r a p i d x m l / r a p i d x m l . h p p
n a t i v e / e x t / r a p i d x m l / r a p i d x m l _ i t e r a t o r s . h p p
n a t i v e / e x t / r a p i d x m l / r a p i d x m l _ p r i n t . h p p
n a t i v e / e x t / r a p i d x m l / r a p i d x m l _ u t i l s . h p p )
2012-11-18 16:00:27 +00:00
include_directories ( native )
# rapidxml is headers only so we can't make a lib specific for it
include_directories ( native/ext/rapidxml )
2012-11-26 02:41:57 +00:00
target_link_libraries ( native ${ LIBZIP } etcpack sha1 stb_image stb_vorbis #vjson
2013-01-02 21:10:41 +00:00
z l i b s n a p p y $ { G L E W _ L I B R A R I E S } )
2012-11-18 16:00:27 +00:00
if ( ANDROID )
2012-11-26 02:41:57 +00:00
target_link_libraries ( native log )
2012-11-18 16:00:27 +00:00
endif ( )
setup_target_project ( native native )
if ( WIN32 )
2012-11-26 02:41:57 +00:00
target_link_libraries ( native ws2_32 winmm )
2012-11-18 16:00:27 +00:00
endif ( )
add_library ( kirk STATIC
2012-11-26 02:41:57 +00:00
e x t / l i b k i r k / A E S . c
e x t / l i b k i r k / A E S . h
e x t / l i b k i r k / S H A 1 . c
e x t / l i b k i r k / S H A 1 . h
e x t / l i b k i r k / b n . c
e x t / l i b k i r k / e c . c
e x t / l i b k i r k / k i r k _ e n g i n e . c
e x t / l i b k i r k / k i r k _ e n g i n e . h )
2012-11-18 16:00:27 +00:00
include_directories ( ext/libkirk )
set ( CoreExtra )
if ( ARM )
2012-11-26 02:41:57 +00:00
set ( CoreExtra ${ CoreExtra }
2013-01-13 10:52:41 +00:00
C o r e / M I P S / A R M / A r m A s m . c p p
C o r e / M I P S / A R M / A r m A s m . h
C o r e / M I P S / A R M / A r m C o m p A L U . c p p
C o r e / M I P S / A R M / A r m C o m p B r a n c h . c p p
C o r e / M I P S / A R M / A r m C o m p F P U . c p p
C o r e / M I P S / A R M / A r m C o m p L o a d S t o r e . c p p
C o r e / M I P S / A R M / A r m C o m p V F P U . c p p
C o r e / M I P S / A R M / A r m J i t . c p p
C o r e / M I P S / A R M / A r m J i t . h
C o r e / M I P S / A R M / A r m J i t C a c h e . c p p
C o r e / M I P S / A R M / A r m J i t C a c h e . h
C o r e / M I P S / A R M / A r m R e g C a c h e . c p p
C o r e / M I P S / A R M / A r m R e g C a c h e . h
e x t / d i s a r m . c p p )
2012-11-26 02:41:57 +00:00
elseif ( X86 )
set ( CoreExtra ${ CoreExtra }
C o r e / M I P S / x 8 6 / A s m . c p p
C o r e / M I P S / x 8 6 / A s m . h
C o r e / M I P S / x 8 6 / C o m p A L U . c p p
C o r e / M I P S / x 8 6 / C o m p B r a n c h . c p p
C o r e / M I P S / x 8 6 / C o m p F P U . c p p
C o r e / M I P S / x 8 6 / C o m p L o a d S t o r e . c p p
C o r e / M I P S / x 8 6 / C o m p V F P U . c p p
C o r e / M I P S / x 8 6 / J i t . c p p
C o r e / M I P S / x 8 6 / J i t . h
C o r e / M I P S / x 8 6 / J i t C a c h e . c p p
C o r e / M I P S / x 8 6 / J i t C a c h e . h
C o r e / M I P S / x 8 6 / R e g C a c h e . c p p
2013-01-25 22:09:11 +00:00
C o r e / M I P S / x 8 6 / R e g C a c h e . h
C o r e / M I P S / x 8 6 / R e g C a c h e F P U . c p p
C o r e / M I P S / x 8 6 / R e g C a c h e F P U . h )
2012-11-18 16:00:27 +00:00
endif ( )
# 'ppsspp_jni' on ANDROID, 'Core' everywhere else
# SHARED on ANDROID, STATIC everywhere else
add_library ( ${ CoreLibName } ${ CoreLinkType }
2012-11-26 02:41:57 +00:00
$ { C o r e E x t r a }
C o r e / C P U . c p p
C o r e / C P U . h
C o r e / C o n f i g . c p p
C o r e / C o n f i g . h
C o r e / C o r e . c p p
C o r e / C o r e . h
C o r e / C o r e P a r a m e t e r . h
C o r e / C o r e T i m i n g . c p p
C o r e / C o r e T i m i n g . h
C o r e / D e b u g g e r / B r e a k p o i n t s . c p p
C o r e / D e b u g g e r / B r e a k p o i n t s . h
C o r e / D e b u g g e r / D e b u g I n t e r f a c e . h
C o r e / D e b u g g e r / S y m b o l M a p . c p p
C o r e / D e b u g g e r / S y m b o l M a p . h
2012-12-10 12:08:54 +00:00
C o r e / D i a l o g / P S P D i a l o g . c p p
C o r e / D i a l o g / P S P D i a l o g . h
C o r e / D i a l o g / P S P M s g D i a l o g . c p p
C o r e / D i a l o g / P S P M s g D i a l o g . h
2012-12-15 23:31:43 +00:00
C o r e / D i a l o g / P S P O s k D i a l o g . c p p
C o r e / D i a l o g / P S P O s k D i a l o g . h
2012-12-10 12:08:54 +00:00
C o r e / D i a l o g / P S P P l a c e h o l d e r D i a l o g . c p p
C o r e / D i a l o g / P S P P l a c e h o l d e r D i a l o g . h
C o r e / D i a l o g / P S P S a v e D i a l o g . c p p
C o r e / D i a l o g / P S P S a v e D i a l o g . h
C o r e / D i a l o g / S a v e d a t a P a r a m . c p p
C o r e / D i a l o g / S a v e d a t a P a r a m . h
2012-11-26 02:41:57 +00:00
C o r e / E L F / E l f R e a d e r . c p p
C o r e / E L F / E l f R e a d e r . h
C o r e / E L F / E l f T y p e s . h
C o r e / E L F / P r x D e c r y p t e r . c p p
C o r e / E L F / P r x D e c r y p t e r . h
2012-11-30 20:49:59 +00:00
C o r e / E L F / P a r a m S F O . c p p
C o r e / E L F / P a r a m S F O . h
2012-11-26 02:41:57 +00:00
C o r e / F i l e S y s t e m s / B l o c k D e v i c e s . c p p
C o r e / F i l e S y s t e m s / B l o c k D e v i c e s . h
C o r e / F i l e S y s t e m s / D i r e c t o r y F i l e S y s t e m . c p p
C o r e / F i l e S y s t e m s / D i r e c t o r y F i l e S y s t e m . h
C o r e / F i l e S y s t e m s / F i l e S y s t e m . h
C o r e / F i l e S y s t e m s / I S O F i l e S y s t e m . c p p
C o r e / F i l e S y s t e m s / I S O F i l e S y s t e m . h
C o r e / F i l e S y s t e m s / M e t a F i l e S y s t e m . c p p
C o r e / F i l e S y s t e m s / M e t a F i l e S y s t e m . h
C o r e / H L E / F u n c t i o n W r a p p e r s . h
C o r e / H L E / H L E . c p p
C o r e / H L E / H L E . h
C o r e / H L E / H L E T a b l e s . c p p
C o r e / H L E / H L E T a b l e s . h
C o r e / H L E / _ _ s c e A u d i o . c p p
C o r e / H L E / _ _ s c e A u d i o . h
C o r e / H L E / s c e A t r a c . c p p
C o r e / H L E / s c e A t r a c . h
C o r e / H L E / s c e A u d i o . c p p
C o r e / H L E / s c e A u d i o . h
2013-01-28 23:11:02 +00:00
C o r e / H L E / s c e C h n n l s v . c p p
C o r e / H L E / s c e C h n n l s v . h
2012-11-26 02:41:57 +00:00
C o r e / H L E / s c e C t r l . c p p
C o r e / H L E / s c e C t r l . h
C o r e / H L E / s c e D i s p l a y . c p p
C o r e / H L E / s c e D i s p l a y . h
C o r e / H L E / s c e D m a c . c p p
C o r e / H L E / s c e D m a c . h
C o r e / H L E / s c e G e . c p p
C o r e / H L E / s c e G e . h
C o r e / H L E / s c e F o n t . c p p
C o r e / H L E / s c e F o n t . h
C o r e / H L E / s c e H p r m . c p p
C o r e / H L E / s c e H p r m . h
C o r e / H L E / s c e H t t p . c p p
C o r e / H L E / s c e H t t p . h
C o r e / H L E / s c e I m p o s e . c p p
C o r e / H L E / s c e I m p o s e . h
C o r e / H L E / s c e I o . c p p
C o r e / H L E / s c e I o . h
C o r e / H L E / s c e K e r n e l . c p p
C o r e / H L E / s c e K e r n e l . h
C o r e / H L E / s c e K e r n e l A l a r m . c p p
C o r e / H L E / s c e K e r n e l A l a r m . h
C o r e / H L E / s c e K e r n e l E v e n t F l a g . c p p
C o r e / H L E / s c e K e r n e l E v e n t F l a g . h
C o r e / H L E / s c e K e r n e l I n t e r r u p t . c p p
C o r e / H L E / s c e K e r n e l I n t e r r u p t . h
C o r e / H L E / s c e K e r n e l M b x . c p p
C o r e / H L E / s c e K e r n e l M b x . h
C o r e / H L E / s c e K e r n e l M e m o r y . c p p
C o r e / H L E / s c e K e r n e l M e m o r y . h
C o r e / H L E / s c e K e r n e l M o d u l e . c p p
C o r e / H L E / s c e K e r n e l M o d u l e . h
C o r e / H L E / s c e K e r n e l M s g P i p e . c p p
C o r e / H L E / s c e K e r n e l M s g P i p e . h
C o r e / H L E / s c e K e r n e l M u t e x . c p p
C o r e / H L E / s c e K e r n e l M u t e x . h
C o r e / H L E / s c e K e r n e l S e m a p h o r e . c p p
C o r e / H L E / s c e K e r n e l S e m a p h o r e . h
C o r e / H L E / s c e K e r n e l T h r e a d . c p p
C o r e / H L E / s c e K e r n e l T h r e a d . h
C o r e / H L E / s c e K e r n e l T i m e . c p p
C o r e / H L E / s c e K e r n e l T i m e . h
C o r e / H L E / s c e K e r n e l V T i m e r . c p p
C o r e / H L E / s c e K e r n e l V T i m e r . h
C o r e / H L E / s c e M p e g . c p p
C o r e / H L E / s c e M p e g . h
C o r e / H L E / s c e N e t . c p p
C o r e / H L E / s c e N e t . h
2012-12-06 18:44:29 +00:00
C o r e / H L E / s c e O p e n P S I D . c p p
C o r e / H L E / s c e O p e n P S I D . h
C o r e / H L E / s c e P a r s e H t t p . c p p
C o r e / H L E / s c e P a r s e H t t p . h
C o r e / H L E / s c e P a r s e U r i . c p p
C o r e / H L E / s c e P a r s e U r i . h
2012-11-26 02:41:57 +00:00
C o r e / H L E / s c e P o w e r . c p p
C o r e / H L E / s c e P o w e r . h
C o r e / H L E / s c e P s m f . c p p
C o r e / H L E / s c e P s m f . h
C o r e / H L E / s c e R t c . c p p
C o r e / H L E / s c e R t c . h
C o r e / H L E / s c e S a s . c p p
C o r e / H L E / s c e S a s . h
2012-12-06 18:44:29 +00:00
C o r e / H L E / s c e S s l . c p p
C o r e / H L E / s c e S s l . h
2012-11-26 02:41:57 +00:00
C o r e / H L E / s c e U m d . c p p
C o r e / H L E / s c e U m d . h
2012-12-17 20:45:32 +00:00
C o r e / H L E / s c e U s b . c p p
C o r e / H L E / s c e U s b . h
2012-11-26 02:41:57 +00:00
C o r e / H L E / s c e U t i l i t y . c p p
C o r e / H L E / s c e U t i l i t y . h
2012-12-06 18:44:29 +00:00
C o r e / H L E / s c e V a u d i o . c p p
C o r e / H L E / s c e V a u d i o . h
2013-01-05 15:23:21 +00:00
C o r e / H W / M e d i a E n g i n e . c p p
C o r e / H W / M e d i a E n g i n e . h
2012-11-26 02:41:57 +00:00
C o r e / H W / M e m o r y S t i c k . c p p
C o r e / H W / M e m o r y S t i c k . h
2012-12-16 19:40:49 +00:00
C o r e / H W / S a s A u d i o . c p p
C o r e / H W / S a s A u d i o . h
2012-11-26 02:41:57 +00:00
C o r e / H o s t . c p p
C o r e / H o s t . h
C o r e / L o a d e r s . c p p
C o r e / L o a d e r s . h
C o r e / M I P S / J i t C o m m o n / J i t C o m m o n . c p p
C o r e / M I P S / J i t C o m m o n / J i t C o m m o n . h
C o r e / M I P S / M I P S . c p p
C o r e / M I P S / M I P S . h
C o r e / M I P S / M I P S A n a l y s t . c p p
C o r e / M I P S / M I P S A n a l y s t . h
C o r e / M I P S / M I P S C o d e U t i l s . c p p
C o r e / M I P S / M I P S C o d e U t i l s . h
C o r e / M I P S / M I P S D e b u g I n t e r f a c e . c p p
C o r e / M I P S / M I P S D e b u g I n t e r f a c e . h
C o r e / M I P S / M I P S D i s . c p p
C o r e / M I P S / M I P S D i s . h
C o r e / M I P S / M I P S D i s V F P U . c p p
C o r e / M I P S / M I P S D i s V F P U . h
C o r e / M I P S / M I P S I n t . c p p
C o r e / M I P S / M I P S I n t . h
C o r e / M I P S / M I P S I n t V F P U . c p p
C o r e / M I P S / M I P S I n t V F P U . h
C o r e / M I P S / M I P S T a b l e s . c p p
C o r e / M I P S / M I P S T a b l e s . h
C o r e / M I P S / M I P S V F P U U t i l s . c p p
C o r e / M I P S / M I P S V F P U U t i l s . h
C o r e / M e m M a p . c p p
C o r e / M e m M a p . h
C o r e / M e m M a p F u n c t i o n s . c p p
C o r e / P S P L o a d e r s . c p p
C o r e / P S P L o a d e r s . h
C o r e / P S P M i x e r . c p p
C o r e / P S P M i x e r . h
2012-12-27 18:34:22 +00:00
C o r e / S a v e S t a t e . c p p
C o r e / S a v e S t a t e . h
2012-11-26 02:41:57 +00:00
C o r e / S y s t e m . c p p
C o r e / S y s t e m . h
C o r e / U t i l / B l o c k A l l o c a t o r . c p p
C o r e / U t i l / B l o c k A l l o c a t o r . h
C o r e / U t i l / P P G e D r a w . c p p
C o r e / U t i l / P P G e D r a w . h
C o r e / U t i l / P o o l . h
C o r e / U t i l / p p g e _ a t l a s . c p p
C o r e / U t i l / p p g e _ a t l a s . h
$ < T A R G E T _ O B J E C T S : G P U >
G l o b a l s . h )
2013-01-19 16:05:08 +00:00
target_link_libraries ( ${ CoreLibName } Common native kirk cityhash
2012-11-26 02:41:57 +00:00
$ { G L E W _ L I B R A R I E S } $ { O P E N G L _ L I B R A R I E S } )
2012-11-18 16:00:27 +00:00
setup_target_project ( ${ CoreLibName } Core )
add_library ( GPU OBJECT
2012-11-26 02:41:57 +00:00
G P U / G L E S / D i s p l a y L i s t I n t e r p r e t e r . c p p
G P U / G L E S / D i s p l a y L i s t I n t e r p r e t e r . h
G P U / G L E S / F r a g m e n t S h a d e r G e n e r a t o r . c p p
G P U / G L E S / F r a g m e n t S h a d e r G e n e r a t o r . h
G P U / G L E S / F r a m e b u f f e r . c p p
G P U / G L E S / F r a m e b u f f e r . h
2012-12-21 16:50:22 +00:00
G P U / G L E S / I n d e x G e n e r a t o r . c p p
G P U / G L E S / I n d e x G e n e r a t o r . h
2012-11-26 02:41:57 +00:00
G P U / G L E S / S h a d e r M a n a g e r . c p p
G P U / G L E S / S h a d e r M a n a g e r . h
G P U / G L E S / S t a t e M a p p i n g . c p p
G P U / G L E S / S t a t e M a p p i n g . h
G P U / G L E S / T e x t u r e C a c h e . c p p
G P U / G L E S / T e x t u r e C a c h e . h
G P U / G L E S / T r a n s f o r m P i p e l i n e . c p p
G P U / G L E S / T r a n s f o r m P i p e l i n e . h
G P U / G L E S / V e r t e x D e c o d e r . c p p
G P U / G L E S / V e r t e x D e c o d e r . h
G P U / G L E S / V e r t e x S h a d e r G e n e r a t o r . c p p
G P U / G L E S / V e r t e x S h a d e r G e n e r a t o r . h
G P U / G P U I n t e r f a c e . h
2012-12-26 23:18:45 +00:00
G P U / G e D i s a s m . c p p
G P U / G e D i s a s m . h
2012-12-28 20:58:00 +00:00
G P U / G P U C o m m o n . c p p
G P U / G P U C o m m o n . h
2012-11-26 02:41:57 +00:00
G P U / G P U S t a t e . c p p
G P U / G P U S t a t e . h
G P U / M a t h 3 D . c p p
G P U / M a t h 3 D . h
G P U / N u l l / N u l l G p u . c p p
G P U / N u l l / N u l l G p u . h
G P U / g e _ c o n s t a n t s . h )
2012-11-18 16:00:27 +00:00
setup_target_project ( GPU GPU )
if ( WIN32 )
2012-11-26 02:41:57 +00:00
add_executable ( PPSSPPWindows WIN32
W i n d o w s / B r e a k p o i n t s . h
W i n d o w s / D S o u n d S t r e a m . c p p
W i n d o w s / D S o u n d S t r e a m . h
W i n d o w s / D e b u g g e r / C P U R e g s I n t e r f a c e . h
W i n d o w s / D e b u g g e r / C t r l D i s A s m V i e w . c p p
W i n d o w s / D e b u g g e r / C t r l D i s A s m V i e w . h
W i n d o w s / D e b u g g e r / C t r l M e m V i e w . c p p
W i n d o w s / D e b u g g e r / C t r l M e m V i e w . h
W i n d o w s / D e b u g g e r / C t r l R e g i s t e r L i s t . c p p
W i n d o w s / D e b u g g e r / C t r l R e g i s t e r L i s t . h
W i n d o w s / D e b u g g e r / D e b u g g e r . h
W i n d o w s / D e b u g g e r / D e b u g g e r _ D i s a s m . c p p
W i n d o w s / D e b u g g e r / D e b u g g e r _ D i s a s m . h
W i n d o w s / D e b u g g e r / D e b u g g e r _ M e m o r y D l g . c p p
W i n d o w s / D e b u g g e r / D e b u g g e r _ M e m o r y D l g . h
W i n d o w s / D e b u g g e r / D e b u g g e r _ M i s c . c p p
W i n d o w s / D e b u g g e r / D e b u g g e r _ M i s c . h
# Windows/Debugger/Debugger_Profiler.cpp
# Windows/Debugger/Debugger_Profiler.h
W i n d o w s / D e b u g g e r / D e b u g g e r _ S y m b o l M a p . h
W i n d o w s / D e b u g g e r / D e b u g g e r _ V F P U D l g . c p p
W i n d o w s / D e b u g g e r / D e b u g g e r _ V F P U D l g . h
W i n d o w s / D e b u g g e r / S i m p l e E L F . h
# Windows/DlgDynaView.cpp
# Windows/DlgDynaView.h
W i n d o w s / E m u T h r e a d . c p p
W i n d o w s / E m u T h r e a d . h
W i n d o w s / G l o b a l s . c p p
W i n d o w s / I n p u t B o x . c p p
W i n d o w s / I n p u t B o x . h
W i n d o w s / I n p u t D e v i c e . c p p
W i n d o w s / I n p u t D e v i c e . h
W i n d o w s / K e y b o a r d D e v i c e . c p p
W i n d o w s / K e y b o a r d D e v i c e . h
W i n d o w s / M I P S C o m p A L U . h
W i n d o w s / M I P S C o m p B r a n c h . h
W i n d o w s / O p e n G L B a s e . c p p
W i n d o w s / O p e n G L B a s e . h
W i n d o w s / W 3 2 U t i l / D i a l o g M a n a g e r . c p p
W i n d o w s / W 3 2 U t i l / D i a l o g M a n a g e r . h
W i n d o w s / W 3 2 U t i l / M i s c . c p p
W i n d o w s / W 3 2 U t i l / M i s c . h
W i n d o w s / W 3 2 U t i l / P r o p e r t y S h e e t . c p p
W i n d o w s / W 3 2 U t i l / P r o p e r t y S h e e t . h
W i n d o w s / W 3 2 U t i l / S h e l l U t i l . c p p
W i n d o w s / W 3 2 U t i l / S h e l l U t i l . h
W i n d o w s / W 3 2 U t i l / X P T h e m e . h
W i n d o w s / W i n d o w s F i l e S y s t e m . h
W i n d o w s / W i n d o w s H o s t . c p p
W i n d o w s / W i n d o w s H o s t . h
W i n d o w s / W n d M a i n W i n d o w . c p p
W i n d o w s / W n d M a i n W i n d o w . h
W i n d o w s / X P T h e m e . h
W i n d o w s / X i n p u t D e v i c e . c p p
W i n d o w s / X i n p u t D e v i c e . h
W i n d o w s / m a i n . c p p
W i n d o w s / m a i n . h
W i n d o w s / p p s s p p . r c
W i n d o w s / r e s o u r c e . h
W i n d o w s / s t d a f x . c p p
W i n d o w s / s t d a f x . h )
target_link_libraries ( PPSSPPWindows ${ CoreLibName }
k e r n e l 3 2 u s e r 3 2 g d i 3 2 s h e l l 3 2 c o m c t l 3 2 d s o u n d x i n p u t )
setup_target_project ( PPSSPPWindows Windows )
2012-11-18 16:00:27 +00:00
endif ( )
if ( HEADLESS )
2013-02-08 08:22:37 +00:00
add_executable ( PPSSPPHeadless
h e a d l e s s / H e a d l e s s . c p p
h e a d l e s s / S t u b H o s t . h
h e a d l e s s / C o m p a r e . c p p
h e a d l e s s / C o m p a r e . h )
2012-11-26 22:06:18 +00:00
target_link_libraries ( PPSSPPHeadless ${ CoreLibName }
$ { C O C O A _ L I B R A R Y } $ { C M A K E _ T H R E A D _ L I B S _ I N I T } )
2012-11-26 02:41:57 +00:00
setup_target_project ( PPSSPPHeadless headless )
2012-11-18 16:00:27 +00:00
endif ( )
2012-12-02 04:48:00 +00:00
set ( NativeAppSource
a n d r o i d / j n i / N a t i v e A p p . c p p
a n d r o i d / j n i / E m u S c r e e n . c p p
a n d r o i d / j n i / M e n u S c r e e n s . c p p
a n d r o i d / j n i / G a m e p a d E m u . c p p
a n d r o i d / j n i / U I S h a d e r . c p p
a n d r o i d / j n i / u i _ a t l a s . c p p )
2013-01-15 21:49:27 +00:00
if ( ANDROID )
set ( NativeAppSource ${ NativeAppSource } android/jni/ArmEmitterTest.cpp )
endif ( )
2012-12-16 15:47:39 +00:00
set ( NativeAssets
2012-12-02 04:48:00 +00:00
a n d r o i d / a s s e t s / u i _ a t l a s . z i m
2012-12-16 15:47:39 +00:00
a s s e t s / p p g e _ a t l a s . z i m )
2012-12-02 04:48:00 +00:00
set ( LinkCommon ${ CoreLibName } ${ CMAKE_THREAD_LIBS_INIT } ${ nativeExtraLibs } )
if ( TargetBin )
2013-02-24 03:23:04 +00:00
if ( IOS )
add_executable ( ${ TargetBin } MACOSX_BUNDLE ${ NativeAppSource } )
else ( )
add_executable ( ${ TargetBin } ${ NativeAppSource } )
endif ( )
2012-12-02 04:48:00 +00:00
target_link_libraries ( ${ TargetBin } ${ LinkCommon } )
2012-11-18 16:00:27 +00:00
endif ( )
2013-02-24 03:23:04 +00:00
# installs
2012-12-16 15:47:39 +00:00
file ( INSTALL ${ NativeAssets } DESTINATION assets )
2012-12-02 04:48:00 +00:00
2013-02-24 03:23:04 +00:00
# packaging and code signing
2013-02-17 14:04:44 +00:00
if ( IOS )
2013-02-24 03:23:04 +00:00
set ( RSRC_XIB_FILES assets/Icon@2x.png )
SET_SOURCE_FILES_PROPERTIES ( ${ RSRC_XIB_FILES } PROPERTIES MACOSX_PACKAGE_LOCATION Resources )
set ( APP_DIR_NAME \${TARGET_BUILD_DIR}/\${FULL_PRODUCT_NAME})
add_custom_command ( TARGET PPSSPP POST_BUILD
2013-02-24 13:29:04 +00:00
C O M M A N D t a r - c - C . - - e x c l u d e . D S _ S t o r e - - e x c l u d e . g i t - H ` f i n d a s s e t s ` | t a r - x - C $ { A P P _ D I R _ N A M E }
2013-02-24 03:23:04 +00:00
)
2013-02-24 07:19:49 +00:00
set_target_properties ( ${ TargetBin } PROPERTIES MACOSX_BUNDLE_INFO_PLIST "../ios/PPSSPP-Info.plist" XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "iPhone Developer: My Name" )
2013-02-17 14:04:44 +00:00
endif ( )
2012-11-18 16:00:27 +00:00
#include(CPack)