https://docs.microsoft.com/en-us/cpp/c-runtime-library/crt-library-features
https://libcxx.llvm.org/docs/UsingLibcxx.html
See _LIBCPP_NO_VCRUNTIME.
| // ============================================================================ | |
| // component.hpp | |
| // ============================================================================ | |
| #pragma once | |
| #include <typeindex> | |
| #include <cstddef> | |
| class component_manager { | |
| template <typename T> | |
| friend class component; |
| file(MAKE_DIRECTORY | |
| ${CMAKE_CURRENT_BINARY_DIR}/data | |
| ${CMAKE_CURRENT_BINARY_DIR}/temp) | |
| add_executable(icupkg src/source/tools/icupkg/icupkg.cpp) | |
| target_compile_options(icupkg PRIVATE ${compile_options}) | |
| target_compile_definitions(icupkg PRIVATE ${compile_definitions}) | |
| target_link_libraries(icupkg PRIVATE dt_stub uc in io tu) | |
| add_custom_target(data ALL DEPENDS icupkg COMMAND $<TARGET_FILE:icupkg> |
| cmake_minimum_required(VERSION 3.19 FATAL_ERROR) | |
| project(icu VERSION 68.1 LANGUAGES C CXX) | |
| # Library: icudt | |
| file(GLOB dt_sources src/source/stubdata/*.cpp) | |
| add_library(dt SHARED ${headers} ${dt_sources}) | |
| set_target_properties(dt PROPERTIES OUTPUT_NAME "icudt" INSTALL_RPATH "$ORIGIN") | |
| # Library: icuuc | |
| file(GLOB uc_sources src/source/common/*.cpp) |
| cmake_minimum_required(VERSION 3.19 FATAL_ERROR) | |
| project(icu VERSION 68.1 LANGUAGES C CXX) | |
| #set(ICU_VER "${PROJECT_VERSION_MAJOR}-${PROJECT_VERSION_MINOR}") | |
| #set(ICU_URL "https://github.com/unicode-org/icu/archive/release-${ICU_VER}.tar.gz") | |
| #set(ICU_SHA "5b3cfb519c20511c1c0429b093ec16960f6a6a0d7968a9065fda393f9eba48fc") | |
| #download(${ICU_URL} ${ICU_SHA} src) | |
| set(ICU_DIR "release-${PROJECT_VERSION_MAJOR}-${PROJECT_VERSION_MINOR}") | |
| set(ICU_TAR "icu4c-${PROJECT_VERSION_MAJOR}_${PROJECT_VERSION_MINOR}-src.tgz") |
| #include <windows.h> | |
| #include <filesystem> | |
| #include <iostream> | |
| #include <sstream> | |
| #include <string> | |
| int main(int argc, char* argv[]) { | |
| // Report command and parameter lengths. | |
| if (argc > 1) { | |
| std::cout |
| // https://aka.ms/terminal | |
| { | |
| // https://aka.ms/terminal-global-settings | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", | |
| "copyOnSelect": true, | |
| "copyFormatting": true, | |
| "showTabsInTitlebar": false, | |
| "showTerminalTitleInTitlebar": true, |
| The Iliad (Homer) | |
| The Odyssey (Homer) | |
| The Republic (Plato) | |
| Metamorphoses (Ovid) | |
| Apocolocyntosis (Seneca) | |
| Dubliners (James Joyce) | |
| Exiles (James Joyce) | |
| Ulysses (James Joyce) | |
| Leviathan (Thomas Hobbes) | |
| Meditations (Marcus Aurelius) |
| * text=lf | |
| *.cmd text eol=crlf | |
| *.rc text eol=crlf |
| root = true | |
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| max_line_length = 120 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true | |
| indent_style = space | |
| indent_size = 2 |