how to add xcode-setting in build.gn

28 views
Skip to first unread message

杨鹏伟

unread,
Jun 26, 2023, 4:03:54 AM6/26/23
to gn-...@chromium.org
hello
       I have a project with GN. Now i want add xcode setting (Runpath search paths)  to build.gn.

杨鹏伟

unread,
Jun 26, 2023, 4:11:30 AM6/26/23
to gn-...@chromium.org
hello
       I have a project with GN. Now i want add xcode setting (Runpath search paths)  to build.gn

截屏2023-06-26 16.06.36.png

 I try add these in build.gn
       ldflags = [
        "-rpath",
        "@executable_path/../../..",
      ]
but,it does not work,when i use the path "@executable_path/../../.." to create a bundle。
here is oc code:

 NSBundle* bundle = [[NSBundle alloc] initWithPath: @"/Users/yangpengwei/Library/Developer/Xcode/DerivedData/test-brmshsynpuvfubagsxakpugtlbrk/Build/Products/testFrameWork.framework"];

Reply all
Reply to author
Forward
0 new messages