From bfe3a7cc632ec4fedb8662e8fd602906a69d54bf Mon Sep 17 00:00:00 2001 From: Mike Lischke Date: Thu, 5 May 2016 11:45:49 +0200 Subject: [PATCH] Renamed XCode demo project and set install name for dylib. The default install name is /usr/libs/antlrcpp.dylib which makes running the demo from command line not working (location and install name of the dylib differ). Since the probability that the lib is placed in an app bundle is much higher than that the lib is being installed in the system, the default has been changed to just the dylib name. This can be changed to anything else if needed in a concrete project. --- .../project.pbxproj | 0 .../project.xcworkspace/contents.xcworkspacedata | 0 .../xcshareddata/xcschemes/antlr4-cpp-demo.xcscheme | 0 .../xcshareddata/xcschemes/antlrcpp Tests.xcscheme | 0 runtime/Cpp/runtime/antlrcpp.xcodeproj/project.pbxproj | 2 ++ 5 files changed, 2 insertions(+) rename runtime/Cpp/demo/Mac/{antlrcpp.xcodeproj => antlrcpp-demo.xcodeproj}/project.pbxproj (100%) rename runtime/Cpp/demo/Mac/{antlrcpp.xcodeproj => antlrcpp-demo.xcodeproj}/project.xcworkspace/contents.xcworkspacedata (100%) rename runtime/Cpp/demo/Mac/{antlrcpp.xcodeproj => antlrcpp-demo.xcodeproj}/xcshareddata/xcschemes/antlr4-cpp-demo.xcscheme (100%) rename runtime/Cpp/demo/Mac/{antlrcpp.xcodeproj => antlrcpp-demo.xcodeproj}/xcshareddata/xcschemes/antlrcpp Tests.xcscheme (100%) diff --git a/runtime/Cpp/demo/Mac/antlrcpp.xcodeproj/project.pbxproj b/runtime/Cpp/demo/Mac/antlrcpp-demo.xcodeproj/project.pbxproj similarity index 100% rename from runtime/Cpp/demo/Mac/antlrcpp.xcodeproj/project.pbxproj rename to runtime/Cpp/demo/Mac/antlrcpp-demo.xcodeproj/project.pbxproj diff --git a/runtime/Cpp/demo/Mac/antlrcpp.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/runtime/Cpp/demo/Mac/antlrcpp-demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from runtime/Cpp/demo/Mac/antlrcpp.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to runtime/Cpp/demo/Mac/antlrcpp-demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/runtime/Cpp/demo/Mac/antlrcpp.xcodeproj/xcshareddata/xcschemes/antlr4-cpp-demo.xcscheme b/runtime/Cpp/demo/Mac/antlrcpp-demo.xcodeproj/xcshareddata/xcschemes/antlr4-cpp-demo.xcscheme similarity index 100% rename from runtime/Cpp/demo/Mac/antlrcpp.xcodeproj/xcshareddata/xcschemes/antlr4-cpp-demo.xcscheme rename to runtime/Cpp/demo/Mac/antlrcpp-demo.xcodeproj/xcshareddata/xcschemes/antlr4-cpp-demo.xcscheme diff --git a/runtime/Cpp/demo/Mac/antlrcpp.xcodeproj/xcshareddata/xcschemes/antlrcpp Tests.xcscheme b/runtime/Cpp/demo/Mac/antlrcpp-demo.xcodeproj/xcshareddata/xcschemes/antlrcpp Tests.xcscheme similarity index 100% rename from runtime/Cpp/demo/Mac/antlrcpp.xcodeproj/xcshareddata/xcschemes/antlrcpp Tests.xcscheme rename to runtime/Cpp/demo/Mac/antlrcpp-demo.xcodeproj/xcshareddata/xcschemes/antlrcpp Tests.xcscheme diff --git a/runtime/Cpp/runtime/antlrcpp.xcodeproj/project.pbxproj b/runtime/Cpp/runtime/antlrcpp.xcodeproj/project.pbxproj index 372cc58b7..a83713c51 100644 --- a/runtime/Cpp/runtime/antlrcpp.xcodeproj/project.pbxproj +++ b/runtime/Cpp/runtime/antlrcpp.xcodeproj/project.pbxproj @@ -2026,6 +2026,7 @@ buildSettings = { COMBINE_HIDPI_IMAGES = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES; + LD_DYLIB_INSTALL_NAME = "$(EXECUTABLE_PATH)"; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Debug; @@ -2035,6 +2036,7 @@ buildSettings = { COMBINE_HIDPI_IMAGES = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES; + LD_DYLIB_INSTALL_NAME = "$(EXECUTABLE_PATH)"; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Release;