1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 02:12:45 +01:00

rwtools: enable on ci

This commit is contained in:
Anonymous Maarten 2018-08-09 23:08:07 +02:00
parent 50bbfb40f3
commit dc595748a0
15 changed files with 27 additions and 8 deletions

View File

@ -32,7 +32,7 @@ matrix:
- /usr/bin/yes | pip2 uninstall numpy # see https://github.com/travis-ci/travis-ci/issues/6688
- brew upgrade python
- brew upgrade
- brew install boost cmake bullet ffmpeg glm openal-soft qt5 sdl2 jack
- brew install boost cmake bullet ffmpeg glm openal-soft qt5 sdl2 jack freetype
- export PATH="/usr/local/opt/qt/bin:$PATH"
script:
- mkdir -p "$TRAVIS_BUILD_DIR/build"

View File

@ -35,6 +35,9 @@ else()
if(BUILD_TESTS)
find_package(Boost COMPONENTS unit_test_framework REQUIRED)
endif()
if(BUILD_TOOLS)
find_package(Freetype REQUIRED)
endif()
# Do not link to SDL2main library
set(SDL2_BUILDING_LIBRARY True)

View File

@ -8,6 +8,7 @@ set(_ARGS_BOOL
USE_CONAN
DEBUG
CHECK_INCLUDES
BUILD_TOOLS
BUILD_VIEWER
RUN_TESTS
@ -142,6 +143,7 @@ else()
endif()
set(_CONFIGURE_OPTIONS
"-DBUILD_TOOLS=${BUILD_TOOLS}"
"-DBUILD_VIEWER=${BUILD_VIEWER}"
"-DBUILD_TESTS=TRUE"
"-DTESTS_NODATA=${TESTS_NODATA}"

View File

@ -1,6 +1,7 @@
set(CMAKE_GENERATOR "Xcode")
set(DEBUG FALSE)
set(CONFIGURE_EXTRA_OPTIONS ";")
set(BUILD_TOOLS TRUE)
set(BUILD_VIEWER TRUE)
set(COVERAGE_COMMAND gcov)
set(CHECK_INCLUDES FALSE)

View File

@ -1,6 +1,7 @@
set(CMAKE_GENERATOR "Unix Makefiles")
set(DEBUG FALSE)
set(CONFIGURE_EXTRA_OPTIONS ";")
set(BUILD_TOOLS TRUE)
set(BUILD_VIEWER TRUE)
set(COVERAGE_COMMAND gcov)
set(CHECK_INCLUDES FALSE)

View File

@ -35,6 +35,7 @@ endif()
set(CONAN_PROFILE "${CTEST_SOURCE_DIRECTORY}/scripts/conan/windows")
set(CONAN_ARCH "x86_64")
set(BUILD_TOOLS TRUE)
set(BUILD_VIEWER TRUE)
set(COVERAGE_COMMAND "echo") #FIXME: ENABLE
set(CHECK_INCLUDES FALSE) #FIXME: ENABLE

View File

@ -47,6 +47,9 @@ function(rwdep_wrap_find_packages)
if(Boost_UNIT_TEST_FRAMEWORK_FOUND)
rwdep_wrap_find_package(boost_unit_test_framework "${Boost_INCLUDE_DIRS}" "${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}")
endif()
if(FREETYPE_FOUND)
rwdep_wrap_find_package(freetype "${FREETYPE_INCLUDE_DIRS}" "${FREETYPE_LIBRARIES}")
endif()
endfunction()
function(rwdep_wrap_conan_target TARGET CONAN_NAME)
@ -66,4 +69,7 @@ function(rwdep_wrap_conan_targets)
rwdep_wrap_conan_target(glm glm)
rwdep_wrap_conan_target(ffmpeg ffmpeg)
rwdep_wrap_conan_target(SDL2 sdl2)
if(BUILD_TOOLS)
rwdep_wrap_conan_target(freetype freetype)
endif()
endfunction()

View File

@ -1,5 +1,4 @@
# fixme: conan support
find_package(Freetype REQUIRED)
find_package(Qt5 REQUIRED COMPONENTS Gui)
add_executable(rwfontmap
rwfontmap.cpp
@ -7,8 +6,8 @@ add_executable(rwfontmap
target_link_libraries(rwfontmap
PUBLIC
rwlib
Freetype::Freetype
rwcore
rwdep::freetype
rwdep::boost_program_options
Qt5::Gui
Boost::program_options
)

View File

@ -183,9 +183,9 @@ public:
}
void write(const rwfs::path &bitmap_path, const rwfs::path &advance_path) {
QImageWriter writer(bitmap_path.c_str());
QImageWriter writer(QString::fromStdString(bitmap_path.string()));
writer.write(m_texture);
std::ofstream ofs(advance_path.c_str(), std::ios_base::out);
std::ofstream ofs(advance_path.string(), std::ios_base::out);
ofs << m_aspectratio << '\n';
for (auto adv : m_advances) {
ofs << int(adv) << '\n';

View File

@ -1,6 +1,7 @@
include(default)
[options]
openrw:tools=True
openrw:viewer=True
# https://github.com/bincrafters/community/issues/120
ffmpeg:vdpau=False

View File

@ -1,6 +1,7 @@
include(default)
[options]
openrw:tools=True
openrw:viewer=True
sdl2:esd=False
sdl2:wayland=True

View File

@ -1,5 +1,6 @@
include(default)
[options]
openrw:tools=True
openrw:viewer=True
ffmpeg:qsv=False

View File

@ -10,6 +10,7 @@ RUN pacman -Syy --noconfirm \
community/glm \
extra/openal \
extra/sdl2 \
extra/qt5-base
extra/qt5-base \
extra/freetype2
CMD ["/bin/bash"]

View File

@ -17,6 +17,7 @@ RUN dnf update -y \
openal-soft-devel \
SDL2-devel \
qt5-devel \
freetype-devel \
libasan
CMD ["/bin/bash"]

View File

@ -16,6 +16,7 @@ RUN apt-get update \
libsdl2-dev \
libboost-test-dev \
libqt5opengl5-dev \
libfreetype6-dev \
iwyu \
qt5-default