Commit Graph

443 Commits

Author SHA1 Message Date
Watson
ca35b95be2 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-13 09:29:06 +09:00
Laurent Sansonetti
a6de0f4021 [OSX] add app.codesign_for_release (default to true) which controls if we need to code-sign for build:release 2013-12-13 09:28:31 +09:00
Laurent Sansonetti
7d058064e7 in case app.resource_dirs contain duplicated entries, don't freak out 2013-12-13 09:28:25 +09:00
Eloy Durán
4e9bb5f89e [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-13 09:10:22 +09:00
Watson
4a9673e238 Merge pull request #144 from toshiwo/support_dynamic_name_directory
support dynamic name directory in template
2013-11-25 06:27:33 -08:00
toshiwo
02cf8d5e1d support nested directory
* https://github.com/HipByte/RubyMotion/pull/144#issuecomment-29203864
2013-11-25 23:18:57 +09:00
toshiwo
231547a62b support dynamic name directory in template 2013-11-25 22:31:12 +09:00
Watson
2148019d6f 2.16 2013-11-23 00:40:50 +09:00
Watson
3bd065e320 2.15 2013-11-20 23:44:30 +09:00
Eloy Durán
22dac42700 [spec] Deprecate block to the tests method of the view test helpers. 2013-11-20 23:43:40 +09:00
Eloy Durán
440cfc9d25 [rake] Raise error if cleaning does not succeed.
Fixes https://hipbyte.freshdesk.com/helpdesk/tickets/1359.
2013-11-20 23:42:36 +09:00
Watson
f01f8a240f move special configuration for iOS/OSX platform from gen_bridge_metadata() 2013-11-20 23:41:11 +09:00
Watson
8a86ff3ae6 [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:17:26 +09:00
Laurent Sansonetti
ab8e73f9d0 only capture stdout if install_only is set (used by the profile task), fixes the output of 'rake device' 2013-11-07 23:13:18 +09:00
Watson
f593ce727b 2.14 2013-11-04 08:36:11 +09:00
Watson
fd9d9c3753 2.13 2013-11-03 21:17:56 +09:00
Laurent Sansonetti
666d4bdd67 add a hidden variable to force symbol strip (ex. rake device __strip__=1) 2013-11-03 21:17:14 +09:00
Eloy Durán
091b6b399f Temp work around issue with UIDeviceFamily for release/profile.
The Info.plist is forced to be recreated on each build and uses ints for
UIDeviceFamily when profiling and strings otherwise.

http://hipbyte.myjetbrains.com/youtrack/issue/RM-305
2013-11-03 21:16:54 +09:00
Watson
464cced795 fix RM-305
http://hipbyte.myjetbrains.com/youtrack/issue/RM-305
2013-11-02 23:04:15 +09:00
Watson
8ef4dd6e82 2.12 2013-11-02 11:49:43 +09:00
Eloy Durán
791a18759b [profiler] Configure Instruments to optionally launch specific template. 2013-11-02 11:46:41 +09:00
Eloy Durán
8a88ae803e [profiler] Replace templates list with hardcoded lists. 2013-11-02 11:46:34 +09:00
Eloy Durán
01b337b57b [profiler] Add tasks to list available instruments templates. 2013-11-02 11:46:29 +09:00
Eloy Durán
2783dfcc8b [profiler] Make the OS X shortcut task use development mode. 2013-11-02 11:46:23 +09:00
Eloy Durán
8bc831eb26 [profiler] Inherit ENV from parent process. 2013-11-02 11:46:16 +09:00
Eloy Durán
3b16d55db4 [profiler] Add shortcut for OS X profile:release. 2013-11-02 11:46:10 +09:00
Eloy Durán
06fdd73853 [profiler] Add OS X tasks for development and release mode. 2013-11-02 11:46:05 +09:00
Laurent Sansonetti
c181e10e92 add 'rake profile' task as a shortcut to 'rake profile:simulator' 2013-11-02 11:45:59 +09:00
Eloy Durán
4001ffff84 [profiler] Properly describe OS X rake task. 2013-11-02 11:45:53 +09:00
Eloy Durán
e9b72445f4 Cleanup. 2013-11-02 11:45:47 +09:00
Eloy Durán
40decde446 [profiler] Pass arguments to app on launch. 2013-11-02 11:45:42 +09:00
Eloy Durán
e7d290eb8e [profiler] Refactor rake tasks into the Config and Builder classes. 2013-11-02 11:45:35 +09:00
Eloy Durán
071c243a77 [iOS config] UIDeviceFamily Info.plist entry should be integer. 2013-11-02 11:45:29 +09:00
Eloy Durán
787ee51e6d [profiler] Add task to start profiling on a iOS device. 2013-11-02 11:45:22 +09:00
Eloy Durán
f52a194f2b [profiler] Add tasks to run an OS X app through Instruments. 2013-11-02 11:45:13 +09:00
Eloy Durán
89b3db7222 [profiler] Generate a config plist for Instruments.app 2013-11-02 11:45:07 +09:00
Laurent Sansonetti
77cdfbc064 ship only one libmacruby-repl.dylib file per platform, the one that has been built with the lowest deployment target (4.3 for ios and 10.7 for osx) 2013-11-02 11:44:28 +09:00
Eloy Durán
3873adbab7 [profiler] Use known paths to tools. 2013-11-02 11:43:14 +09:00
Eloy Durán
6977940530 [profiler] Make it a bit more readable. 2013-11-02 11:43:08 +09:00
Eloy Durán
0fb2bd1a41 [profiler] Start headless instruments session on running app. 2013-11-02 11:43:03 +09:00
Watson
01906ff0be fix a bug where `motion update' causes an error when display the changelog on OSX 10.9
https://groups.google.com/forum/?fromgroups#!topic/rubymotion/HXO7wRn1Cuw

`motion' command uses system bundled Ruby.
If run `motion' command without local environment variable (ex LC_ALL or LANG),
Ruby 2.0 which is bundled in 10.9 might cause encoding error.
2013-11-02 11:42:55 +09:00
Eloy Durán
70ecb3078a [spec] Don't set output type unti very last moment. 2013-11-02 11:42:41 +09:00
Watson
15780d2e22 specify the optimization level when compile the RubyMotion boot codes or vendor codes 2013-11-02 11:42:33 +09:00
Watson
6d3ef3ecd4 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-11-02 11:41:40 +09:00
Laurent Sansonetti
93d4c37408 [OSX] optional #eval support (experimental) 2013-11-02 11:41:11 +09:00
Laurent Sansonetti
217c82f020 print an error in case we try to build for a certain RubyMotion platform that isn't supported (data directory doesn't exist) 2013-11-02 11:41:02 +09:00
Eloy Durán
00b3b510dd [BS] Make use of our own bin/gen_bridge_metadata during builds. 2013-11-02 11:40:07 +09:00
Watson
0ac6982ba2 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:46:01 +09:00
Watson
bfce458aee 2.11 2013-10-15 21:24:07 +09:00
Watson
8edd2ff018 just remove the path which ends with `.lproj'
This patch will
 - remove "./resources/en.lproj" path
 - accept "./resources/en.lproj/MainStoryboard.storyboardc"

If we accepted "./resources/en.lproj",
it will allow to copy all the files in "./resources/en.lproj" directory.
However, we need to reject "./resources/en.lproj/MainStoryboard.storyboard".

So, we just remove "./resources/en.lproj" path.
2013-10-15 21:23:15 +09:00