Commits

Bob Ippolito committed 110035a

Added ExceptionHandler

Comments (0)

Files changed (1)

         '-framework', 'CoreFoundation', '-framework', 'SecurityInterface', '-framework', 'Foundation',
         ]
 
+    EXCEPTION_HANDLING_LDFLAGS=[
+        '-framework', 'CoreFoundation', '-framework', 'ExceptionHandling', '-framework', 'Foundation',
+        ]
+
     PREFPANES_LDFLAGS=[
         '-framework', 'CoreFoundation', '-framework', 'PreferencePanes', '-framework', 'Foundation',
         ]
     ADDRESSBOOK_LDFLAGS=[]
     PREFPANES_LDFLAGS=[]
     SECURITY_INTERFACE_LDFLAGS=[]
+    EXCEPTION_HANDLING_LDFLAGS=[]
 
 CFLAGS.append('-Ibuild/codegen/')
 
     SecurityInterfaceDepends = {
         'depends': glob.glob('build/codegen/*.inc'),
     }
+    ExceptionHandlingDepends = {
+        'depends': glob.glob('build/codegen/*.inc'),
+    }
     PrefPanesDepends = {
         'depends': glob.glob('build/codegen/*.inc'),
     }
     AddressBookDepends = {}
     CoreFoundationDepends = {}
     SecurityInterfaceDepends = {}
+    ExceptionHandlingDepends = {}
     PrefPanesDepends = {}
     InterfaceBuilderDepends = {}
     WebKitDepends = {}
                       ),
         ])
 
+ExceptionHandlingPackages, ExceptionHandlingExtensions = \
+        IfFrameWork('ExceptionHandling.framework', [ 'ExceptionHandling' ], [
+            Extension('_ExceptionHandling',
+                      [ 'Modules/ExceptionHandling/_ExceptionHandling.m' ],
+                      extra_compile_args=[
+                        '-IModules/objc',
+                      ] + CFLAGS,
+                      extra_link_args=[
+                      ] + EXCEPTION_HANDLING_LDFLAGS,
+                      **ExceptionHandlingDepends
+                      ),
+        ])
+
 PrefPanesPackages, PrefPanesExtensions = \
         IfFrameWork('PreferencePanes.framework', [ 'PreferencePanes' ], [
             Extension('_PreferencePanes',
 
 
 # skipping CoreFoundationPackages, it's fake!
-packages = CorePackages + AppKitPackages + FoundationPackages + AddressBookPackages + PrefPanesPackages + InterfaceBuilderPackages + ScreenSaverPackages + WebKitPackages + SecurityInterfacePackages + [ 'PyObjCTools' ]
+packages = CorePackages + AppKitPackages + FoundationPackages + AddressBookPackages + PrefPanesPackages + InterfaceBuilderPackages + ScreenSaverPackages + WebKitPackages + SecurityInterfacePackages + ExceptionHandlingPackages + [ 'PyObjCTools' ]
 
 # The following line is needed to allow separate flat modules
 # to be installed from a different folder (needed for the
                            + InterfaceBuilderExtensions
                            + ScreenSaverExtensions
                            + SecurityInterfaceExtensions
+                           + ExceptionHandlingExtensions
                            + CoreFoundationExtensions
                            + WebKitExtensions
                            ),