From patchwork Wed Aug 6 19:16:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yann Diorcet X-Patchwork-Id: 377350 X-Patchwork-Delegate: esben@haabendal.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id EFE9A1400D6 for ; Thu, 7 Aug 2014 05:17:13 +1000 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id 4A18A3FDAA for ; Wed, 6 Aug 2014 21:17:12 +0200 (CEST) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by hugin.dotsrc.org (Postfix) with ESMTPS id 9129E3F9B1 for ; Wed, 6 Aug 2014 21:17:10 +0200 (CEST) Received: by mail-we0-f169.google.com with SMTP id u56so3158069wes.0 for ; Wed, 06 Aug 2014 12:17:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YyM+1R/jK3SdgLo84b9+UPrZ2Bjph0D++DIs7roS1BU=; b=Vbr9ktZhCmx5MhJjLNabSFNUzPQh891c86aFNWUi/tqjU42MgJ9jYGqIe91PO8KPzr 3EueEOKSHffngcMZZYCLsJ2dDHkqo27jux7YgxGEBPcY0uxNQguUtF9SrhDTAmXaVSL9 DNuMXU1JzcxMhFS/ewzxCnwMuRa2PTtqD4FrC1dEj+VbXsTfPgTtBA3atSK8CwSnPQPs H95nob+nnZdSal62jFtvOYCSmllR8hiU4DBxnNVBLBpaBXBDzLqKynzj+KG8JCeM/7bt ukTR3SLuL/lF9okRMtcU1P6rAy/oEIZa0jgFrAgxfTVFO0lPL2BkKeJ4iniLSL+tHqhG dtNw== X-Received: by 10.194.119.193 with SMTP id kw1mr11563931wjb.82.1407352630041; Wed, 06 Aug 2014 12:17:10 -0700 (PDT) Received: from localhost.localdomain (mut38-h01-31-33-249-220.dsl.sta.abo.bbox.fr. [31.33.249.220]) by mx.google.com with ESMTPSA id ej10sm21057792wib.12.2014.08.06.12.17.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Aug 2014 12:17:09 -0700 (PDT) From: Yann Diorcet To: dev@oe-lite.org Subject: [PATCH 07/20] Add objc class Date: Wed, 6 Aug 2014 21:16:38 +0200 Message-Id: <1407352611-7652-7-git-send-email-diorcet.yann@gmail.com> X-Mailer: git-send-email 2.0.1 In-Reply-To: <1407352611-7652-1-git-send-email-diorcet.yann@gmail.com> References: <1407352611-7652-1-git-send-email-diorcet.yann@gmail.com> X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org --- classes/objc.oeclass | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 classes/objc.oeclass 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}"