Skip to content
Permalink
Browse files

Initial Xcode Project for xhyve

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
  • Loading branch information...
jeremyhu committed Nov 14, 2015
1 parent d6a61cf commit aadbaa8475f006d92682aeebc3231cf9a639ae67
@@ -1 +1,9 @@
/build/
build
DerivedData
.DS_Store
*~
*.rej
*.orig
cscope.*
tags
TAGS
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleShortVersionString</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
</plist>
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
</dict>
</plist>
@@ -0,0 +1,51 @@
MACOSX_DEPLOYMENT_TARGET = 10.10
CURRENT_PROJECT_VERSION = 0.2.0

INSTALL_PREFIX = /opt/xhyve

CODE_SIGN_IDENTITY = -

VERSIONING_SYSTEM = apple-generic

DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
PREBINDING = NO

ENABLE_STRICT_OBJC_MSGSEND = YES
CLANG_ENABLE_OBJC_ARC = YES
CLANG_ENABLE_MODULES = YES

GCC_C_LANGUAGE_STANDARD = gnu11
GCC_NO_COMMON_BLOCKS = YES
GCC_OPTIMIZATION_LEVEL = s

OTHER_CFLAGS_common = -fstrict-aliasing
OTHER_CFLAGS = $(inherited) $(OTHER_CFLAGS_common)
OTHER_LDFLAGS_common =
OTHER_LDFLAGS = $(inherited) $(OTHER_LDFLAGS_common)
GCC_PREPROCESSOR_DEFINITIONS_common =
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) $(GCC_PREPROCESSOR_DEFINITIONS_common)

HEADER_SEARCH_PATHS = $(SRCROOT)/include $(inherited)

WARNING_CFLAGS = -Weverything -Wall -Wno-error=deprecated -Wno-unknown-warning-option -Wno-reserved-id-macro -Wno-missing-variable-declarations -pedantic
GCC_TREAT_WARNINGS_AS_ERRORS = YES
CLANG_WARN_BOOL_CONVERSION = YES
CLANG_WARN_CONSTANT_CONVERSION = YES
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES
CLANG_WARN_EMPTY_BODY = YES
CLANG_WARN_ENUM_CONVERSION = YES
CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES
CLANG_WARN_INT_CONVERSION = YES
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
GCC_WARN_64_TO_32_BIT_CONVERSION = YES
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES
GCC_WARN_UNDECLARED_SELECTOR = YES
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE
GCC_WARN_UNUSED_FUNCTION = YES
GCC_WARN_UNUSED_LABEL = YES
GCC_WARN_UNUSED_PARAMETER = YES
GCC_WARN_UNUSED_VARIABLE = YES

LLVM_LTO = YES
@@ -0,0 +1,10 @@
#include "common_debug.xcconfig"

OTHER_CFLAGS_asan = $(OTHER_CFLAGS_common) -fsanitize=address
OTHER_CFLAGS = $(inherited) $(OTHER_CFLAGS_asan)

OTHER_LDFLAGS_asan = $(OTHER_LDFLAGS_debug) -fsanitize=address
OTHER_LDFLAGS = $(inherited) $(OTHER_LDFLAGS_asan)

GCC_PREPROCESSOR_DEFINITIONS_asan = $(GCC_PREPROCESSOR_DEFINITIONS_debug)
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) $(GCC_PREPROCESSOR_DEFINITIONS_asan)
@@ -0,0 +1,16 @@
#include "common.xcconfig"

COPY_PHASE_STRIP = NO
STRIP_INSTALLED_PRODUCT = NO

GCC_OPTIMIZATION_LEVEL = 0

OTHER_CFLAGS_debug = $(OTHER_CFLAGS_common) -fno-inline
OTHER_CFLAGS = $(inherited) $(OTHER_CFLAGS_debug)

OTHER_LDFLAGS_debug = $(OTHER_LDFLAGS_common)
OTHER_LDFLAGS = $(inherited) $(OTHER_LDFLAGS_debug)

GCC_PREPROCESSOR_DEFINITIONS_asan = $(GCC_PREPROCESSOR_DEFINITIONS_common) XHYVE_CONFIG_ASSERT
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) $(GCC_PREPROCESSOR_DEFINITIONS_common)

@@ -0,0 +1,12 @@
CODE_SIGN_ENTITLEMENTS = src/xhyve-entitlements.plist
OTHER_CODE_SIGN_FLAGS = -o library

PRODUCT_BUNDLE_IDENTIFIER = xyz.xhyve.xhyve

INFOPLIST_FILE = src/xhyve-Info.plist
CREATE_INFOPLIST_SECTION_IN_BINARY = YES

OTHER_CFLAGS = $(inherited) -include xhyve-version.h -fvisibility=hidden

INSTALL_PATH = $(INSTALL_PREFIX)/bin
MAN_INSTALL_PATH = $(INSTALL_PREFIX)/share/man
@@ -0,0 +1,11 @@
#!/bin/bash

set -e -x

if [[ -d "${SRCROOT}/.git" ]] ; then
VERSION=$(GIT_DIR="${SRCROOT}"/.git git describe --abbrev=6 --dirty --always --tags)
else
VERSION="v${CURRENT_PROJECT_VERSION}"
fi

echo "#define VERSION \"${VERSION}\"" > "${DERIVED_FILE_DIR}/xhyve-version.h"
@@ -0,0 +1,2 @@
project.xcworkspace
xcuserdata

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit aadbaa8

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.