|
|
@@ -4,6 +4,7 @@ basedir="../.."
|
|
|
file=Build/cmake/FileList.cmake
|
|
|
src='set(lib_SRC_FILES'
|
|
|
hdr='set(lib_HDR_FILES'
|
|
|
+masterpubhdr='set(MASTER_lib_PUB_HDR_FILES'
|
|
|
pubhdr='set(lib_PUB_HDR_FILES'
|
|
|
srcdir='${PROJECT_SOURCE_DIR}'
|
|
|
srcpath=Source
|
|
|
@@ -15,11 +16,13 @@ printfiles() {
|
|
|
echo ${hdr/lib/$1} >>$file
|
|
|
find $srcpath/$1 -maxdepth 1 -iname "*.h" -exec echo ' '$srcdir/{} \; 2>/dev/null | sort -f >>$file
|
|
|
echo -e ')\n' >>$file
|
|
|
- # Print public headers
|
|
|
+ # Print master header for library
|
|
|
+ echo ${masterpubhdr/lib/$1} >>$file
|
|
|
+ echo ' '$srcdir/Include/Rocket/$1.h >>$file
|
|
|
+ echo -e ')\n' >>$file
|
|
|
+ # Print public headers sub directory
|
|
|
echo ${pubhdr/lib/$1} >>$file
|
|
|
find $hdrpath/$1 -maxdepth 1 -iname "*.h" -exec echo ' '$srcdir/{} \; 2>/dev/null | sort -f >>$file
|
|
|
- # Print main public header
|
|
|
- echo ' '$srcdir/Include/Rocket/$1.h >>$file
|
|
|
echo -e ')\n' >>$file
|
|
|
# Print source files
|
|
|
echo ${src/lib/$1} >>$file
|