File tree Expand file tree Collapse file tree 4 files changed +6
-12
lines changed Expand file tree Collapse file tree 4 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -1367,7 +1367,7 @@ execute_process(COMMAND "${GIT_EXECUTABLE}" ${NBL_CONFIG_SETUP_CMD} submodule up
1367
1367
)
1368
1368
NBL_WRAPPER_COMMAND_EXCLUSIVE ("" ./3rdparty TRUE "${NBL_3RDPARTY_MODULES_TO_SKIP} " )
1369
1369
1370
- # boost's 3rdaprties , special case
1370
+ # boost's 3rdparties , special case
1371
1371
set (NBL_BOOST_LIBS_TO_INIT ${NBL_BOOST_LIBS} wave numeric_conversion ) # wave and all of its deps, numeric_conversion is nested in conversion submodule (for some reason boostdep tool doesn't output it properly)
1372
1372
foreach (NBL_TARGET ${NBL_BOOST_LIBS_TO_INIT} )
1373
1373
list (APPEND NBL_BOOST_SUBMODULES_TO_INIT ${NBL_TARGET} )
Original file line number Diff line number Diff line change @@ -615,7 +615,6 @@ if(NBL_EMBED_BUILTIN_RESOURCES)
615
615
)
616
616
617
617
add_subdirectory (builtin )
618
- NBL_ADD_BUILTIN_RESOURCES (nblBuiltinResourceData ) # internal, must be added with the macro to properly propagate scope
619
618
add_dependencies (Nabla nblBuiltinResourceData dxcBuiltinResourceData boostBuiltinResourceData )
620
619
621
620
if (NBL_STATIC_BUILD )
@@ -632,9 +631,7 @@ if(NBL_EMBED_BUILTIN_RESOURCES)
632
631
633
632
# always install Nabla builtins (some may be included in cpp regardless if embedded or not)
634
633
get_target_property (_BUILTIN_RESOURCES_BUNDLE_ARCHIVE_ABSOLUTE_PATH_ nblBuiltinResourceData BUILTIN_RESOURCES_BUNDLE_ARCHIVE_ABSOLUTE_PATH )
635
- foreach (X IN LISTS NBL_RESOURCES_TO_EMBED )
636
- list (APPEND NABLA_RESOURCES_TO_EMBED_PUBLIC "${NBL_ROOT_PATH} /include/${_BUILTIN_RESOURCES_BUNDLE_ARCHIVE_ABSOLUTE_PATH_} /${X} " )
637
- endforeach ()
634
+ get_target_property (NABLA_RESOURCES_TO_EMBED_PUBLIC nblBuiltinResourceData BUILTIN_RESOURCES )
638
635
639
636
target_sources (Nabla PRIVATE
640
637
${NABLA_RESOURCES_TO_EMBED_PUBLIC}
Original file line number Diff line number Diff line change @@ -290,8 +290,4 @@ LIST_BUILTIN_RESOURCE(NBL_RESOURCES_TO_EMBED "hlsl/workgroup/broadcast.hlsl")
290
290
LIST_BUILTIN_RESOURCE (NBL_RESOURCES_TO_EMBED "hlsl/workgroup/scratch_size.hlsl" )
291
291
LIST_BUILTIN_RESOURCE (NBL_RESOURCES_TO_EMBED "hlsl/workgroup/shared_scan.hlsl" )
292
292
293
-
294
- macro (NBL_ADD_BUILTIN_RESOURCES _TARGET_ ) # internal & Nabla only, must be added with the macro to properly propagate scope
295
- ADD_CUSTOM_BUILTIN_RESOURCES ("${_TARGET_} " NBL_RESOURCES_TO_EMBED "${NBL_ROOT_PATH} /include" "nbl/builtin" "nbl::builtin" "${NBL_ROOT_PATH_BINARY} /include" "${NBL_ROOT_PATH_BINARY} /src" "STATIC" "INTERNAL" )
296
- endmacro ()
297
-
293
+ ADD_CUSTOM_BUILTIN_RESOURCES (nblBuiltinResourceData NBL_RESOURCES_TO_EMBED "${NBL_ROOT_PATH} /include" "nbl/builtin" "nbl::builtin" "${NBL_ROOT_PATH_BINARY} /include" "${NBL_ROOT_PATH_BINARY} /src" "STATIC" "INTERNAL" )
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ macro(LIST_BUILTIN_RESOURCE _BUNDLE_NAME_ _LBR_PATH_)
15
15
endif ()
16
16
17
17
list (APPEND ${_BUNDLE_NAME_} "${_LBR_PATH_} " )
18
- set (${_BUNDLE_NAME_} ${${_BUNDLE_NAME_}} PARENT_SCOPE ) # override
18
+ set (${_BUNDLE_NAME_} ${${_BUNDLE_NAME_}} ) # override
19
19
20
20
list (APPEND _LBR_${_BUNDLE_NAME_}_ "${_LBR_PATH_}${_OPTIONAL_ALIASES_} " )
21
- set (_LBR_${_BUNDLE_NAME_}_ ${_LBR_${_BUNDLE_NAME_}_} PARENT_SCOPE ) # override
21
+ set (_LBR_${_BUNDLE_NAME_}_ ${_LBR_${_BUNDLE_NAME_}_} ) # override
22
22
23
23
unset (_OPTIONAL_ALIASES_ )
24
24
unset (_ALIAS_ARGS_ )
@@ -187,6 +187,7 @@ function(ADD_CUSTOM_BUILTIN_RESOURCES _TARGET_NAME_ _BUNDLE_NAME_ _BUNDLE_SEARCH
187
187
endif ()
188
188
189
189
set (NBL_BUILTIN_RESOURCES ${NBL_BUILTIN_RESOURCES} ) # turn builtin resources paths list into variable
190
+
190
191
set (NBL_BUILTIN_RESOURCES_HEADERS
191
192
"${NBL_BUILTIN_RESOURCES_HEADER} "
192
193
"${_OUTPUT_HEADER_DIRECTORY_} /CArchive.h"
You can’t perform that action at this time.
0 commit comments