mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-27 06:21:02 +00:00
Fix OpenAL and and wxWidgets finding on cmake/win
This commit is contained in:
parent
8fd52666b7
commit
fafdc213ed
29
appveyor.yml
29
appveyor.yml
@ -13,20 +13,33 @@ before_build:
|
|||||||
- git submodule update --init --depth 3 asmjit minidx9
|
- git submodule update --init --depth 3 asmjit minidx9
|
||||||
# until git for win 2.5 release
|
# until git for win 2.5 release
|
||||||
- git submodule update --init ffmpeg wxWidgets
|
- git submodule update --init ffmpeg wxWidgets
|
||||||
- if exist "c:\cache\wxWidgets\build" move c:\cache\wxWidgets\build wxWidgets\build
|
- 7z x lib.7z -aos -oC:\projects\rpcs3\wxWidgets
|
||||||
|
- cmake -G "Visual Studio 14 Win64" -DwxWidgets_ROOT_DIR=C:\projects\rpcs3\wxWidgets;
|
||||||
|
|
||||||
|
build_script:
|
||||||
|
- cmake --build . --config Release
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
|
- cinst wget
|
||||||
|
# - ps: Start-FileDownload 'http://sourceforge.net/projects/syncped/files/wxWidgets-3.1.0-include.7z'
|
||||||
|
- ps: Start-FileDownload 'https://402331b94f8e4b87ae2ef4677347f7956cf3861f.googledrive.com/host/0B6v_qtb9hkicfmt0NG0wTTRtUmF4X3VTQk5Oc2JidEVKVnUteDA1dXdrYlNsVW9kREpsSHc/lib.7z'
|
||||||
|
# - ps: Start-FileDownload 'http://sourceforge.net/projects/syncped/files/wxWidgets-3.1.0-locale.7z'
|
||||||
|
# - 7z x wxWidgets-3.1.0-include.7z -oC:\wxWidgets
|
||||||
|
# - 7z x wxWidgets-3.1.0-locale.7z -oC:\wxWidgets
|
||||||
|
- set wxWidgets_ROOT_DIR=C:\projects\rpcs3\wxWidgets;
|
||||||
|
- set WXWIN=C:\projects\rpcs3\wxWidgets;
|
||||||
|
- set OPENALDIR=C:\projects\rpcs3\OpenAL;
|
||||||
|
- set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;C:\wxWidgets;%PATH%
|
||||||
|
|
||||||
after_build:
|
after_build:
|
||||||
- mkdir c:\cache\wxWidgets\build
|
- mkdir c:\cache\wxWidgets\lib\vc_x64_lib
|
||||||
- move wxWidgets\lib\vc_x64_lib c:\cache\wxWidgets\build
|
- move wxWidgets\lib\vc_x64_lib c:\cache\wxWidgets\lib\vc_x64_lib
|
||||||
|
|
||||||
# not exactly the best dependency but works for now
|
# not exactly the best dependency but works for now
|
||||||
cache:
|
cache:
|
||||||
- c:\cache\wxWidgets\build -> .gitmodules
|
# - c:\cache\wxWidgets\lib\vc_x64_lib -> .gitmodules
|
||||||
|
|
||||||
test: off
|
test: off
|
||||||
build:
|
#build:
|
||||||
project: rpcs3.sln
|
# project: rpcs3.sln
|
||||||
verbosity: minimal
|
# verbosity: minimal
|
@ -69,11 +69,14 @@ add_definitions(-DGL_GLEXT_PROTOTYPES)
|
|||||||
add_definitions(-DGLX_GLXEXT_PROTOTYPES)
|
add_definitions(-DGLX_GLXEXT_PROTOTYPES)
|
||||||
|
|
||||||
find_package(wxWidgets COMPONENTS core base net aui gl xml REQUIRED)
|
find_package(wxWidgets COMPONENTS core base net aui gl xml REQUIRED)
|
||||||
find_package(GLEW REQUIRED)
|
if(WIN32)
|
||||||
|
find_package(GLEW REQUIRED)
|
||||||
|
endif()
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
find_package(ZLIB REQUIRED)
|
#find_package(ZLIB REQUIRED) test
|
||||||
find_package(OpenAL REQUIRED)
|
find_package(OpenAL REQUIRED)
|
||||||
find_package(LLVM REQUIRED CONFIG)
|
#find_package(LLVM REQUIRED CONFIG)
|
||||||
|
find_package(LLVM CONFIG)
|
||||||
|
|
||||||
include("${wxWidgets_USE_FILE}")
|
include("${wxWidgets_USE_FILE}")
|
||||||
|
|
||||||
@ -97,12 +100,14 @@ ${LLVM_INCLUDE_DIRS}
|
|||||||
"${RPCS3_SRC_DIR}/../asmjit/src/asmjit"
|
"${RPCS3_SRC_DIR}/../asmjit/src/asmjit"
|
||||||
)
|
)
|
||||||
|
|
||||||
add_definitions(${LLVM_DEFINITIONS})
|
if(LLVM_FOUND)
|
||||||
add_definitions(-DLLVM_AVAILABLE)
|
add_definitions(${LLVM_DEFINITIONS})
|
||||||
if (CMAKE_BUILD_TYPE STREQUAL "Release")
|
add_definitions(-DLLVM_AVAILABLE)
|
||||||
llvm_map_components_to_libnames(LLVM_LIBS mcjit vectorize x86codegen x86disassembler)
|
if (CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||||
else()
|
llvm_map_components_to_libnames(LLVM_LIBS mcjit vectorize x86codegen x86disassembler)
|
||||||
llvm_map_components_to_libnames(LLVM_LIBS mcjit vectorize x86codegen x86disassembler mcdisassembler)
|
else()
|
||||||
|
llvm_map_components_to_libnames(LLVM_LIBS mcjit vectorize x86codegen x86disassembler mcdisassembler)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
link_directories("${RPCS3_SRC_DIR}/../ffmpeg/${PLATFORM_ARCH}/lib")
|
link_directories("${RPCS3_SRC_DIR}/../ffmpeg/${PLATFORM_ARCH}/lib")
|
||||||
|
1088
rpcs3/cmake_modules/FindwxWidgets.cmake
Normal file
1088
rpcs3/cmake_modules/FindwxWidgets.cmake
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user