File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -369,10 +369,12 @@ source_group("Resources to embed" FILES ${NABLA_RESOURCES_TO_EMBED_PUBLIC})
369
369
370
370
set (NABLA_HEADERS "${NBL_ROOT_PATH} /include/nabla.h" ${NABLA_HEADERS_PUBLIC} ${NABLA_HEADERS_PIRV1} ${NABLA_HEADERS_PRIV2} )
371
371
372
+ get_target_property (_BUILTIN_RESOURCES_HEADER_DIRECTORY_ nblBuiltinResourceData BUILTIN_RESOURCES_HEADER_DIRECTORY )
373
+
372
374
set (NBL_LIBRARY_CREATION_SOURCES
373
375
${NABLA_SRCS_COMMON}
374
376
${NABLA_HEADERS}
375
- ${_NBL_BUILTIN_RESOURCES_ARCHIVE_APK_SOURCES_ }
377
+ ${_BUILTIN_RESOURCES_HEADER_DIRECTORY_ }
376
378
$< TARGET_OBJECTS:aesGladman>
377
379
$< TARGET_OBJECTS:bzip2>
378
380
$< TARGET_OBJECTS:lz4>
@@ -421,15 +423,15 @@ if(NOT NBL_STATIC_BUILD)
421
423
endif ()
422
424
423
425
if (NBL_EMBED_BUILTIN_RESOURCES )
424
- add_dependencies (Nabla ${_NBL_BUILTIN_RESOURCES_LIBRARIES_} )
426
+ add_dependencies (Nabla nblBuiltinResourceData )
425
427
426
428
if (NBL_STATIC_BUILD )
427
429
target_link_libraries (Nabla INTERFACE
428
- ${_NBL_BUILTIN_RESOURCES_LIBRARIES_}
430
+ nblBuiltinResourceData
429
431
)
430
432
else ()
431
433
target_link_libraries (Nabla PRIVATE
432
- ${_NBL_BUILTIN_RESOURCES_LIBRARIES_}
434
+ nblBuiltinResourceData
433
435
)
434
436
endif ()
435
437
endif ()
Original file line number Diff line number Diff line change 6
6
7
7
namespace @_NAMESPACE_ @
8
8
{
9
+ constexpr std ::string_view path = "@_NAMESPACE_@/@_PATH_PREFIX_@"
9
10
constexpr std ::string_view pathPrefix = "@_PATH_PREFIX_@" ;
10
11
constexpr bool hasPathPrefix (std ::string_view str ) { return str .find (pathPrefix ) == 0ull ; }
11
12
@@ -14,8 +15,8 @@ namespace @_NAMESPACE_@
14
15
class CArchive final : public nbl ::system ::CFileArchive
15
16
{
16
17
public :
17
- inline CArchive (nbl ::system ::path _path , nbl :: system :: logger_opt_smart_ptr && logger )
18
- : nbl ::system ::CFileArchive (std ::move (_path ),std ::move (logger ), getItemList ()) {}
18
+ inline CArchive (nbl ::system ::logger_opt_smart_ptr && logger )
19
+ : nbl ::system ::CFileArchive (std ::move (nbl :: system :: path ( path . data ()) ),std ::move (logger ), getItemList ()) {}
19
20
20
21
protected :
21
22
file_buffer_t getFileBuffer (const nbl ::system ::IFileArchive ::SListEntry * item ) override
Original file line number Diff line number Diff line change @@ -100,7 +100,10 @@ function(ADD_CUSTOM_BUILTIN_RESOURCES _TARGET_NAME_ _BUNDLE_NAME_ _BUNDLE_SEARCH
100
100
"${NBL_BUILTIN_RESOURCE_DATA_SOURCE} "
101
101
)
102
102
103
- target_include_directories (${_TARGET_NAME_} PUBLIC "${NBL_ROOT_PATH} /include" )
103
+ target_include_directories (${_TARGET_NAME_} PUBLIC
104
+ "${NBL_ROOT_PATH} /include"
105
+ "${_OUTPUT_HEADER_DIRECTORY_} "
106
+ )
104
107
set_target_properties (${_TARGET_NAME_} PROPERTIES CXX_STANDARD 20 )
105
108
106
109
if (NBL_DYNAMIC_MSVC_RUNTIME )
@@ -115,12 +118,6 @@ function(ADD_CUSTOM_BUILTIN_RESOURCES _TARGET_NAME_ _BUNDLE_NAME_ _BUNDLE_SEARCH
115
118
"${_OUTPUT_HEADER_DIRECTORY_} /CArchive.h"
116
119
)
117
120
118
- list (APPEND _NBL_BUILTIN_RESOURCES_ARCHIVE_APK_SOURCES_ "${_OUTPUT_HEADER_DIRECTORY_} /CArchive.h" )
119
- set (_NBL_BUILTIN_RESOURCES_ARCHIVE_APK_SOURCES_ ${_NBL_BUILTIN_RESOURCES_ARCHIVE_APK_SOURCES_} PARENT_SCOPE )
120
-
121
- list (APPEND _NBL_BUILTIN_RESOURCES_LIBRARIES_ ${_TARGET_NAME_} )
122
- set (_NBL_BUILTIN_RESOURCES_LIBRARIES_ ${_NBL_BUILTIN_RESOURCES_LIBRARIES_} PARENT_SCOPE ) # override
123
-
124
121
macro (_ADD_PROPERTY_ _BR_PROPERTY_ _BR_PROXY_VAR_ )
125
122
get_property (_BR_PROPERTY_DEFINED_
126
123
TARGET ${_TARGET_NAME_}
You can’t perform that action at this time.
0 commit comments