Skip to content

Commit 1f1f0c8

Browse files
committed
chore: add docs
Signed-off-by: Gordon Smith <[email protected]>
1 parent e0bffcc commit 1f1f0c8

File tree

12 files changed

+562
-1027
lines changed

12 files changed

+562
-1027
lines changed

.vitepress/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { defineConfig } from 'vitepress'
33
// https://vitepress.dev/reference/site-config
44
export default defineConfig({
55
title: "Component Model C++",
6-
description: " C++ ABI implementation of the WebAssembly Component Model",
7-
base: '/component-model-cpp/',
8-
srcExclude: ["build/**", "node_modules/**", "ref/**", "vcpkg/**", "vcpkg_overlays/**"],
6+
description: "C++ ABI implementation of the WebAssembly Component Model",
7+
base: '/component-model-cpp',
8+
srcExclude: ["./build/**", "./grammar/**", "./node_modules/**", "./ref/**", "./vcpkg/**", "./vcpkg_overlays/**"],
99

1010
themeConfig: {
1111
editLink: {

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if (WIN32)
1414
endif()
1515
option(BUILD_SAMPLES "Build samples" ${_BUILD_SAMPLES_DEFAULT})
1616
option(BUILD_TESTING "Build tests" ON)
17-
option(BUILD_GRAMMAR "Generate code from ANTLR grammar" ON)
17+
option(WIT_CODEGEN "Generate code from ANTLR grammar" ON)
1818

1919
add_library(cmcpp INTERFACE)
2020

@@ -47,7 +47,7 @@ if (BUILD_SAMPLES AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/samples/CMakeLists.txt
4747
endif()
4848

4949
# Grammar must be added before tools/test so the generate-grammar target is available
50-
if (BUILD_GRAMMAR AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/grammar/CMakeLists.txt")
50+
if (WIT_CODEGEN AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/grammar/CMakeLists.txt")
5151
add_subdirectory(grammar)
5252
# Add tools that use the grammar
5353
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/tools/wit-codegen/CMakeLists.txt")
@@ -102,7 +102,7 @@ install(FILES
102102
)
103103

104104
# Install wit-codegen tool if it was built
105-
if(BUILD_GRAMMAR AND TARGET wit-codegen)
105+
if(WIT_CODEGEN AND TARGET wit-codegen)
106106
install(TARGETS wit-codegen
107107
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
108108
COMPONENT tools

0 commit comments

Comments
 (0)