Skip to content

Commit

Permalink
initial import of libnova's trunk (pulled 4/26/2013) with patch to build
Browse files Browse the repository at this point in the history
for iOS with XCode 4.6.1
  • Loading branch information
mshafae committed Apr 26, 2013
1 parent 775a038 commit 0d478c5
Show file tree
Hide file tree
Showing 127 changed files with 95,342 additions and 8 deletions.
Binary file modified MoveBetweenTextFields/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,23 +1,156 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="2519" systemVersion="12A206j" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" useAutolayout="YES" initialViewController="2">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="3084" systemVersion="11G63b" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" useAutolayout="YES" initialViewController="Rir-if-Soq">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="1856"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="2083"/>
</dependencies>
<scenes>
<!--class Prefix:identifier View Controller-->
<scene sceneID="4">
<!--Table View Controller - California Cities-->
<scene sceneID="4lh-wa-NgF">
<objects>
<viewController id="2" customClass="MSViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="5">
<rect key="frame" x="0.0" y="20" width="768" height="1004"/>
<tableViewController id="W8Q-sF-mq4" customClass="SQLTableViewController" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" id="sax-ZN-hhV">
<rect key="frame" x="0.0" y="64" width="768" height="960"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<prototypes>
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="MyCellIdentifier" textLabel="B2h-1O-gr1" detailTextLabel="L1G-uh-sf1" style="IBUITableViewCellStyleSubtitle" id="dyr-1O-Qch">
<rect key="frame" x="0.0" y="22" width="768" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
<rect key="frame" x="0.0" y="0.0" width="748" height="43"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="left" text="Title" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="B2h-1O-gr1">
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<color key="highlightedColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
</label>
<label opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="left" text="Subtitle" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="L1G-uh-sf1">
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" red="0.50196078431372548" green="0.50196078431372548" blue="0.50196078431372548" alpha="1" colorSpace="calibratedRGB"/>
<color key="highlightedColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</view>
<connections>
<segue destination="xrY-Oc-c4r" kind="push" identifier="detailsegue" id="5wN-Ck-U1g"/>
</connections>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="W8Q-sF-mq4" id="C2v-a2-4MZ"/>
<outlet property="delegate" destination="W8Q-sF-mq4" id="Lki-0N-Foh"/>
</connections>
</tableView>
<navigationItem key="navigationItem" title="California Cities" id="zKJ-BF-RNO"/>
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="IvA-VV-6kh" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="956" y="-219"/>
</scene>
<!--Detail View Controller - Details-->
<scene sceneID="z3j-g8-Xpp">
<objects>
<viewController id="xrY-Oc-c4r" customClass="MSDetailViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="V6P-iM-Z2d">
<rect key="frame" x="0.0" y="64" width="768" height="960"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="evx-sE-DCu">
<constraints>
<constraint firstAttribute="width" constant="341" id="YfU-xF-baE"/>
<constraint firstAttribute="height" constant="53" id="bPh-7Y-pJu"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="36"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bzP-7t-xcH">
<constraints>
<constraint firstAttribute="height" constant="53" id="RcU-g7-H6K"/>
<constraint firstAttribute="width" constant="534" id="hnV-uB-Opu"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="36"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ErY-Fj-FCa">
<constraints>
<constraint firstAttribute="height" constant="53" id="3f0-nK-Gl0"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="36"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<mapView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" mapType="standard" showsUserLocation="YES" translatesAutoresizingMaskIntoConstraints="NO" id="qSU-Ig-2n4">
<constraints>
<constraint firstAttribute="height" constant="695" id="ewY-cF-UUM"/>
</constraints>
</mapView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="evx-sE-DCu" firstAttribute="leading" secondItem="ErY-Fj-FCa" secondAttribute="leading" type="default" id="0LB-kK-qzx"/>
<constraint firstItem="ErY-Fj-FCa" firstAttribute="top" secondItem="bzP-7t-xcH" secondAttribute="bottom" constant="8" symbolic="YES" type="default" id="1SJ-Ek-Vjo"/>
<constraint firstItem="bzP-7t-xcH" firstAttribute="top" secondItem="evx-sE-DCu" secondAttribute="bottom" constant="8" symbolic="YES" type="default" id="FsZ-eu-2KO"/>
<constraint firstItem="qSU-Ig-2n4" firstAttribute="leading" secondItem="V6P-iM-Z2d" secondAttribute="leading" constant="20" symbolic="YES" type="default" id="PgC-TE-syP"/>
<constraint firstAttribute="bottom" secondItem="qSU-Ig-2n4" secondAttribute="bottom" constant="20" symbolic="YES" type="default" id="cVZ-FD-ehW"/>
<constraint firstItem="evx-sE-DCu" firstAttribute="centerX" secondItem="bzP-7t-xcH" secondAttribute="centerX" type="default" id="gHY-zs-tsq"/>
<constraint firstItem="evx-sE-DCu" firstAttribute="top" secondItem="V6P-iM-Z2d" secondAttribute="top" constant="51" id="gfF-VG-3Q5"/>
<constraint firstItem="ErY-Fj-FCa" firstAttribute="centerX" secondItem="qSU-Ig-2n4" secondAttribute="centerX" type="default" id="jrD-Ba-w48"/>
<constraint firstAttribute="trailing" secondItem="qSU-Ig-2n4" secondAttribute="trailing" constant="20" symbolic="YES" type="default" id="mmo-lf-Ack"/>
<constraint firstItem="evx-sE-DCu" firstAttribute="trailing" secondItem="ErY-Fj-FCa" secondAttribute="trailing" type="default" id="q7J-yG-jWf"/>
</constraints>
</view>
<navigationItem key="navigationItem" title="Details" id="hLi-df-Ofb"/>
<connections>
<outlet property="cityLabel" destination="evx-sE-DCu" id="r2Y-uR-iwD"/>
<outlet property="coordLabel" destination="bzP-7t-xcH" id="j9a-a4-Xzc"/>
<outlet property="map" destination="qSU-Ig-2n4" id="5hl-f4-VcS"/>
<outlet property="populationLabel" destination="ErY-Fj-FCa" id="KfP-bh-xLx"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="3" sceneMemberID="firstResponder"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="h5M-cq-1Fu" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="2353" y="-303"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="8d8-X6-Qvm">
<objects>
<navigationController id="Rir-if-Soq" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" id="rKU-a2-ydo">
<rect key="frame" x="0.0" y="0.0" width="768" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
<connections>
<segue destination="W8Q-sF-mq4" kind="relationship" relationship="rootViewController" id="bi2-oT-dd2"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="rKZ-rj-znv" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-18" y="-219"/>
</scene>
</scenes>
<classes>
<class className="MSDetailViewController" superclassName="UIViewController">
<source key="sourceIdentifier" type="project" relativePath="./Classes/MSDetailViewController.h"/>
<relationships>
<relationship kind="outlet" name="cityLabel" candidateClass="UILabel"/>
<relationship kind="outlet" name="coordLabel" candidateClass="UILabel"/>
<relationship kind="outlet" name="map" candidateClass="MKMapView"/>
<relationship kind="outlet" name="populationLabel" candidateClass="UILabel"/>
</relationships>
</class>
<class className="NSLayoutConstraint" superclassName="NSObject">
<source key="sourceIdentifier" type="project" relativePath="./Classes/NSLayoutConstraint.h"/>
</class>
<class className="SQLTableViewController" superclassName="UITableViewController">
<source key="sourceIdentifier" type="project" relativePath="./Classes/SQLTableViewController.h"/>
</class>
</classes>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar" statusBarStyle="blackTranslucent"/>
<simulatedOrientationMetrics key="orientation"/>
Expand Down
Binary file not shown.
31 changes: 31 additions & 0 deletions libnova/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
libNova Team
============

Liam Girdwood <liam@gnova.org>
Juan Carlos Remis <jcremis@cajaespana.es>
Petr Kubanek <petr@kubanek.net>


BugFixes
========

Bug fixes and reports have been supplied by

Petr Kubanek,
Danie Malan,
Herbert Straub,
Asrita Chetan,
John R. Thorstensen,
Kimura Fuyuki,
Kirill Ponomarew,
Pablo Martikian,
Paul Ray,
Pedro Abelleira Seco,
Guillermo Ballester Valor,
Peter Williams,
Radu Corlan,
Daniel Schultze,
Kevin Ross,
Stephane Lamoliatte,
Kevin Ivarsen,
Lukasz Michalik
73 changes: 73 additions & 0 deletions libnova/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)

project(libnova)

# define the name of the library
set(LIBRARY_NAME libnova)

option(BUILD_SHARED_LIBRARY "Set to ON to build libnova as a shared library." ON)
if(BUILD_SHARED_LIBRARY)
set(BUILD_SHARED_LIBS TRUE)
add_definitions(-DLIBNOVA_SHARED)
else(BUILD_SHARED_LIBRARY)
set(BUILD_SHARED_LIBS FALSE)
add_definitions(-DLIBNOVA_STATIC)
endif(BUILD_SHARED_LIBRARY)

# add some definitions
if(WIN32)
add_definitions(-D_USE_MATH_DEFINES)
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
add_definitions(-D__WIN32__)
endif(WIN32)

# add more optimization flags to the visual studio release compilation
if(MSVC)
set(CMAKE_CXX_FLAGS_RELEASE "/MD /Ox /Ob2 /D NDEBUG")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:SSE2 /GS-")
endif(MSVC)


# set the debug postfix
set(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "add a postfix, usually d on windows")

# set LIB_POSTFIX
if(UNIX AND NOT WIN32 AND NOT APPLE)
if(CMAKE_SIZEOF_VOID_P MATCHES "8")
set(LIB_POSTFIX "64" CACHE STRING "suffix for 32/64 dir placement")
mark_as_advanced(LIB_POSTFIX)
endif(CMAKE_SIZEOF_VOID_P MATCHES "8")
endif(UNIX AND NOT WIN32 AND NOT APPLE)
if(NOT DEFINED LIB_POSTFIX)
set(LIB_POSTFIX "")
endif(NOT DEFINED LIB_POSTFIX)


# set and create the EXECUTABLE_OUTPUT_PATH
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
file(MAKE_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})

# set and create the LIBRARY_OUTPUT_PATH
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
file(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH})


# define a macro to setup executable program which are linked with libnova
macro(SETUP_EXECUTABLE EXECUTABLE_NAME)
add_executable(${EXECUTABLE_NAME} ${EXECUTABLE_NAME}.c)
target_link_libraries(${EXECUTABLE_NAME} libnova)
set_target_properties(${EXECUTABLE_NAME} PROPERTIES DEBUG_POSTFIX "${CMAKE_DEBUG_POSTFIX}")
if(MSVC)
set_target_properties(${EXECUTABLE_NAME} PROPERTIES PREFIX "../")
endif(MSVC)
INSTALL(TARGETS ${EXECUTABLE_NAME} RUNTIME DESTINATION bin)
endmacro(SETUP_EXECUTABLE EXECUTABLE_NAME)

# add include directory to all projects
include_directories(${libnova_SOURCE_DIR}/src)

# traverse the sub directories
add_subdirectory(src)
add_subdirectory(lntest)
add_subdirectory(examples)
Loading

0 comments on commit 0d478c5

Please sign in to comment.