Skip to content

Commit 627454e

Browse files
committed
Corrected module definition for loaders and metacall distributable from threading model refactor.
1 parent 1f88bf4 commit 627454e

File tree

3 files changed

+43
-23
lines changed

3 files changed

+43
-23
lines changed

source/CMakeLists.txt

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -110,27 +110,6 @@ add_subdirectory(configuration)
110110
add_subdirectory(loader)
111111
add_subdirectory(metacall)
112112

113-
# Define loader modules (for loaders and distributable)
114-
set(LOADER_MODULE_NAMES
115-
version
116-
preprocessor
117-
environment
118-
format
119-
log
120-
memory
121-
portability
122-
threading
123-
adt
124-
filesystem
125-
reflect
126-
dynlink
127-
serial
128-
configuration
129-
loader
130-
detour
131-
metacall
132-
)
133-
134113
# Tests
135114
set(IDE_FOLDER "Tests")
136115
add_subdirectory(tests)

source/distributable/CMakeLists.txt

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,29 @@ include(Distributable)
4444
# Create unity build library
4545
set(metacall_unity_build "${CMAKE_CURRENT_BINARY_DIR}/${target_root}_unity_build.c")
4646

47+
# Define metacall modules
48+
set(METACALL_MODULE_NAMES
49+
version
50+
preprocessor
51+
environment
52+
format
53+
log
54+
memory
55+
portability
56+
threading
57+
adt
58+
filesystem
59+
reflect
60+
dynlink
61+
serial
62+
configuration
63+
loader
64+
detour
65+
metacall
66+
)
67+
4768
distributable_export_generate(${metacall_unity_build}
48-
${LOADER_MODULE_NAMES}
69+
${METACALL_MODULE_NAMES}
4970
)
5071

5172
# Build library
@@ -55,7 +76,7 @@ add_library(${target}
5576

5677
# Add target dependencies
5778
add_dependencies(${target}
58-
${LOADER_MODULE_NAMES}
79+
${METACALL_MODULE_NAMES}
5980
)
6081

6182
# Create namespaced alias

source/loaders/CMakeLists.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@ if(NOT OPTION_BUILD_LOADERS)
33
return()
44
endif()
55

6+
# Define loader modules
7+
set(LOADER_MODULE_NAMES
8+
version
9+
preprocessor
10+
environment
11+
format
12+
log
13+
memory
14+
portability
15+
threading
16+
adt
17+
filesystem
18+
reflect
19+
dynlink
20+
serial
21+
configuration
22+
loader
23+
detour
24+
)
25+
626
# Plugins options
727
option(OPTION_BUILD_LOADERS_C "Build C Foreign Function Interface library loader plugin." OFF)
828
option(OPTION_BUILD_LOADERS_COB "Build GNU/COBOL 2.2 loader plugin." OFF)

0 commit comments

Comments
 (0)