[gtk-osx] Bug 766337 - Please update the OS version to SDK version mapping.
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-osx] Bug 766337 - Please update the OS version to SDK version mapping.
- Date: Thu, 12 May 2016 17:33:30 +0000 (UTC)
commit ec0aea57aebe5e57c1bb78566cecb92bdbf5782d
Author: John Ralls <jralls ceridwen us>
Date: Thu May 12 10:33:01 2016 -0700
Bug 766337 - Please update the OS version to SDK version mapping.
Calculate it directly instead of using an if-then tree.
jhbuildrc-gtk-osx-custom-example | 14 +-------------
1 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/jhbuildrc-gtk-osx-custom-example b/jhbuildrc-gtk-osx-custom-example
index cb303e0..6b3e27e 100644
--- a/jhbuildrc-gtk-osx-custom-example
+++ b/jhbuildrc-gtk-osx-custom-example
@@ -119,19 +119,7 @@ elif _jhb == "FW":
#
# Set up a particular target and SDK: For default operation, set the
# architecture and SDK for the native machine:
-_target = None;
-if _osx_version >= 9.0:
- _target = "10.7"
-elif _osx_version >= 8.0:
- _target = "10.7"
-elif _osx_version >= 7.0:
- _target = "10.7"
-elif _osx_version >= 6.0:
- _target = "10.6"
-elif _osx_version >= 5.0:
- _target = "10.5"
-elif _osx_version >= 4.0:
- _target = "10.4"
+_target = "10.%d" % _osx_version;
setup_sdk(target=_target, sdk_version="native", architectures=[_default_arch])
#
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]