mirror of
https://github.com/boostorg/locale.git
synced 2026-01-19 04:22:08 +00:00
Remove superflous subfolders of src
The shorter paths make the sources easier to navigate.
Basically revert of #99 / f44b3bb771
after the underlying issue is resolved.
This commit is contained in:
140
CMakeLists.txt
140
CMakeLists.txt
@@ -11,31 +11,31 @@ project(boost_locale VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
|
||||
file(GLOB_RECURSE headers include/*.hpp)
|
||||
|
||||
add_library(boost_locale
|
||||
src/boost/locale/encoding/codepage.cpp
|
||||
src/boost/locale/encoding/iconv_converter.hpp
|
||||
src/boost/locale/encoding/uconv_converter.hpp
|
||||
src/boost/locale/encoding/wconv_converter.hpp
|
||||
src/boost/locale/shared/date_time.cpp
|
||||
src/boost/locale/shared/format.cpp
|
||||
src/boost/locale/shared/formatting.cpp
|
||||
src/boost/locale/shared/generator.cpp
|
||||
src/boost/locale/shared/iconv_codecvt.cpp
|
||||
src/boost/locale/shared/iconv_codecvt.hpp
|
||||
src/boost/locale/shared/ids.cpp
|
||||
src/boost/locale/shared/localization_backend.cpp
|
||||
src/boost/locale/shared/message.cpp
|
||||
src/boost/locale/shared/mo_lambda.cpp
|
||||
src/boost/locale/shared/std_collate_adapter.hpp
|
||||
src/boost/locale/util/codecvt_converter.cpp
|
||||
src/boost/locale/util/default_locale.cpp
|
||||
src/boost/locale/util/encoding.cpp
|
||||
src/boost/locale/util/encoding.hpp
|
||||
src/boost/locale/util/foreach_char.hpp
|
||||
src/boost/locale/util/info.cpp
|
||||
src/boost/locale/util/locale_data.cpp
|
||||
src/boost/locale/util/make_std_unique.hpp
|
||||
src/boost/locale/util/numeric.hpp
|
||||
src/boost/locale/util/timezone.hpp
|
||||
src/encoding/codepage.cpp
|
||||
src/encoding/iconv_converter.hpp
|
||||
src/encoding/uconv_converter.hpp
|
||||
src/encoding/wconv_converter.hpp
|
||||
src/shared/date_time.cpp
|
||||
src/shared/format.cpp
|
||||
src/shared/formatting.cpp
|
||||
src/shared/generator.cpp
|
||||
src/shared/iconv_codecvt.cpp
|
||||
src/shared/iconv_codecvt.hpp
|
||||
src/shared/ids.cpp
|
||||
src/shared/localization_backend.cpp
|
||||
src/shared/message.cpp
|
||||
src/shared/mo_lambda.cpp
|
||||
src/shared/std_collate_adapter.hpp
|
||||
src/util/codecvt_converter.cpp
|
||||
src/util/default_locale.cpp
|
||||
src/util/encoding.cpp
|
||||
src/util/encoding.hpp
|
||||
src/util/foreach_char.hpp
|
||||
src/util/info.cpp
|
||||
src/util/locale_data.cpp
|
||||
src/util/make_std_unique.hpp
|
||||
src/util/numeric.hpp
|
||||
src/util/timezone.hpp
|
||||
${headers}
|
||||
)
|
||||
|
||||
@@ -117,7 +117,7 @@ if(BOOST_LOCALE_ENABLE_ICONV)
|
||||
target_link_libraries(boost_locale PRIVATE Iconv::Iconv)
|
||||
|
||||
target_sources(boost_locale PRIVATE
|
||||
src/boost/locale/util/iconv.hpp
|
||||
src/util/iconv.hpp
|
||||
)
|
||||
endif()
|
||||
|
||||
@@ -132,24 +132,24 @@ if(BOOST_LOCALE_ENABLE_ICU)
|
||||
target_link_libraries(boost_locale PRIVATE ICU::data ICU::i18n ICU::uc)
|
||||
|
||||
target_sources(boost_locale PRIVATE
|
||||
src/boost/locale/icu/all_generator.hpp
|
||||
src/boost/locale/icu/boundary.cpp
|
||||
src/boost/locale/icu/cdata.hpp
|
||||
src/boost/locale/icu/codecvt.cpp
|
||||
src/boost/locale/icu/codecvt.hpp
|
||||
src/boost/locale/icu/collator.cpp
|
||||
src/boost/locale/icu/conversion.cpp
|
||||
src/boost/locale/icu/date_time.cpp
|
||||
src/boost/locale/icu/formatter.cpp
|
||||
src/boost/locale/icu/formatter.hpp
|
||||
src/boost/locale/icu/formatters_cache.cpp
|
||||
src/boost/locale/icu/formatters_cache.hpp
|
||||
src/boost/locale/icu/icu_backend.cpp
|
||||
src/boost/locale/icu/icu_backend.hpp
|
||||
src/boost/locale/icu/icu_util.hpp
|
||||
src/boost/locale/icu/numeric.cpp
|
||||
src/boost/locale/icu/time_zone.hpp
|
||||
src/boost/locale/icu/uconv.hpp
|
||||
src/icu/all_generator.hpp
|
||||
src/icu/boundary.cpp
|
||||
src/icu/cdata.hpp
|
||||
src/icu/codecvt.cpp
|
||||
src/icu/codecvt.hpp
|
||||
src/icu/collator.cpp
|
||||
src/icu/conversion.cpp
|
||||
src/icu/date_time.cpp
|
||||
src/icu/formatter.cpp
|
||||
src/icu/formatter.hpp
|
||||
src/icu/formatters_cache.cpp
|
||||
src/icu/formatters_cache.hpp
|
||||
src/icu/icu_backend.cpp
|
||||
src/icu/icu_backend.hpp
|
||||
src/icu/icu_util.hpp
|
||||
src/icu/numeric.cpp
|
||||
src/icu/time_zone.hpp
|
||||
src/icu/uconv.hpp
|
||||
)
|
||||
|
||||
endif()
|
||||
@@ -157,13 +157,13 @@ endif()
|
||||
if(BOOST_LOCALE_ENABLE_STD)
|
||||
|
||||
target_sources(boost_locale PRIVATE
|
||||
src/boost/locale/std/all_generator.hpp
|
||||
src/boost/locale/std/codecvt.cpp
|
||||
src/boost/locale/std/collate.cpp
|
||||
src/boost/locale/std/converter.cpp
|
||||
src/boost/locale/std/numeric.cpp
|
||||
src/boost/locale/std/std_backend.cpp
|
||||
src/boost/locale/std/std_backend.hpp
|
||||
src/std/all_generator.hpp
|
||||
src/std/codecvt.cpp
|
||||
src/std/collate.cpp
|
||||
src/std/converter.cpp
|
||||
src/std/numeric.cpp
|
||||
src/std/std_backend.cpp
|
||||
src/std/std_backend.hpp
|
||||
)
|
||||
|
||||
else()
|
||||
@@ -175,13 +175,13 @@ endif()
|
||||
if(BOOST_LOCALE_ENABLE_WINAPI)
|
||||
|
||||
target_sources(boost_locale PRIVATE
|
||||
src/boost/locale/win32/all_generator.hpp
|
||||
src/boost/locale/win32/api.hpp
|
||||
src/boost/locale/win32/collate.cpp
|
||||
src/boost/locale/win32/converter.cpp
|
||||
src/boost/locale/win32/numeric.cpp
|
||||
src/boost/locale/win32/win_backend.cpp
|
||||
src/boost/locale/win32/win_backend.hpp
|
||||
src/win32/all_generator.hpp
|
||||
src/win32/api.hpp
|
||||
src/win32/collate.cpp
|
||||
src/win32/converter.cpp
|
||||
src/win32/numeric.cpp
|
||||
src/win32/win_backend.cpp
|
||||
src/win32/win_backend.hpp
|
||||
)
|
||||
|
||||
else()
|
||||
@@ -193,8 +193,8 @@ endif()
|
||||
if(BOOST_LOCALE_ENABLE_WINAPI OR (BOOST_LOCALE_ENABLE_STD AND WIN32))
|
||||
|
||||
target_sources(boost_locale PRIVATE
|
||||
src/boost/locale/win32/lcid.cpp
|
||||
src/boost/locale/win32/lcid.hpp
|
||||
src/win32/lcid.cpp
|
||||
src/win32/lcid.hpp
|
||||
)
|
||||
|
||||
endif()
|
||||
@@ -202,13 +202,13 @@ endif()
|
||||
if(BOOST_LOCALE_ENABLE_POSIX)
|
||||
|
||||
target_sources(boost_locale PRIVATE
|
||||
src/boost/locale/posix/all_generator.hpp
|
||||
src/boost/locale/posix/codecvt.cpp
|
||||
src/boost/locale/posix/collate.cpp
|
||||
src/boost/locale/posix/converter.cpp
|
||||
src/boost/locale/posix/numeric.cpp
|
||||
src/boost/locale/posix/posix_backend.cpp
|
||||
src/boost/locale/posix/posix_backend.hpp
|
||||
src/posix/all_generator.hpp
|
||||
src/posix/codecvt.cpp
|
||||
src/posix/collate.cpp
|
||||
src/posix/converter.cpp
|
||||
src/posix/numeric.cpp
|
||||
src/posix/posix_backend.cpp
|
||||
src/posix/posix_backend.hpp
|
||||
)
|
||||
|
||||
else()
|
||||
@@ -220,8 +220,8 @@ endif()
|
||||
if(BOOST_LOCALE_ENABLE_WINAPI OR BOOST_LOCALE_ENABLE_STD OR BOOST_LOCALE_ENABLE_POSIX)
|
||||
|
||||
target_sources(boost_locale PRIVATE
|
||||
src/boost/locale/util/gregorian.cpp
|
||||
src/boost/locale/util/gregorian.hpp
|
||||
src/util/gregorian.cpp
|
||||
src/util/gregorian.hpp
|
||||
)
|
||||
|
||||
endif()
|
||||
@@ -231,7 +231,7 @@ set(sources_src ${sources})
|
||||
list(FILTER sources_src INCLUDE REGEX "^src/")
|
||||
set(sources_inc ${sources})
|
||||
list(FILTER sources_inc EXCLUDE REGEX "^src/")
|
||||
source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}/src/boost/locale" PREFIX "sources" FILES ${sources_src})
|
||||
source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}/src" PREFIX "sources" FILES ${sources_src})
|
||||
source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}/include/boost/locale" PREFIX "headers" FILES ${sources_inc})
|
||||
source_group("headers" FILES "include/boost/locale.hpp")
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ constant boost_dependencies_private :
|
||||
;
|
||||
|
||||
project
|
||||
: source-location $(TOP)/src/boost/locale
|
||||
: source-location $(TOP)/src
|
||||
: common-requirements <library>$(boost_dependencies)
|
||||
: requirements <library>$(boost_dependencies_private)
|
||||
;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#ifndef BOOST_LOCALE_NO_WINAPI_BACKEND
|
||||
# include "../src/boost/locale/win32/lcid.hpp"
|
||||
# include "../src/win32/lcid.hpp"
|
||||
#else
|
||||
# include <boost/core/ignore_unused.hpp>
|
||||
#endif
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// https://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include "../src/boost/locale/shared/mo_lambda.hpp"
|
||||
#include "../src/shared/mo_lambda.hpp"
|
||||
#include "boostLocale/test/unit_test.hpp"
|
||||
#include <iostream>
|
||||
#include <limits>
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
#include <boost/locale/util.hpp>
|
||||
#ifdef BOOST_LOCALE_WITH_ICU
|
||||
# include "../src/boost/locale/icu/codecvt.hpp"
|
||||
# include "../src/icu/codecvt.hpp"
|
||||
#endif
|
||||
#include "../src/boost/locale/shared/iconv_codecvt.hpp"
|
||||
#include "../src/shared/iconv_codecvt.hpp"
|
||||
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
|
||||
@@ -813,8 +813,8 @@ bool isLittleEndian()
|
||||
return reinterpret_cast<const char*>(&endianMark)[0] == 1;
|
||||
}
|
||||
|
||||
#include "../src/boost/locale/util/encoding.hpp"
|
||||
#include "../src/boost/locale/util/win_codepages.hpp"
|
||||
#include "../src/util/encoding.hpp"
|
||||
#include "../src/util/win_codepages.hpp"
|
||||
|
||||
void test_utf_name()
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include <boost/locale.hpp>
|
||||
#include <boost/locale/conversion.hpp>
|
||||
#include "../src/boost/locale/win32/lcid.hpp"
|
||||
#include "../src/win32/lcid.hpp"
|
||||
#include "boostLocale/test/tools.hpp"
|
||||
#include "boostLocale/test/unit_test.hpp"
|
||||
#include <boost/assert.hpp>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// https://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include "../src/boost/locale/shared/ios_prop.hpp"
|
||||
#include "../src/shared/ios_prop.hpp"
|
||||
#include "boostLocale/test/unit_test.hpp"
|
||||
#include <locale>
|
||||
#include <sstream>
|
||||
|
||||
@@ -370,7 +370,7 @@ void test_locale_data()
|
||||
verify_against_icu();
|
||||
}
|
||||
|
||||
#include "../src/boost/locale/util/numeric.hpp"
|
||||
#include "../src/util/numeric.hpp"
|
||||
#include <limits>
|
||||
#include <locale>
|
||||
#include <sstream>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# endif
|
||||
# include <windows.h>
|
||||
#endif
|
||||
#include "../src/boost/locale/win32/lcid.hpp"
|
||||
#include "../src/win32/lcid.hpp"
|
||||
#include "boostLocale/test/tools.hpp"
|
||||
#include "boostLocale/test/unit_test.hpp"
|
||||
#include "formatting_common.hpp"
|
||||
|
||||
Reference in New Issue
Block a user