Skip to content

Commit 77faaf2

Browse files
committed
Merge remote-tracking branch 'origin/master' into drop-premake
2 parents bc17904 + 9f1ff45 commit 77faaf2

File tree

2 files changed

+20
-22
lines changed

2 files changed

+20
-22
lines changed

CMakeLists.txt

+14-9
Original file line numberDiff line numberDiff line change
@@ -553,15 +553,6 @@ if(SLANG_ENABLE_GFX)
553553
)
554554
endif()
555555

556-
#
557-
# Installing any documentation
558-
#
559-
560-
file(GLOB_RECURSE docs CONFIGURE_DEPENDS docs/*.md)
561-
if(docs)
562-
install(FILES ${docs} DESTINATION ${CMAKE_INSTALL_DOCDIR})
563-
endif()
564-
565556
#
566557
# The test executables and runtime-loaded modules
567558
#
@@ -798,4 +789,18 @@ endif()
798789
#
799790
# Packaging
800791
#
792+
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
793+
set(CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE ON)
794+
install(FILES
795+
"${slang_SOURCE_DIR}/README.md"
796+
"${slang_SOURCE_DIR}/LICENSE"
797+
DESTINATION .
798+
COMPONENT metadata
799+
EXCLUDE_FROM_ALL
800+
)
801+
install(DIRECTORY
802+
"${slang_SOURCE_DIR}/docs/"
803+
DESTINATION share/doc/slang
804+
)
805+
801806
include(CPack)

CMakePresets.json

+6-13
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,9 @@
3434
"description": "Visual Studio 2022 project",
3535
"generator": "Visual Studio 17 2022"
3636
},
37-
{
38-
"name": "single-component",
39-
"inherits": "default",
40-
"description": "configure to package a single component",
41-
"cacheVariables": {
42-
"CPACK_ARCHIVE_COMPONENT_INSTALL": "ON"
43-
}
44-
},
4537
{
4638
"name": "slang-llvm",
47-
"inherits": "single-component",
39+
"inherits": "default",
4840
"description": "Build slang-llvm from the system LLVM",
4941
"cacheVariables": {
5042
"SLANG_SLANG_LLVM_FLAVOR": "USE_SYSTEM_LLVM"
@@ -65,7 +57,7 @@
6557
{
6658
"name": "generators",
6759
"inherits": "release",
68-
"configurePreset": "single-component",
60+
"configurePreset": "default",
6961
"targets": [
7062
"all-generators"
7163
]
@@ -88,7 +80,8 @@
8880
"ZIP"
8981
],
9082
"variables": {
91-
"CPACK_PACKAGE_FILE_NAME": "slang"
83+
"CPACK_PACKAGE_FILE_NAME": "slang",
84+
"CPACK_COMPONENTS_ALL": "Unspecified;metadata"
9285
}
9386
},
9487
{
@@ -110,7 +103,7 @@
110103
{
111104
"name": "generators",
112105
"inherits": "release",
113-
"configurePreset": "single-component",
106+
"configurePreset": "default",
114107
"variables": {
115108
"CPACK_COMPONENTS_ALL": "generators"
116109
}
@@ -164,7 +157,7 @@
164157
"steps": [
165158
{
166159
"type": "configure",
167-
"name": "single-component"
160+
"name": "default"
168161
},
169162
{
170163
"type": "build",

0 commit comments

Comments
 (0)