diff options
author | Julian Eisel <julian@blender.org> | 2021-07-21 21:17:34 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-07-21 21:41:29 +0300 |
commit | 64bb49fa4e3c8bd7e02fd6e5252e40f089d787de (patch) | |
tree | 67c1855bd624ae605ec08ba1295ed2a3b4c2d487 /source/blender/editors/asset/CMakeLists.txt | |
parent | 178086d5810a0de9e1d95c7fbd6c443cd53af40d (diff) |
Cleanup: Move reorganize asset files
I'm trying to move away from general files with lots of things in them,
and instead have many small & focused files. I find that easier to
work with since everything has clear responsibilities, even if there is
some minor overhead in managing all these files.
I also try to differentiate more clearly between public and internal
files. So source files and internal headers are in a `intern/`
sub-directory, public functions are in a number of headers one level
higher.
For convenience and to make this compatible with our existing general
headers in `editors/include`, I made the `ED_asset.h` there include all
these public headers.
This is of course a bit of an experiment, let's see how it works in
practice.
Also corrected the name of `ED_asset_can_make_single_from_context()`.
Diffstat (limited to 'source/blender/editors/asset/CMakeLists.txt')
-rw-r--r-- | source/blender/editors/asset/CMakeLists.txt | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/source/blender/editors/asset/CMakeLists.txt b/source/blender/editors/asset/CMakeLists.txt index 64024eea986..d56edd43d7d 100644 --- a/source/blender/editors/asset/CMakeLists.txt +++ b/source/blender/editors/asset/CMakeLists.txt @@ -16,6 +16,7 @@ # ***** END GPL LICENSE BLOCK ***** set(INC + . ../include ../../blenkernel ../../blenlib @@ -30,14 +31,20 @@ set(INC_SYS ) set(SRC - asset_edit.cc - asset_list.cc - asset_ops.cc - asset_temp_id_consumer.cc intern/asset_handle.cc intern/asset_library_reference.cc intern/asset_library_reference_enum.cc + intern/asset_list.cc + intern/asset_mark_clear.cc + intern/asset_ops.cc + intern/asset_temp_id_consumer.cc + ED_asset_handle.h + ED_asset_library.h + ED_asset_list.h + ED_asset_list.hh + ED_asset_mark_clear.h + ED_asset_temp_id_consumer.h intern/asset_library_reference.hh ) |