Skip to content

Commit 7529b6b

Browse files
committed
Remove langmap files and build-aux requirement.
1 parent 9f7bfcc commit 7529b6b

File tree

4 files changed

+11
-234
lines changed

4 files changed

+11
-234
lines changed

CMakeLists.txt

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2023 The C++ Plus Project.
1+
# Copyright (C) 2024 The C++ Plus Project.
22
# This file is part of the cppp-platform library.
33
#
44
# The cppp-platform library is free software; you can redistribute it
@@ -14,38 +14,17 @@
1414
# cppp-platform library; see the file COPYING.
1515
# If not, see <http://unlicense.org/>.
1616

17-
cmake_minimum_required(VERSION 3.12)
17+
cmake_minimum_required(VERSION 3.10)
1818
project(cppp-platform VERSION 1.3.0)
1919

20-
# Set C++ standard
21-
set(CMAKE_CXX_STANDARD 11)
22-
23-
# ----------------------------------------------------------------------------------
24-
# Import build-aux subdirectory.
25-
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/build-aux")
26-
set(BUILD_AUX "${CMAKE_CURRENT_SOURCE_DIR}/build-aux")
27-
add_subdirectory("${BUILD_AUX}")
28-
message(STATUS "Using '${BUILD_AUX}' for C++ Plus build-aux directory.")
29-
elseif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../build-aux")
30-
set(BUILD_AUX "${CMAKE_CURRENT_SOURCE_DIR}/../build-aux")
31-
else()
32-
message(FATAL_ERROR "CMake build-aux directory is not exists, try to execute 'setup.cmd' or './setup.sh' to get it.")
33-
endif()
34-
get_filename_component(BUILD_AUX "${BUILD_AUX}" ABSOLUTE)
35-
include("${BUILD_AUX}/cmake/cppp.cmake")
36-
# ----------------------------------------------------------------------------------
37-
3820
# Read source files
39-
file(READ "${srcdir}/src/architectures.h" ARCHITECTURES)
40-
file(READ "${srcdir}/src/compilers.h" COMPILERS)
41-
file(READ "${srcdir}/src/languagestandards.h" LANGUAGESTANDARDS)
42-
file(READ "${srcdir}/src/platforms.h" PLATFORMS)
21+
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/src/architectures.h" ARCHITECTURES)
22+
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/src/compilers.h" COMPILERS)
23+
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/src/languagestandards.h" LANGUAGESTANDARDS)
24+
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/src/platforms.h" PLATFORMS)
4325

4426
# Genetate header
45-
configure_file("${srcdir}/include/cppp/cppp-platform.h.in" "${output_includedir}/cppp/cppp-platform.h")
46-
47-
# Generate header file for install
48-
cppp_nls_autotranslate("${output_includedir}/cppp/cppp-platform.h" "${srcdir}/lang")
27+
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/include/cppp/cppp-platform.h.in" "${output_includedir}/cppp/cppp-platform.h")
4928

5029
# Install
5130
# Includes

include/cppp/cppp-platform.h.in

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,15 @@
11
/**
22
* @file cppp/cppp-platform.h
33
* @author ChenPi11
4-
* @copyright Copyright (C) 2023 The C++ Plus Project
5-
* @date 2023-08-07
4+
* @copyright Copyright (C) 2024 The C++ Plus Project
65
* @brief C++ Plus platform predefined detection.
76
* @version @PROJECT_VERSION@
8-
* @see https://sourceforge.net/p/predef/wiki/Home/
7+
* @see https://github.com/cpredef/predef
98
* @link https://github.com/cppp-project/cppp-platform
109
*/
11-
/* Copyright (C) 2023 The C++ Plus Project
12-
This file is part of the cppp-platform library.
1310

14-
The cppp-platform library is free software; you can redistribute it
15-
and/or modify it under the terms of the The Unlicense as published
16-
by the unlicense.org
17-
18-
The cppp-platform library is distributed in the hope that it will be
19-
useful, but WITHOUT ANY WARRANTY; without even the implied warranty
20-
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the The
21-
Unlicense for more details.
22-
23-
You should have received a copy of the The Unlicense along with the
24-
cppp-platform library; see the file COPYING.
25-
If not, see <http://unlicense.org/>. */
26-
27-
#ifndef _CPPP_PLATFORM_H
28-
#define _CPPP_PLATFORM_H
11+
#ifndef _CPPP_PLATFORM_H_INCLUDED
12+
#define _CPPP_PLATFORM_H_INCLUDED 1
2913
/* Architectures detection. */
3014
@ARCHITECTURES@
3115

lang/en_US.langmap

Lines changed: 0 additions & 96 deletions
This file was deleted.

lang/zh_CN.langmap

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)