Skip to content

Commit b4a1494

Browse files
committed
Change project structure.
修改: .gitignore 新文件: include/cppp/cppp-platform.h.in 删除: include/libplatform.h.in 重命名: include/platform_predef/architectures.h -> src/architectures.h 重命名: include/platform_predef/compilers.h -> src/compilers.h 重命名: include/platform_predef/languagestandards.h -> src/languagestandards.h 重命名: include/platform_predef/platforms.h -> src/platforms.h
1 parent 65b2d5f commit b4a1494

File tree

7 files changed

+62
-76
lines changed

7 files changed

+62
-76
lines changed

.gitignore

Lines changed: 36 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,40 @@
1-
# Libplatform's gitignore
2-
3-
# Build output directory
1+
# CMake build files
42
build/
3+
CMakeFiles
4+
*.so
5+
*.so.*.*.*
6+
*.a
7+
*.dylib
8+
*.stackdump
9+
*.lib
10+
*.pdb
11+
*.dll
12+
*.exe
13+
cmake_install.cmake
14+
CMakeCache.txt
15+
CTestTestfile.cmake
16+
DartConfiguration.tcl
17+
Makefile
18+
uninstall.cmake
19+
CTestCostData.txt
20+
*.inst
21+
Testing
22+
*.log
23+
*.dSYM
524

6-
# Editor profile directory
7-
.vscode/
8-
9-
# Autoconf temps
10-
autom4te.cache/
11-
aclocal.m4
12-
configure
13-
14-
# Configure outputs
15-
config.log
16-
config.status
25+
# Patterns for all subdirectories: all kinds of automatic backup files.
26+
*.orig
27+
*.rej
28+
*~
29+
*.kate-swp
30+
*.swp
31+
.#*
32+
\#*#
33+
.vscode
1734

18-
# Build outputs
19-
include/libplatform.h
20-
Makefile
35+
# Autopull modules
36+
build-aux
2137

22-
# Dist directory
23-
libplatform-*
38+
# Dist directory and temps
39+
cppp-platform-v*
40+
__pycache__

include/cppp/cppp-platform.h.in

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* @file cppp/cppp-platform.h
3+
* @author ChenPi11
4+
* @copyright Copyright (C) 2023 The C++ Plus Project
5+
* @date 2023-08-07
6+
* @brief C++ Plus platform predefined detection.
7+
* @version @PROJECT_VERSION@
8+
* @see https://sourceforge.net/p/predef/wiki/Home/
9+
* @link https://github.com/cppp-project/cppp-platform
10+
*/
11+
12+
#ifndef _CPPP_PLATFORM_H
13+
#define _CPPP_PLATFORM_H
14+
/* Architectures detection. */
15+
@ARCHITECTURES@
16+
17+
/* Compilers detection. */
18+
@COMPILERS@
19+
20+
/* C/C++ standards detection. */
21+
@LANGUAGESTANDARDS@
22+
23+
/* Platforms detection. */
24+
@PLATFORMS@
25+
#endif

include/libplatform.h.in

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

include/platform_predef/architectures.h renamed to src/architectures.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/* ============================================================================================= */
2-
/* Libplatform architecture detection. */
3-
41
/* Alpha */
52
#define __arch_alpha__ 1
63
/* x86 */
@@ -165,7 +162,7 @@
165162
#endif
166163

167164
#ifndef __POINTER_WIDTH__
168-
/* pointer width 64/32/16... */
165+
/* Pointer width 64/32/16... */
169166
#define __POINTER_WIDTH__ (long)(sizeof(void*) * 8)
170167
#endif
171168
/* Fix amd64 and 8086 bug */

include/platform_predef/compilers.h renamed to src/compilers.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/* ============================================================================================= */
2-
/* Libplatform compilers detection. */
3-
41
/* ACC */
52
#define __has_acc_compiler__ 0
63
/* Altium MicroBlaze C */

include/platform_predef/languagestandards.h renamed to src/languagestandards.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/*=============================================================================================*/
2-
/* Libplatform C/C++ standards detection. */
3-
41
/* STD C94 */
52
#define __stdc_c94__ 199409L
63
/* STD C99 */

include/platform_predef/platforms.h renamed to src/platforms.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/* ============================================================================================= */
2-
/* Libplatform platforms detection. */
3-
41
/* No AIX */
52
#define __has_aix__ 0
63
/* No Android */

0 commit comments

Comments
 (0)