Skip to content

Commit

Permalink
Merge pull request #2 from hrydgard/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Apology11 committed Mar 5, 2013
2 parents 289c252 + aca4740 commit fb14bdd
Show file tree
Hide file tree
Showing 223 changed files with 13,989 additions and 4,230 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ Release
Windows/x64
Windows/ipch

# For Mac
.DS_Store

# For ppsspp.ini, etc.
*.ini

Expand All @@ -37,13 +40,16 @@ gen
libs
obj
build*/
/git-version.cpp

.pspsh.hist
__testoutput.txt
__testerror.txt
__testfinish.txt
__testfailure.bmp
GameLogNotes.txt

android/ui_atlas.zim
android/assets/flash0
ppge_atlas.zim.png
local.properties
64 changes: 50 additions & 14 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ else()
endif()

#find_package(Qt5Widgets)
if(USING_GLES2)
if(USING_GLES2 AND NOT IOS)
set(OPENGL_LIBRARIES GLESv2)
else()
elseif(NOT IOS)
include(FindOpenGL REQUIRED)
endif()
if (NOT BLACKBERRY AND NOT ANDROID)
if (NOT BLACKBERRY AND NOT ANDROID AND NOT IOS)
include(FindSDL)
endif()
include(FindThreads)
Expand Down Expand Up @@ -119,9 +119,8 @@ if(NOT MSVC)
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()

if(APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
if(IOS)
add_definitions(-DGL_ETC1_RGB8_OES=0)
endif()

if(BLACKBERRY)
Expand All @@ -133,6 +132,12 @@ if(NOT MSVC)
add_definitions(-msse2)
endif()

if(IOS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++")
elseif(APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
endif()
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()
Expand Down Expand Up @@ -415,9 +420,8 @@ elseif(IOS)
ios/AppDelegate.h
ios/ViewController.mm
ios/ViewController.h)
set(CMAKE_EXE_LINKER_FLAGS "-framework Foundation -framework CoreGraphics -framework QuartzCore -framework OpenGLES -framework UIKit")
# No target
# set(TargetBin PPSSPP)
set(nativeExtraLibs ${nativeExtraLibs} "-framework Foundation -framework AudioToolbox -framework CoreGraphics -framework QuartzCore -framework OpenGLES -framework UIKit -framework GLKit")
set(TargetBin PPSSPP)
elseif(USING_QT_UI)
# Currently unused
find_package(Qt4 COMPONENTS QtMultimedia QtOpenGL QtGui QtCore)
Expand Down Expand Up @@ -589,6 +593,8 @@ endif()
add_library(kirk STATIC
ext/libkirk/AES.c
ext/libkirk/AES.h
ext/libkirk/amctrl.c
ext/libkirk/amctrl.h
ext/libkirk/SHA1.c
ext/libkirk/SHA1.h
ext/libkirk/bn.c
Expand All @@ -613,6 +619,8 @@ if(ARM)
Core/MIPS/ARM/ArmJitCache.h
Core/MIPS/ARM/ArmRegCache.cpp
Core/MIPS/ARM/ArmRegCache.h
Core/MIPS/ARM/ArmRegCacheFPU.cpp
Core/MIPS/ARM/ArmRegCacheFPU.h
ext/disarm.cpp)
elseif(X86)
set(CoreExtra ${CoreExtra}
Expand Down Expand Up @@ -679,6 +687,8 @@ add_library(${CoreLibName} ${CoreLinkType}
Core/FileSystems/ISOFileSystem.h
Core/FileSystems/MetaFileSystem.cpp
Core/FileSystems/MetaFileSystem.h
Core/Font/PGF.cpp
Core/Font/PGF.h
Core/HLE/FunctionWrappers.h
Core/HLE/HLE.cpp
Core/HLE/HLE.h
Expand Down Expand Up @@ -764,6 +774,8 @@ add_library(${CoreLibName} ${CoreLinkType}
Core/HLE/sceUtility.h
Core/HLE/sceVaudio.cpp
Core/HLE/sceVaudio.h
Core/HLE/scePspNpDrm_user.cpp
Core/HLE/scePspNpDrm_user.h
Core/HW/MediaEngine.cpp
Core/HW/MediaEngine.h
Core/HW/MemoryStick.cpp
Expand Down Expand Up @@ -803,6 +815,8 @@ add_library(${CoreLibName} ${CoreLinkType}
Core/PSPLoaders.h
Core/PSPMixer.cpp
Core/PSPMixer.h
Core/Reporting.cpp
Core/Reporting.h
Core/SaveState.cpp
Core/SaveState.h
Core/System.cpp
Expand All @@ -811,15 +825,26 @@ add_library(${CoreLibName} ${CoreLinkType}
Core/Util/BlockAllocator.h
Core/Util/PPGeDraw.cpp
Core/Util/PPGeDraw.h
Core/Util/Pool.h
Core/Util/ppge_atlas.cpp
Core/Util/ppge_atlas.h
$<TARGET_OBJECTS:GPU>
Globals.h)
Globals.h
git-version.cpp)
target_link_libraries(${CoreLibName} Common native kirk cityhash
${GLEW_LIBRARIES} ${OPENGL_LIBRARIES})
setup_target_project(${CoreLibName} Core)

# Generate git-version.cpp at build time.
add_custom_target(GitVersion ALL
DEPENDS something_that_never_exists)
add_custom_command(OUTPUT something_that_never_exists
COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}
-P ${CMAKE_CURRENT_SOURCE_DIR}/git-version.cmake)

set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/git-version.cpp
PROPERTIES GENERATED TRUE)
add_dependencies(${CoreLibName} GitVersion)

add_library(GPU OBJECT
GPU/GLES/DisplayListInterpreter.cpp
GPU/GLES/DisplayListInterpreter.h
Expand Down Expand Up @@ -950,15 +975,26 @@ set(NativeAssets
set(LinkCommon ${CoreLibName} ${CMAKE_THREAD_LIBS_INIT} ${nativeExtraLibs})

if (TargetBin)
add_executable(${TargetBin} ${NativeAppSource})
if (IOS)
add_executable(${TargetBin} MACOSX_BUNDLE ${NativeAppSource})
else()
add_executable(${TargetBin} ${NativeAppSource})
endif()
target_link_libraries(${TargetBin} ${LinkCommon})
endif()

# installs
file(INSTALL ${NativeAssets} DESTINATION assets)

# code signing
# packaging and code signing
if (IOS)
set_target_properties(${NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST PPSSPP-Info.plist XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "iPhone Developer: My Name")
set(RSRC_XIB_FILES assets/[email protected])
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
COMMAND tar -c -C . --exclude .DS_Store --exclude .git -H `find assets` | tar -x -C ${APP_DIR_NAME}
)
set_target_properties(${TargetBin} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "../ios/PPSSPP-Info.plist" XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "iPhone Developer: My Name")
endif()

#include(CPack)
3 changes: 2 additions & 1 deletion Common/ArmCPUDetect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,12 @@ void CPUInfo::Detect()
#ifdef __SYMBIAN32__
bThumbEE = false;
bNEON = false;
bVFPv3 = false;
#else
bThumbEE = true;
bNEON = true;
#endif
bVFPv3 = true;
#endif
bTLS = true;
bVFPv4 = false;
bIDIVa = false;
Expand Down
Loading

0 comments on commit fb14bdd

Please sign in to comment.