diff mbox

[07/20] Add objc class

Message ID 1407352611-7652-7-git-send-email-diorcet.yann@gmail.com
State New
Delegated to: Esben Haabendal
Headers show

Commit Message

Yann Diorcet Aug. 6, 2014, 7:16 p.m. UTC
---
 classes/objc.oeclass | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 classes/objc.oeclass
diff mbox

Patch

diff --git a/classes/objc.oeclass b/classes/objc.oeclass
new file mode 100644
index 0000000..3ba569a
--- /dev/null
+++ b/classes/objc.oeclass
@@ -0,0 +1,49 @@ 
+# -*- mode:python; -*-
+
+inherit c
+
+export OBJCFLAGS
+export BUILD_OBJC
+
+# OBJC
+BUILD_OBJC	= "${BUILD_PREFIX}${BUILD_OBJC_PROG}"
+HOST_OBJC	= "${HOST_PREFIX}${HOST_OBJC_PROG}"
+TARGET_OBJC	= "${TARGET_PREFIX}${TARGET_OBJC_PROG}"
+export OBJC	= "${HOST_OBJC}"
+
+# OBJC Prog
+BUILD_OBJC_PROG				?= "gcc"
+MACHINE_OBJC_PROG			?= "gcc"
+SDK_OBJC_PROG				?= "gcc"
+HOST_OBJC_PROG:native		 	= "${BUILD_OBJC_PROG}"
+HOST_OBJC_PROG:cross			= "${BUILD_OBJC_PROG}"
+HOST_OBJC_PROG:machine			= "${MACHINE_OBJC_PROG}"
+HOST_OBJC_PROG:sdk			= "${SDK_OBJC_PROG}"
+HOST_OBJC_PROG:sdk-cross		= "${BUILD_OBJC_PROG}"
+HOST_OBJC_PROG:canadian-cross		= "${SDK_OBJC_PROG}"
+TARGET_OBJC_PROG:native			= "${BUILD_OBJC_PROG}"
+TARGET_OBJC_PROG:cross			= "${MACHINE_OBJC_PROG}"
+TARGET_OBJC_PROG:machine		= "${MACHINE_OBJC_PROG}"
+TARGET_OBJC_PROG:sdk			= "${SDK_OBJC_PROG}"
+TARGET_OBJC_PROG:sdk-cross		= "${SDK_OBJC_PROG}"
+TARGET_OBJC_PROG:canadian-cross		= "${MACHINE_OBJC_PROG}"
+
+BUILD_OBJCFLAGS		?= "${BUILD_CFLAGS}"
+MACHINE_OBJCFLAGS	?= "${MACHINE_CFLAGS}"
+SDK_OBJCFLAGS		?= "${SDK_CFLAGS}"
+OBJCFLAGS			 = "${HOST_OBJCFLAGS}"
+HOST_OBJCFLAGS:native		 = "${BUILD_OBJCFLAGS}"
+HOST_OBJCFLAGS:cross		 = "${BUILD_OBJCFLAGS}"
+HOST_OBJCFLAGS:machine		 = "${MACHINE_OBJCFLAGS}"
+HOST_OBJCFLAGS:sdk		 = "${SDK_OBJCFLAGS}"
+HOST_OBJCFLAGS:sdk-cross		 = "${BUILD_OBJCFLAGS}"
+HOST_OBJCFLAGS:canadian-cross	 = "${SDK_OBJCFLAGS}"
+TARGET_OBJCFLAGS:native		 = "${BUILD_OBJCFLAGS}"
+TARGET_OBJCFLAGS:cross		 = "${MACHINE_OBJCFLAGS}"
+TARGET_OBJCFLAGS:machine		 = "${MACHINE_OBJCFLAGS}"
+TARGET_OBJCFLAGS:sdk		 = "${SDK_OBJCFLAGS}"
+TARGET_OBJCFLAGS:sdk-cross	 = "${SDK_OBJCFLAGS}"
+TARGET_OBJCFLAGS:canadian-cross	 = "${MACHINE_OBJCFLAGS}"
+
+HOST_OBJCFLAGS:>HOST_KERNEL_darwin = " -mmacosx-version-min=${DARWIN_VERSION}"
+TARGET_OBJCFLAGS:>TARGET_KERNEL_darwin = " -mmacosx-version-min=${DARWIN_VERSION}"