CRT object files are now added using bundle
This commit is contained in:
@@ -109,6 +109,7 @@ bundle_add_dependencies(photon local-root crt)
|
||||
|
||||
add_custom_command(TARGET photon POST_BUILD
|
||||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/scripts/add-framework-crt.sh
|
||||
${BUNDLE_PROGRAM}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/photon.framework
|
||||
${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
framework_path=$1
|
||||
binary_dir=$2
|
||||
bundle_prog=$1
|
||||
framework_path=$2
|
||||
binary_dir=$3
|
||||
|
||||
crt_files=$(find $binary_dir -name "crt*.o")
|
||||
|
||||
for crt_file in $crt_files; do
|
||||
out="$framework_path/bin/$(basename $crt_file .o).o"
|
||||
cp -f $crt_file $out
|
||||
done
|
||||
$bundle_prog framework add-binaries -f $framework_path $crt_files
|
||||
|
||||
Reference in New Issue
Block a user