diff options
author | David Cole <david.cole@kitware.com> | 2008-09-02 15:07:04 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2008-09-02 15:07:04 (GMT) |
commit | a54e97cf946e82de6b73c26c64b7fe3efdf0be43 (patch) | |
tree | 83e2ced27b238b65b902ac0e2c5e9286c48d70dc /Tests/BundleTest/BundleLib.cxx | |
parent | 698b8044a627293dd6a453c2fa10284000b2f5b1 (diff) | |
download | CMake-a54e97cf946e82de6b73c26c64b7fe3efdf0be43.zip CMake-a54e97cf946e82de6b73c26c64b7fe3efdf0be43.tar.gz CMake-a54e97cf946e82de6b73c26c64b7fe3efdf0be43.tar.bz2 |
ENH: Add indirect dependency to Carbon and call a Carbon function from executable. This will allow detecting broken dependency chaining for '-framework blah' style lib dependencies.
Diffstat (limited to 'Tests/BundleTest/BundleLib.cxx')
-rw-r--r-- | Tests/BundleTest/BundleLib.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/BundleTest/BundleLib.cxx b/Tests/BundleTest/BundleLib.cxx index 4f353fb..bab745e 100644 --- a/Tests/BundleTest/BundleLib.cxx +++ b/Tests/BundleTest/BundleLib.cxx @@ -3,6 +3,8 @@ #include <stdlib.h> #include <unistd.h> +#include <Carbon/Carbon.h> + int fileExists(char* filename) { #ifndef R_OK @@ -49,6 +51,11 @@ int findBundleFile(char* exec, const char* file) int foo(char *exec) { + // Call a "Carbon" function... + // + CFBundleRef br = CFBundleGetMainBundle(); + (void) br; + int res1 = findBundleFile(exec, "Resources/randomResourceFile.plist"); int res2 = findBundleFile(exec, "MacOS/SomeRandomFile.txt"); int res3 = findBundleFile(exec, "MacOS/ChangeLog.txt"); |