diff --git a/3party/3party.pro b/3party/3party.pro index 0d5ca49464..ce929599a4 100644 --- a/3party/3party.pro +++ b/3party/3party.pro @@ -2,24 +2,30 @@ TEMPLATE = subdirs -# TODO: Avoid duplication here and in omim.pro by moving -# opening_hours tests out of 3party. +# TODO: Avoid duplication here and in omim.pro by moving opening_hours tests out of 3party. !iphone*:!tizen*:!android* { CONFIG *= desktop } -SUBDIRS = freetype fribidi minizip jansson tomcrypt protobuf osrm expat \ - succinct \ +SUBDIRS = freetype fribidi minizip jansson tomcrypt protobuf osrm expat succinct -SUBDIRS += opening_hours +# TODO(mgsrergio): Move opening hours out of 3party to the main project tree. +# See https://trello.com/c/tWYSnXSS/22-opening-hours-3party-boost-test-framework. +SUBDIRS *= opening_hours CONFIG(desktop):!CONFIG(no-tests) { - SUBDIRS += opening_hours/opening_hours_tests \ - opening_hours/opening_hours_integration_tests \ - opening_hours/opening_hours_supported_features_tests + opening_hours_tests.subdir = opening_hours/opening_hours_tests + opening_hours_tests.depends = opening_hours + SUBDIRS *= opening_hours_tests + + opening_hours_integration_tests.subdir = opening_hours/opening_hours_integration_tests + opening_hours_integration_tests.depends = opening_hours + SUBDIRS *= opening_hours_integration_tests + + opening_hours_supported_features_tests.subdir = opening_hours/opening_hours_supported_features_tests + opening_hours_supported_features_tests.depends = opening_hours + SUBDIRS *= opening_hours_supported_features_tests } CONFIG(desktop) { - SUBDIRS += gflags \ - libtess2 \ - gmock + SUBDIRS *= gflags libtess2 gmock } diff --git a/3party/opening_hours/opening_hours.cpp b/3party/opening_hours/opening_hours.cpp index f78982a951..548d3bd7cf 100644 --- a/3party/opening_hours/opening_hours.cpp +++ b/3party/opening_hours/opening_hours.cpp @@ -24,11 +24,11 @@ #include "opening_hours.hpp" +#include #include #include -#include -#include #include +#include namespace {