summaryrefslogtreecommitdiff
path: root/Tests/BundleTest/BundleLib.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2008-09-02 11:07:04 -0400
committerDavid Cole <david.cole@kitware.com>2008-09-02 11:07:04 -0400
commita54e97cf946e82de6b73c26c64b7fe3efdf0be43 (patch)
tree83e2ced27b238b65b902ac0e2c5e9286c48d70dc /Tests/BundleTest/BundleLib.cxx
parent698b8044a627293dd6a453c2fa10284000b2f5b1 (diff)
downloadcmake-a54e97cf946e82de6b73c26c64b7fe3efdf0be43.tar.gz
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.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/BundleTest/BundleLib.cxx b/Tests/BundleTest/BundleLib.cxx
index 4f353fba86..bab745e46f 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");