Skip to content

Commit

Permalink
Fixed BUILD glob, made example project public for MOE use.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=114449341
  • Loading branch information
tomball committed Feb 17, 2016
1 parent 2a6c1d0 commit f894e33
Show file tree
Hide file tree
Showing 34 changed files with 808 additions and 177 deletions.
11 changes: 11 additions & 0 deletions examples/Hello/Hello.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//
// config.xcconfig
// Hello
//

// Change this path if this project is separate from a j2objc source repository.
J2OBJC_DIST = ../../dist;

HEADER_SEARCH_PATHS = "${J2OBJC_DIST}/include";
LIBRARY_SEARCH_PATHS = "${J2OBJC_DIST}/lib";
OTHER_LDFLAGS = "-ljre_core"
335 changes: 335 additions & 0 deletions examples/Hello/Hello.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,335 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
069A97A61C6A86AD00A00560 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 069A97A51C6A86AD00A00560 /* main.m */; };
069A97A91C6A86AD00A00560 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 069A97A81C6A86AD00A00560 /* AppDelegate.m */; };
069A97AC1C6A86AD00A00560 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 069A97AB1C6A86AD00A00560 /* ViewController.m */; };
069A97AF1C6A86AD00A00560 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 069A97AD1C6A86AD00A00560 /* Main.storyboard */; };
069A97B11C6A86AD00A00560 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 069A97B01C6A86AD00A00560 /* Assets.xcassets */; };
069A97B41C6A86AD00A00560 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 069A97B21C6A86AD00A00560 /* LaunchScreen.storyboard */; };
069A97D51C6A897900A00560 /* Hello.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 069A97D41C6A897900A00560 /* Hello.xcconfig */; };
069A97DC1C6AB52A00A00560 /* Status.java in Sources */ = {isa = PBXBuildFile; fileRef = 069A97DB1C6AB52A00A00560 /* Status.java */; };
/* End PBXBuildFile section */

/* Begin PBXBuildRule section */
069A97D71C6A96BC00A00560 /* PBXBuildRule */ = {
isa = PBXBuildRule;
compilerSpec = com.apple.compilers.proxy.script;
fileType = sourcecode.java;
isEditable = 1;
outputFiles = (
"${DERIVED_FILES_DIR}/org/j2objc/${INPUT_FILE_BASE}.m",
"${DERIVED_FILES_DIR}/org/j2objc/${INPUT_FILE_BASE}.h",
);
script = "if [ ! -f \"${J2OBJC_DIST}/j2objc\" ]; then echo \"J2OBJC_DIST not correctly defined in Hello.xcconfig, currently set to '${J2OBJC_DIST}'\"; exit 1; fi;\n\"${J2OBJC_DIST}/j2objc\" --quiet -g -d ${DERIVED_FILES_DIR} -use-arc ${INPUT_FILE_PATH};";
};
/* End PBXBuildRule section */

/* Begin PBXFileReference section */
069A97A11C6A86AD00A00560 /* Hello.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Hello.app; sourceTree = BUILT_PRODUCTS_DIR; };
069A97A51C6A86AD00A00560 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
069A97A71C6A86AD00A00560 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
069A97A81C6A86AD00A00560 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
069A97AA1C6A86AD00A00560 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
069A97AB1C6A86AD00A00560 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
069A97AE1C6A86AD00A00560 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
069A97B01C6A86AD00A00560 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
069A97B31C6A86AD00A00560 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
069A97B51C6A86AD00A00560 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
069A97D41C6A897900A00560 /* Hello.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Hello.xcconfig; sourceTree = "<group>"; };
069A97DB1C6AB52A00A00560 /* Status.java */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.java; name = Status.java; path = org/j2objc/Status.java; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
069A979E1C6A86AD00A00560 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
069A97981C6A86AD00A00560 = {
isa = PBXGroup;
children = (
069A97D41C6A897900A00560 /* Hello.xcconfig */,
069A97A31C6A86AD00A00560 /* Hello */,
069A97A21C6A86AD00A00560 /* Products */,
);
sourceTree = "<group>";
};
069A97A21C6A86AD00A00560 /* Products */ = {
isa = PBXGroup;
children = (
069A97A11C6A86AD00A00560 /* Hello.app */,
);
name = Products;
sourceTree = "<group>";
};
069A97A31C6A86AD00A00560 /* Hello */ = {
isa = PBXGroup;
children = (
069A97A71C6A86AD00A00560 /* AppDelegate.h */,
069A97A81C6A86AD00A00560 /* AppDelegate.m */,
069A97AA1C6A86AD00A00560 /* ViewController.h */,
069A97AB1C6A86AD00A00560 /* ViewController.m */,
069A97DB1C6AB52A00A00560 /* Status.java */,
069A97AD1C6A86AD00A00560 /* Main.storyboard */,
069A97B01C6A86AD00A00560 /* Assets.xcassets */,
069A97B21C6A86AD00A00560 /* LaunchScreen.storyboard */,
069A97B51C6A86AD00A00560 /* Info.plist */,
069A97A41C6A86AD00A00560 /* Supporting Files */,
);
path = Hello;
sourceTree = "<group>";
};
069A97A41C6A86AD00A00560 /* Supporting Files */ = {
isa = PBXGroup;
children = (
069A97A51C6A86AD00A00560 /* main.m */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
069A97A01C6A86AD00A00560 /* Hello */ = {
isa = PBXNativeTarget;
buildConfigurationList = 069A97B81C6A86AD00A00560 /* Build configuration list for PBXNativeTarget "Hello" */;
buildPhases = (
069A979D1C6A86AD00A00560 /* Sources */,
069A979E1C6A86AD00A00560 /* Frameworks */,
069A979F1C6A86AD00A00560 /* Resources */,
);
buildRules = (
069A97D71C6A96BC00A00560 /* PBXBuildRule */,
);
dependencies = (
);
name = Hello;
productName = Hello;
productReference = 069A97A11C6A86AD00A00560 /* Hello.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
069A97991C6A86AD00A00560 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0720;
ORGANIZATIONNAME = com.google;
TargetAttributes = {
069A97A01C6A86AD00A00560 = {
CreatedOnToolsVersion = 7.2;
};
};
};
buildConfigurationList = 069A979C1C6A86AD00A00560 /* Build configuration list for PBXProject "Hello" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 069A97981C6A86AD00A00560;
productRefGroup = 069A97A21C6A86AD00A00560 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
069A97A01C6A86AD00A00560 /* Hello */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
069A979F1C6A86AD00A00560 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
069A97D51C6A897900A00560 /* Hello.xcconfig in Resources */,
069A97B41C6A86AD00A00560 /* LaunchScreen.storyboard in Resources */,
069A97B11C6A86AD00A00560 /* Assets.xcassets in Resources */,
069A97AF1C6A86AD00A00560 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
069A979D1C6A86AD00A00560 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
069A97AC1C6A86AD00A00560 /* ViewController.m in Sources */,
069A97A91C6A86AD00A00560 /* AppDelegate.m in Sources */,
069A97A61C6A86AD00A00560 /* main.m in Sources */,
069A97DC1C6AB52A00A00560 /* Status.java in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
069A97AD1C6A86AD00A00560 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
069A97AE1C6A86AD00A00560 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
069A97B21C6A86AD00A00560 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
069A97B31C6A86AD00A00560 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
069A97B61C6A86AD00A00560 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 069A97D41C6A897900A00560 /* Hello.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
069A97B71C6A86AD00A00560 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 069A97D41C6A897900A00560 /* Hello.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
069A97B91C6A86AD00A00560 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 069A97D41C6A897900A00560 /* Hello.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = Hello/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.google.j2objc.Hello;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
069A97BA1C6A86AD00A00560 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 069A97D41C6A897900A00560 /* Hello.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = Hello/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.google.j2objc.Hello;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
069A979C1C6A86AD00A00560 /* Build configuration list for PBXProject "Hello" */ = {
isa = XCConfigurationList;
buildConfigurations = (
069A97B61C6A86AD00A00560 /* Debug */,
069A97B71C6A86AD00A00560 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
069A97B81C6A86AD00A00560 /* Build configuration list for PBXNativeTarget "Hello" */ = {
isa = XCConfigurationList;
buildConfigurations = (
069A97B91C6A86AD00A00560 /* Debug */,
069A97BA1C6A86AD00A00560 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 069A97991C6A86AD00A00560 /* Project object */;
}
25 changes: 25 additions & 0 deletions examples/Hello/Hello/AppDelegate.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//
// AppDelegate.h
// Hello
//

#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property(strong, nonatomic) UIWindow *window;

@end

Loading

0 comments on commit f894e33

Please sign in to comment.