Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
abdes committed Nov 1, 2019
2 parents 9b670cf + 0dbf619 commit cdad79d
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 33 deletions.
9 changes: 5 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,16 @@ variables:
- make install
- ctest -C $BUILD_TYPE --output-on-failure

build:ubuntu:trusty:gcc-6:
build:ubuntu:trusty:gcc-7:
<<: *build_definition
image: ubuntu:trusty
before_script:
- apt-get update -qq
- apt-get install -y -qq software-properties-common python-software-properties
- add-apt-repository ppa:ubuntu-toolchain-r/test
- apt-get update -qq
- apt-get install -y -qq wget git build-essential gcc-6 g++-6
- apt-get install -y -qq wget git build-essential gcc-7 g++-7
- apt-get install -y -qq xorg-dev libglu1-mesa-dev
variables:
CC: gcc-6
CXX: g++-6
CC: gcc-7
CXX: g++-7
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ set(META_AUTHOR_DOMAIN "https://github.com/abdes/asap")
set(META_AUTHOR_MAINTAINER "Abdessattar Sassi (abde.sassi gmail account)")
set(META_VERSION_MAJOR "0")
set(META_VERSION_MINOR "9")
set(META_VERSION_PATCH "2")
set(META_VERSION_PATCH "3")
set(META_VERSION_REVISION "${GIT_REV}")
set(META_VERSION "${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH}")
set(META_NAME_VERSION "${META_PROJECT_NAME} v${META_VERSION} (${META_VERSION_REVISION})")
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
| Windows | [![Windows][21]][20] |

[0]: https://travis-ci.org/abdes/asap_app_imgui
[9]: https://travis-matrix-badges.herokuapp.com/repos/abdes/asap_app_imgui/branches/master/9
[10]: https://travis-matrix-badges.herokuapp.com/repos/abdes/asap_app_imgui/branches/master/10
[11]: https://travis-matrix-badges.herokuapp.com/repos/abdes/asap_app_imgui/branches/master/11
[12]: https://travis-matrix-badges.herokuapp.com/repos/abdes/asap_app_imgui/branches/master/12
[13]: https://travis-matrix-badges.herokuapp.com/repos/abdes/asap_app_imgui/branches/master/13
[9]: https://travis-matrix-badges.herokuapp.com/repos/abdes/asap_app_imgui/branches/develop/9
[10]: https://travis-matrix-badges.herokuapp.com/repos/abdes/asap_app_imgui/branches/develop/10
[11]: https://travis-matrix-badges.herokuapp.com/repos/abdes/asap_app_imgui/branches/develop/11
[12]: https://travis-matrix-badges.herokuapp.com/repos/abdes/asap_app_imgui/branches/develop/12
[13]: https://travis-matrix-badges.herokuapp.com/repos/abdes/asap_app_imgui/branches/develop/13
[20]: https://ci.appveyor.com/project/abdes/asap-app-imgui
[21]: https://ci.appveyor.com/api/projects/status/qoaae14rw3cyivgq/branch/master?svg=true
[21]: https://ci.appveyor.com/api/projects/status/qoaae14rw3cyivgq/branch/develop?svg=true

# Starter project with minimum necessary functionality
- use cmake for the build system
Expand Down
2 changes: 1 addition & 1 deletion common
Submodule common updated from 85cb5e to a9cbe8
2 changes: 1 addition & 1 deletion filesystem
Submodule filesystem updated from 26395a to 57c6d8
2 changes: 1 addition & 1 deletion imgui
Submodule imgui updated from f8c37b to 4d7988
6 changes: 3 additions & 3 deletions main/src/imgui_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,14 +490,14 @@ void ImGuiRunner::LoadSetting() {
if (asap::filesystem::exists(display_settings)) {
try {
config = cpptoml::parse_file(display_settings.string());
ASLOG(info, "display settings loaded from {}", display_settings);
ASLOG(info, "display settings loaded from {}", display_settings.string());
has_config = true;
} catch (std::exception const &ex) {
ASLOG(error, "error () while loading settings from {}", ex.what(),
display_settings);
display_settings.string());
}
} else {
ASLOG(info, "file {} does not exist", display_settings);
ASLOG(info, "file {} does not exist", display_settings.string());
}

int width = 800;
Expand Down
4 changes: 2 additions & 2 deletions main/src/ui/application_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ float ApplicationBase::DrawMainMenu() {
void ApplicationBase::DrawStatusBar(float width, float height, float pos_x,
float pos_y) {
// Draw status bar (no docking)
ImGui::SetNextWindowSize(ImVec2(width, height), ImGuiSetCond_Always);
ImGui::SetNextWindowPos(ImVec2(pos_x, pos_y), ImGuiSetCond_Always);
ImGui::SetNextWindowSize(ImVec2(width, height), ImGuiCond_Always);
ImGui::SetNextWindowPos(ImVec2(pos_x, pos_y), ImGuiCond_Always);
ImGui::Begin("statusbar", nullptr,
ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings |
ImGuiWindowFlags_NoBringToFrontOnFocus |
Expand Down
4 changes: 2 additions & 2 deletions main/src/ui/log/sink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ namespace asap {
color_range_end = static_cast<std::size_t>(ostr.tellp());
}
if (show_logger_) {
ostr << "[" << *msg.logger_name << "] ";
ostr.put('[').write(msg.logger_name.data(), msg.logger_name.size()).write("] ", 2);
}
auto properties = ostr.str();

Expand Down Expand Up @@ -431,7 +431,7 @@ namespace asap {
log_settings.string());
}
} else {
ASLOG(info, "file {} does not exist", log_settings);
ASLOG(info, "file {} does not exist", log_settings.string());
}

if (has_config) {
Expand Down
6 changes: 3 additions & 3 deletions main/src/ui/style/theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,15 +668,15 @@ void Theme::LoadStyle() {
try {
config = cpptoml::parse_file(theme_settings.string());
ASLOG_TO_LOGGER(logger, info, "theme settings loaded from {}",
theme_settings);
theme_settings.string());
has_config = true;
} catch (std::exception const &ex) {
ASLOG_TO_LOGGER(logger, error,
"error () while loading theme settings from {}",
ex.what(), theme_settings);
ex.what(), theme_settings.string());
}
} else {
ASLOG_TO_LOGGER(logger, info, "file {} does not exist", theme_settings);
ASLOG_TO_LOGGER(logger, info, "file {} does not exist", theme_settings.string());
}

if (has_config) {
Expand Down
9 changes: 4 additions & 5 deletions third_party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,16 @@

message("=> [third-party modules]")

# Boost
#set(BOOST_URL https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.bz2 CACHE STRING "Boost download URL" FORCE)
#set(BOOST_URL_SHA256 2684c972994ee57fc5632e03bf044746f6eb45d4920c343937a465fd67a5adba CACHE STRING "Boost download URL SHA256 checksum" FORCE)
#add_subdirectory(boost-cmake)

# Catch2
# EXCLUDE_FROM_ALL to not have it install its files during install
add_subdirectory(catch2 EXCLUDE_FROM_ALL)

# spdlog
SET(SPDLOG_BUILD_TESTING OFF CACHE BOOL "Build spdlog tests")
SET(SPDLOG_INSTALL ON CACHE BOOL "Generate the spdlog install target")
if(NOT (WIN32 OR MINGW))
SET(SPDLOG_BUILD_SHARED ${BUILD_SHARED_LIBS} CACHE BOOL "Build spdlog as a shared library")
endif()
add_subdirectory(spdlog)

# GLFW
Expand Down
2 changes: 1 addition & 1 deletion third_party/catch2
Submodule catch2 updated 223 files
2 changes: 1 addition & 1 deletion third_party/cxxopts
2 changes: 1 addition & 1 deletion third_party/spdlog
Submodule spdlog updated 158 files

0 comments on commit cdad79d

Please sign in to comment.