Skip to content

Commit 8ae5fd8

Browse files
committed
Copy header files to LDK project directory
1 parent 543cd12 commit 8ae5fd8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ ci/LDKSwift/.swiftpm
1717
/xcode/DirectBindingsApp/DirectBindingsApp.xcodeproj/xcuserdata/
1818

1919
## User settings
20+
xcode/LDK/*.h
21+
xcode/LDK/*.c
2022
xcuserdata/

xcode/LDK/build-libldk.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ set -e # stop execution upon the first error
1515
LDK_DIRECTORY=../../ldk-c-bindings # directory to compile the C bindings in
1616
C_BINDINGS_SOURCE_DIRECTORY="${LDK_DIRECTORY}/lightning-c-bindings"
1717

18+
cp "${C_BINDINGS_SOURCE_DIRECTORY}/include/"*.h $PROJECT_DIR
19+
cp "${LDK_DIRECTORY}/ldk-net/ldk_net."{c,h} $PROJECT_DIR
20+
1821
if [[ ${ACTION:-build} = "build" || $ACTION = "install" ]]; then
1922
TARGET_NAME="libldk"
2023

0 commit comments

Comments
 (0)