-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbundles.cmake
28 lines (25 loc) · 968 Bytes
/
bundles.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# WARN: This file is autogenerated by scripts/asset_bundler.py, DO NOT MODIFY.
function(PackAssets bundle byproducts)
set(ASSETS_DIR ${PROJECT_SOURCE_DIR}/assets)
configure_file("assets/${bundle}.xml" "assets/_${bundle}.xml")
file(GLOB_RECURSE _assets ${ASSETS_DIR}/${bundle}/*.tim ${ASSETS_DIR}/${bundle}/*.smd)
list(LENGTH _assets asset_count)
if (NOT (asset_count EQUAL 0))
add_custom_command(
COMMAND ${LZPACK} -y "assets/_${bundle}.xml"
OUTPUT ${bundle}.lzp
BYPRODUCTS ${byproducts}
DEPENDS ${_assets}
COMMENT "Building ${bundle} LZP archive"
)
endif()
message("Globbed ${asset_count} ${bundle} asset(s):")
foreach (_asset ${_assets})
message("- ${_asset}")
endforeach()
endfunction()
set(ASSET_BUNDLE_ARCHIVES static.lzp gui.lzp)
macro(ConstructAssetBundles)
PackAssets(static static.qlp)
PackAssets(gui gui.qlp)
endmacro()