Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimon Tsinteris committed Apr 28, 2014
0 parents commit 2fc31bd
Show file tree
Hide file tree
Showing 105 changed files with 13,252 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.DS_Store

*.pbxuser
*.perspective
*.perspectivev3

*.mode1v3
*.mode2v3

*.xcodeproj/xcuserdata/*.xcuserdatad

*.xccheckout
*.xcuserdatad

Pods
28 changes: 28 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Contributing
We want to make contributing to Pop as easy and transparent as
possible. If you run into problems, please open an issue. We also actively welcome pull requests.

## Pull Requests
1. Fork the repo and create your branch from `master`.
2. If you've added code that should be tested, add tests
3. If you've changed APIs, update the documentation.
4. Ensure the test suite passes.
5. Make sure your code lints.
6. If you haven't already, complete the Contributor License Agreement ("CLA").

## Contributor License Agreement ("CLA")
In order to accept your pull request, we need you to submit a CLA. You only need
to do this once to work on any of Facebook's open source projects.

Complete your CLA here: <https://code.facebook.com/cla>

## Issues
We use GitHub issues to track public bugs. Please ensure your description is
clear and has sufficient instructions to be able to reproduce the issue.

## Coding Style
* 2 spaces for indentation rather than tabs

## License
By contributing to Pop you agree that your contributions will be licensed
under its BSD license.
20 changes: 20 additions & 0 deletions Configuration/Applications/Application-OSX.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// Copyright (c) 2014-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//

#include "../Base-OSX.xcconfig"

// Deployment
DSTROOT = /tmp/$(TARGET_NAME)
SKIP_INSTALL = YES

// Linking
OTHER_LDFLAGS = -ObjC -all_load -lc++

// Packaging
WRAPPER_EXTENSION = app
23 changes: 23 additions & 0 deletions Configuration/Applications/Application-iOS.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//
// Copyright (c) 2014-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//

#include "../Base-iOS.xcconfig"

// Code Signing
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer

// Deployment
DSTROOT = /tmp/$(TARGET_NAME)
SKIP_INSTALL = YES

// Linking
OTHER_LDFLAGS = -ObjC -all_load -lc++

// Packaging
WRAPPER_EXTENSION = app
12 changes: 12 additions & 0 deletions Configuration/Base-OSX.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Copyright (c) 2014-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//

// Base xcconfig for OS X targets.
#include "Platform/OSX.xcconfig"
#include "Platform/Compiler.xcconfig"
12 changes: 12 additions & 0 deletions Configuration/Base-iOS.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// Copyright (c) 2014-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//

// Base xcconfig for iOS targets.
#include "Platform/iOS.xcconfig"
#include "Platform/Compiler.xcconfig"
36 changes: 36 additions & 0 deletions Configuration/Platform/Compiler.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//
// Copyright (c) 2014-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//

// Don't warn on implicit property synthesis
CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS = NO

// Treat warnings as errors
GCC_TREAT_WARNINGS_AS_ERRORS = YES
CLANG_WARN_CONSTANT_CONVERSION = YES
CLANG_WARN_ENUM_CONVERSION = YES
CLANG_WARN_INT_CONVERSION = YES
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
CLANG_WARN_BOOL_CONVERSION = YES
CLANG_WARN_EMPTY_BODY = YES
GCC_WARN_UNINITIALIZED_AUTOS = YES
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO
GCC_WARN_UNUSED_FUNCTION = YES

// Silence Eigen warnings
GCC_WARN_SHADOW = NO

// Enable C++11 support
CLANG_CXX_LANGUAGE_STANDARD = c++11
CLANG_CXX_LIBRARY = libc++

// Enable ARC
CLANG_ENABLE_OBJC_ARC = YES

// Allow #import'ing code generated headers from DERIVED_FILE_DIR.
HEADER_SEARCH_PATHS = $(inherited) $(DERIVED_FILE_DIR)
18 changes: 18 additions & 0 deletions Configuration/Platform/OSX.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// Copyright (c) 2014-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//

// OS X Platform
SDKROOT = macosx
SUPPORTED_PLATFORMS = macosx

// Standard Architectures
ARCHS = $(ARCHS_STANDARD)

// Limit to OS X 64-bit (x86_64)
VALID_ARCHS = x86_64
18 changes: 18 additions & 0 deletions Configuration/Platform/iOS.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// Copyright (c) 2014-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//

// iOS Platform
SDKROOT = iphoneos
IPHONEOS_DEPLOYMENT_TARGET = 6.0

// Standard Architectures, including 64-bit
ARCHS = $(ARCHS_STANDARD_INCLUDING_64_BIT)

// Code Signing
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer
25 changes: 25 additions & 0 deletions Configuration/Projects/Project-Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// Copyright (c) 2014-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//

#include "Project.xcconfig"

// Code Generation
GCC_OPTIMIZATION_LEVEL = 0

// Enable assertions
ENABLE_NS_ASSERTIONS = YES

// Avoid compression overhead
COMPRESS_PNG_FILES = NO

// Deployment
COPY_PHASE_STRIP = NO

// Default to dwarf
DEBUG_INFORMATION_FORMAT = dwarf
13 changes: 13 additions & 0 deletions Configuration/Projects/Project-GCOV.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// Copyright (c) 2014-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//

#include "Project-Debug.xcconfig"

GCC_GENERATE_TEST_COVERAGE_FILES = YES
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES
31 changes: 31 additions & 0 deletions Configuration/Projects/Project-Profile.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//
// Copyright (c) 2014-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//

#include "Project.xcconfig"

// Code Generation
GCC_OPTIMIZATION_LEVEL = s

// Disable assertions
ENABLE_NS_ASSERTIONS = NO

// Enable Xcode PNG compression
COMPRESS_PNG_FILES = YES

// Deployment
COPY_PHASE_STRIP = NO

// Preprocessing
GCC_PREPROCESSOR_DEFINITIONS = PROFILE=1 NS_BLOCK_ASSERTIONS NDEBUG

// We need debug symbols for profiling
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym

// Not all libraries have a Profile version. Allow using the Release version if they don't.
LIBRARY_SEARCH_PATHS = $(BUILT_PRODUCTS_DIR) $(BUILD_DIR)/Release$(EFFECTIVE_PLATFORM_NAME)
25 changes: 25 additions & 0 deletions Configuration/Projects/Project-Release.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// Copyright (c) 2014-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//

#include "Project.xcconfig"

// Code Generation
GCC_OPTIMIZATION_LEVEL = s

// Disable assertions
ENABLE_NS_ASSERTIONS = NO

// Enable Xcode PNG compression
COMPRESS_PNG_FILES = YES

// Build Options
VALIDATE_PRODUCT = YES

// Preprocessing
GCC_PREPROCESSOR_DEFINITIONS = PROFILE=1 NS_BLOCK_ASSERTIONS NDEBUG
48 changes: 48 additions & 0 deletions Configuration/Projects/Project.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
//
// Copyright (c) 2014-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//

#include "../Base-iOS.xcconfig"

SDKROOT = iphoneos

// Build Options
GCC_VERSION = com.apple.compilers.llvm.clang.1_0

// Deployment
TARGETED_DEVICE_FAMILY = 1,2 // iPhone, iPad

// Packaging
PRODUCT_NAME = $(TARGET_NAME)
INFOPLIST_FILE = $(TARGET_NAME)/$(TARGET_NAME)-Info.plist

// Search Paths
ALWAYS_SEARCH_USER_PATHS = NO
HEADER_SEARCH_PATHS = $(SYMROOT)/Headers
FRAMEWORK_SEARCH_PATHS = $(inherited) $(BUILT_PRODUCTS_DIR)
LIBRARY_SEARCH_PATHS = $(BUILT_PRODUCTS_DIR) $(inherited)

// Code Generation
GCC_DYNAMIC_NO_PIC = NO
GCC_INLINES_ARE_PRIVATE_EXTERN = YES
GCC_SYMBOLS_PRIVATE_EXTERN = NO

// Language
GCC_C_LANGUAGE_STANDARD = gnu99
CLANG_ENABLE_OBJC_ARC = NO
GCC_PRECOMPILE_PREFIX_HEADER = YES
GCC_PREFIX_HEADER = $(TARGET_NAME)/$(TARGET_NAME)-Prefix.pch

// Warnings
GCC_WARN_ABOUT_RETURN_TYPE = YES
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES
GCC_WARN_MISSING_PARENTHESES = YES
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES
GCC_WARN_SHADOW = YES
GCC_WARN_UNUSED_VARIABLE = YES
CLANG_WARN_CXX0X_EXTENSIONS = NO
27 changes: 27 additions & 0 deletions Configuration/Static Libraries/StaticLibrary-OSX.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// Copyright (c) 2014-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//

#include "../Base-OSX.xcconfig"

// Deployment
DSTROOT = /tmp/$(TARGET_NAME)
INSTALL_PATH = $(SYMROOT)/Headers
SKIP_INSTALL = YES

// Packaging: Put headers in $(SYMROOT) instead of $(CONFIGURATION_BUILD_DIR)
// so header paths across projects don't depend on all projects having an
// identical configuration name.
//
// Note: PUBLIC_HEADERS_FOLDER_PATH is directly appended to $(CONFIGURATION_BUILD_DIR),
// so the path is relative to that.

PUBLIC_HEADERS_FOLDER_PATH = ../Headers/$(TARGET_NAME)

// declare inlines as extern
GCC_INLINES_ARE_PRIVATE_EXTERN = YES
27 changes: 27 additions & 0 deletions Configuration/Static Libraries/StaticLibrary-iOS.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// Copyright (c) 2014-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//

#include "../Base-iOS.xcconfig"

// Deployment
DSTROOT = /tmp/$(TARGET_NAME)
INSTALL_PATH = $(SYMROOT)/Headers
SKIP_INSTALL = YES

// Packaging: Put headers in $(SYMROOT) instead of $(CONFIGURATION_BUILD_DIR)
// so header paths across projects don't depend on all projects having an
// identical configuration name.
//
// Note: PUBLIC_HEADERS_FOLDER_PATH is directly appended to $(CONFIGURATION_BUILD_DIR),
// so the path is relative to that.

PUBLIC_HEADERS_FOLDER_PATH = ../Headers/$(TARGET_NAME)

// declare inlines as extern
GCC_INLINES_ARE_PRIVATE_EXTERN = YES
Loading

0 comments on commit 2fc31bd

Please sign in to comment.