Commit Graph

44 Commits

Author SHA1 Message Date
Laurent Sansonetti
274b13770e move app.version from config to xcodeconfig 2014-05-20 12:01:08 +02:00
Laurent Sansonetti
51cd103453 move versionized_build_dir from config to xcodeconfig 2014-05-19 16:27:14 +02:00
Laurent Sansonetti
10499593c4 move the `rake clear’ logic to platform-specific config files 2014-05-15 20:04:17 +02:00
Laurent Sansonetti
656af65680 move #vendor_project to xcode config, since it won’t work on android 2014-05-15 20:04:17 +02:00
Laurent Sansonetti
f29d89f89a add magic encoding comments to all ruby source files 2014-03-05 12:20:20 +01:00
Eloy Durán
c829719530 [CodeSign] Cleanup. 2014-02-27 16:11:47 +01:00
Eloy Durán
0b2a392f98 [CodeSign] Improve cert finding by only checking codesign identities.
Also move the logic out into a separate util module.

Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-399.
2014-02-27 16:01:20 +01:00
Watson
1f2f3b0c4f Revert "fix where Boxed#new doesn't work for GLKKit structure."
This reverts commit ac89cf6b4b.

http://hipbyte.myjetbrains.com/youtrack/issue/RM-342
Because this patch causes a conflict between method's structure signature and bridgesupport's structure signature
2013-12-11 17:14:46 +09:00
Eloy Durán
c761aefa58 [vendor] Ensure that all cflags are properly quoted.
Before it looked like the `-isysroot \"#{sdk_path}\"` part of the cflags
would terminate the string passed to the `--cflags` option.

Now all the contents of the `--cflags` option is quoted using
single-quotes instead.
2013-12-05 12:22:22 +01:00
Watson
d963c6489d move special configuration for iOS/OSX platform from gen_bridge_metadata() 2013-11-11 10:16:53 +09:00
Watson
51ac31a777 [OSX] fix a bug on OSX platform where compiler flags for iOS are passed when it generates bridgesupport file for vendor library
http://hipbyte.myjetbrains.com/youtrack/issue/RM-315
2013-11-11 08:11:16 +09:00
Eloy Durán
3207c10cfb [profiler] Configure Instruments to optionally launch specific template. 2013-11-01 14:58:22 +01:00
Eloy Durán
ca1aee4a81 [profiler] Inherit ENV from parent process. 2013-10-31 22:46:27 +01:00
Eloy Durán
19e9bddef3 [profiler] Pass arguments to app on launch. 2013-10-31 17:50:47 +01:00
Eloy Durán
61e9a65534 [profiler] Refactor rake tasks into the Config and Builder classes. 2013-10-31 17:46:22 +01:00
Watson
52fd3f6ac5 specify the optimization level when compile the RubyMotion boot codes or vendor codes 2013-10-23 14:02:32 +09:00
Watson
ac89cf6b4b fix where Boxed#new doesn't work for GLKKit structure.
http://hipbyte.myjetbrains.com/youtrack/issue/RM-293

GLKKit structures are declared as the following.
If use union type when generate bridgesupport,
it is not output the definition of a data structure using <struct> tag into bridgesupport file.
So, Boxed#new does not work for these structure.

    #if defined(__STRICT_ANSI__)
    struct _GLKMatrix4
    {
        float m[16];
    } __attribute__((aligned(16)));
    typedef struct _GLKMatrix4 GLKMatrix4;
    #else
    union _GLKMatrix4
    {
        struct
        {
            float m00, m01, m02, m03;
            float m10, m11, m12, m13;
            float m20, m21, m22, m23;
            float m30, m31, m32, m33;
        };
        float m[16];
    } __attribute__((aligned(16)));
    typedef union _GLKMatrix4 GLKMatrix4;
    #endif
2013-10-22 13:22:52 +09:00
Eloy Durán
23165c9edf [BS] Make use of our own bin/gen_bridge_metadata during builds. 2013-10-18 17:29:30 +02:00
Watson
95c094df9a add support to compile the Objective-C source codes which uses Modules syntax in `app.vendor_project' with Xcode 5.
http://clang.llvm.org/docs/Modules.html

This patch supports support Objective-C Modules when compile ObjC source codes without xcodeproj file, like
https://github.com/Watson1978/RubyMotionKaigi2013
2013-10-18 09:39:38 +09:00
Watson
e0183179c0 fix the link error of "ld: framework not found IOKit" with "rake device" if use "app.framework_search_paths"
http://hipbyte.myjetbrains.com/youtrack/issue/RM-283
2013-10-15 00:38:11 +09:00
Eloy Durán
cd9b1a3404 [xcassets] Show compile info to user when not in verbose mode. 2013-10-14 15:56:11 +02:00
Eloy Durán
d22f82ebb0 [xcassets] Move iOS/OS X specific behavior back to configs. 2013-10-14 13:52:32 +02:00
Eloy Durán
3be82b061b [xcassets] Use actool’s Info.plist output instead of reading JSON. 2013-10-11 20:20:30 +02:00
Eloy Durán
369c15e0e3 [xcassets] Make asset compilation and app icon config work on OS X. 2013-10-11 18:50:56 +02:00
Eloy Durán
b331fab440 [xcassets] Copy and configure the app icons for iOS. 2013-10-10 19:57:48 +02:00
Laurent Sansonetti
7ded32cf3b escape --isysroot argument 2013-09-20 17:35:29 +02:00
Watson
8690a34289 generate 64bit type in bridgesupport if iOS SDK >= 7.0 2013-09-12 13:34:38 +09:00
Laurent Sansonetti
54914a528a app.vendor_projects is defined in config.rb, not xcode_config.rb 2013-08-20 18:01:39 +02:00
Laurent Sansonetti
c0fdf58e1a add support for spritekit atlas files 2013-08-16 22:37:24 +02:00
Laurent Sansonetti
b3ccf122ff app.short_version defaults to app.version 2013-08-08 01:01:22 +02:00
Andrew Babichev
6ae8b7b23e String deployment_target and sdk_version comparison fix 2013-07-13 12:05:44 +09:00
Watson
a8a76ad537 fix where it does not generate 64bit type into brigesupport in 3rd-party library on MacOSX platform
http://hipbyte.myjetbrains.com/youtrack/issue/RM-192
2013-07-10 11:03:39 +09:00
Laurent Sansonetti
0993cb0cec move resources_dirs into the main config object 2013-06-19 12:40:18 +02:00
Matt Garriott
cf160714e4 Fix build expression for Xcode 3.x 2013-06-17 07:52:44 +09:00
Laurent Sansonetti
d9f670252e osx: add 'rake archive' tasks, refactor the builder archive/codesign code 2013-05-07 16:51:17 +02:00
Watson
0dd3869ff3 fix an error when generate bridgesupport file
Fix the following error:

$ rake --trace
require 'lib/motion/project' is deprecated, please require 'lib/motion/project/template/ios' instead
** Invoke default (first_time)
** Invoke simulator (first_time)
** Invoke build:simulator (first_time)
** Execute build:simulator
RUBYOPT='' /usr/bin/gen_bridge_metadata --format complete --no-64-bit --cflags "  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -miphoneos-version-min=6.1 -D__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__=60100 -I. -I'.'" "TestFlight.h" -o "TestFlight.bridgesupport" -e
Received exception: missing argument: -e:
2013-05-07 13:29:21 +09:00
Laurent Sansonetti
1c09307fd6 move icons, prerendered_icon and fonts to ios config, add icon to osx config 2013-05-05 20:41:39 +02:00
Laurent Sansonetti
112ed84d70 app.vendor_project how honors :bridgesupport_{cflags,exceptions} options 2013-05-05 01:03:52 +02:00
Watson
287a19f38e osx: check the osx version to detect default SDK 2013-05-04 00:30:43 +09:00
Laurent Sansonetti
9b1763c9e6 Merge branch 'master' of github.com:lrz/RubyMotion 2013-05-02 13:52:20 +02:00
Laurent Sansonetti
81479771f2 osx: i386 support 2013-05-02 13:51:28 +02:00
Watson
dca2549d95 osx: load all depended frameworks 2013-05-02 18:37:48 +09:00
Watson
6f48fd5d0b change the build directory for outside files of project
This changing will introduce:

1. When run 'rake clean', the object files of gem is not removed. To reduce the time when rebuild the project.
2. Across multiple projects that use the same gem, this changing will share the object files.
3. When update RubyMotion with 'motion update', it will remove the object files to clean up disk space.
2013-04-25 22:23:19 +09:00
Laurent Sansonetti
105a915f3d mac port 2013-04-25 02:26:56 +02:00