]> git.saurik.com Git - apple/objc4.git/blobdiff - runtime/Module/module.modulemap
objc4-723.tar.gz
[apple/objc4.git] / runtime / Module / module.modulemap
diff --git a/runtime/Module/module.modulemap b/runtime/Module/module.modulemap
new file mode 100644 (file)
index 0000000..74f7d64
--- /dev/null
@@ -0,0 +1,40 @@
+module ObjectiveC [system] [extern_c] {
+  umbrella "."
+  export *
+  module * { 
+    export *
+  }
+
+  module NSObject {
+    requires objc
+    header "NSObject.h"
+    export *
+  }
+
+#if defined(BUILD_FOR_OSX)
+  module List {
+    // Uses @defs, which does not work in ObjC++ or non-ARC.
+    requires objc, !objc_arc, !cplusplus
+    header "List.h"
+    export *
+  }
+
+  module Object {
+    requires objc
+    header "Object.h"
+    export *
+  }
+
+  module Protocol {
+    requires objc
+    header "Protocol.h"
+    export *
+  }
+#endif
+
+#if !defined(BUILD_FOR_OSX)
+  // These file are not available outside macOS.
+  exclude header "hashtable.h"
+  exclude header "hashtable2.h"
+#endif
+}