Bug 486793 - Unit tests: Add capability to easily profile a test; (Bv1-CC) Copy it to comm-central.
authorPaolo Amadini <paolo.02.prg@amadzone.org>
Sun, 14 Feb 2010 19:27:16 +0100
changeset 4912 36643bb71021213c4eae55cf771e117ae44be7ba
parent 4911 21a3938f98d8a04b60252116b2535175632d32d0
child 4913 10bf94ca3428eacea7140401825f6076faee80e7
push idunknown
push userunknown
push dateunknown
bugs486793
Bug 486793 - Unit tests: Add capability to easily profile a test; (Bv1-CC) Copy it to comm-central. r=Callek.
config/config.mk
--- a/config/config.mk
+++ b/config/config.mk
@@ -488,16 +488,22 @@ endif
 INCLUDES	= $(LOCAL_INCLUDES) $(REQ_INCLUDES) $(REQ_INCLUDES_SDK) -I$(PUBLIC) $(OS_INCLUDES)
 
 ifndef MOZILLA_INTERNAL_API
 INCLUDES	+= -I$(LIBXUL_DIST)/sdk/include
 endif
 
 include $(topsrcdir)/config/static-checking-config.mk
 
+ifdef MOZ_SHARK
+OS_CFLAGS += -F/System/Library/PrivateFrameworks
+OS_CXXFLAGS += -F/System/Library/PrivateFrameworks
+OS_LDFLAGS += -F/System/Library/PrivateFrameworks -framework CHUD
+endif # ifdef MOZ_SHARK
+
 CFLAGS		= $(OS_CFLAGS)
 CXXFLAGS	= $(OS_CXXFLAGS)
 LDFLAGS		= $(OS_LDFLAGS) $(MOZ_FIX_LINK_PATHS)
 
 # Allow each module to override the *default* optimization settings
 # by setting MODULE_OPTIMIZE_FLAGS if the developer has not given
 # arguments to --enable-optimize
 ifdef MOZ_OPTIMIZE