Watson
35acf83ef7
remove spaces
2013-05-05 02:51:24 +09:00
Watson
0ef2142f9a
osx: import Cocoa/Cocoa.h in vendor.pch for mac
2013-05-05 02:48:21 +09:00
Laurent Sansonetti
c4fc96bff3
add command-line plugins
2013-05-04 18:59:53 +02:00
Watson
6f74fd29ef
convert string to integer
2013-05-04 09:10:08 +09:00
Watson
287a19f38e
osx: check the osx version to detect default SDK
2013-05-04 00:30:43 +09:00
Watson
4304aaadc9
fix a regression of 5a39c5f381
2013-05-03 05:31:31 +09:00
Laurent Sansonetti
4897d5fb16
allow 3rd-party templates to be located in ~/Library/RubyMotion/template
2013-05-02 20:36:38 +02: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
e4ebfcdb4c
delete trailing whitespaces
2013-04-30 08:36:43 +09:00
Laurent Sansonetti
4df5b0a356
quote executable
2013-04-30 00:21:27 +02:00
Laurent Sansonetti
8f91c9a052
Merge branch 'master' of github.com:lrz/RubyMotion
2013-04-29 21:07:54 +02:00
Laurent Sansonetti
c7152c8143
add osx repl
2013-04-29 21:07:39 +02:00
Watson
0c10064426
refactor
2013-04-30 01:24:30 +09:00
Watson
0410711198
more fix in detecting file dependencies
...
if add the constant name into @defined and @referred in #on_const_path_ref,
it might not detect dependencies.
2013-04-29 22:05:28 +09:00
Watson
8591584570
make sure to create a Resources directory for mac
...
Fix the following error:
$ motion create hello --template=osx
$ cd hello
$ rm -rf resources
$ rake
Build ./build/MacOSX-10.8-Development
Compile ./app/app_delegate.rb
Compile ./app/menu.rb
Create ./build/MacOSX-10.8-Development/hello.app/Contents
Create ./build/MacOSX-10.8-Development/hello.app/Contents/MacOS
Link ./build/MacOSX-10.8-Development/hello.app/Contents/MacOS/hello
Create ./build/MacOSX-10.8-Development/hello.app/Contents/Info.plist
Create ./build/MacOSX-10.8-Development/hello.app/Contents/PkgInfo
rake aborted!
No such file or directory - ./build/MacOSX-10.8-Development/hello.app/Contents/Resources
2013-04-29 12:28:09 +09:00
Watson
027df612ab
Revert "make sure to create a Resources directory for mac"
...
This reverts commit 71ed8ce9b3 .
This changing causes the following error:
% mkdir -p resources/en.lproj
% touch resources/en.lproj/InfoPlist.strings
% rake
Build ./build/iPhoneSimulator-6.1-Development
Compile ./app/app_delegate.rb
Create ./build/iPhoneSimulator-6.1-Development/tt.app
Link ./build/iPhoneSimulator-6.1-Development/tt.app/tt
Create ./build/iPhoneSimulator-6.1-Development/tt.app/Info.plist
Create ./build/iPhoneSimulator-6.1-Development/tt.app/PkgInfo
Copy ./resources/Default-568h@2x.png
Copy ./resources/en.lproj/InfoPlist.strings
rake aborted!
2013-04-29 12:25:56 +09:00
Watson
2bbc2752cd
forget to add a passing argument into another build_file.call
2013-04-28 20:23:28 +09:00
Laurent Sansonetti
c252ba9b3a
Merge branch 'master' of github.com:lrz/RubyMotion
2013-04-27 16:10:57 +02:00
Laurent Sansonetti
611d52427d
more work on osx template: create empty window, add Credits.rtf file
2013-04-27 16:10:13 +02:00
Laurent Sansonetti
2d9d4aa487
mark file as utf-8
2013-04-27 16:09:35 +02:00
Watson
71ed8ce9b3
make sure to create a Resources directory for mac
...
Fix the following error:
$ motion create hello --template=osx
$ cd hello
$ rm -rf resources
$ rake
Build ./build/MacOSX-10.8-Development
Compile ./app/app_delegate.rb
Compile ./app/menu.rb
Create ./build/MacOSX-10.8-Development/hello.app/Contents
Create ./build/MacOSX-10.8-Development/hello.app/Contents/MacOS
Link ./build/MacOSX-10.8-Development/hello.app/Contents/MacOS/hello
Create ./build/MacOSX-10.8-Development/hello.app/Contents/Info.plist
Create ./build/MacOSX-10.8-Development/hello.app/Contents/PkgInfo
rake aborted!
No such file or directory - ./build/MacOSX-10.8-Development/hello.app/Contents/Resources
2013-04-27 11:02:12 +09:00
Watson
872683e177
pass the build directory as block parameter
...
Proc does not introduce a variable as Proc's scope.
When build process is worked in parallel, the value of the variable is updated in the another build process.
2013-04-27 10:05:23 +09:00
Laurent Sansonetti
2696f6d4e0
add menu
2013-04-27 01:50:06 +02:00
Laurent Sansonetti
850c9ce0ba
fix projects containing space characters
2013-04-27 01:49:44 +02:00
Laurent Sansonetti
31af5b87fc
Merge branch 'master' of github.com:lrz/RubyMotion
2013-04-26 17:15:24 +02:00
Laurent Sansonetti
a03cb908e4
add debug mode
2013-04-26 17:14:02 +02:00
Watson
fcd144d3a9
fix a bug in detecting file dependencies which cannot detect dependency when declare class/module with like "class XXX::YYY"
...
use @defined :
module XXX::YYY
...
end
use @referred :
class ZZZ
include XXX::YYY
...
end
add the value to @defined and @referred both,
because build system will cut the cyclic references.
2013-04-26 23:03:51 +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
Watson
c3574eb3c2
use i386 binary Ruby when build app for ARM
2013-04-25 17:35:37 +09:00
Laurent Sansonetti
105a915f3d
mac port
2013-04-25 02:26:56 +02:00
Watson
cd5f87bfac
fix a bug in build system where it would cause "stack level too deep" error
...
http://hipbyte.myjetbrains.com/youtrack/issue/RM-112
1) specify file dependencies in Rakefile with `app.files_dependencies' by user.
2) detect file dependencies by build system
When merge 1) and 2), it might cause a cyclic references.
So, we will use 1) to detect cyclic references.
2013-04-22 23:48:09 +09:00
Watson
126d006625
change the template directory path
2013-04-19 23:15:03 +09:00
Watson
990e352d62
add a feature which support the template
2013-04-19 23:02:49 +09:00
Watson
34e50e9036
display error message if does not exist spec files in spec directory
...
http://hipbyte.myjetbrains.com/youtrack/issue/RM-90
2013-04-13 14:24:29 +09:00
Clay Allsopp
a38f066148
change file dependency regex to accept absolute paths
2013-04-05 17:25:20 +09:00
Watson
42352abb44
fix a bug in build system which does not load all depended frameworks
...
http://hipbyte.myjetbrains.com/youtrack/issue/RM-97
2013-04-02 12:01:40 +09:00
Watson
61b94316f3
pass "-ObjC" flags to linker to load Objective-C class when "-force_load" is not used
2013-03-16 14:44:09 +09:00
Watson
4d5215a07c
add :force_load option into configuration of `app.vendor_project'
...
There are 3rd-party library which would trigger "duplicate symbol" error at compile time.
It will be useful in such libraries when specify false in :force_load option.
When specify true in this option (by default), it behaves in the same manner as before.
Usage:
app.vendor_project('vendor/OAuth2Client',
:static,
:force_load => false,
:headers_dir => 'Sources/OAuth2Client'
....
2013-03-15 11:05:17 +09:00
Dave Lee
355cb36f1f
Make _spec suffix optional when running rake spec files=...
...
With this change, the following invocations are equivalent:
rake spec files=integration_spec
and
rake spec files=integration
2013-03-14 13:24:15 +09:00
Steven Webb
a79c7e3d27
Include exception message in bacon error output
2013-03-14 13:16:45 +09:00
Watson
95b6055b67
rename method
2013-02-28 09:02:30 +09:00
Watson
a24596e830
fix a bug in build system which updated resource files are not copied
2013-02-27 23:34:38 +09:00
Watson
1466028bac
slightly delay the start of spec execution
...
Because #tap method does not work when use a high performance machine
2013-02-26 13:51:09 +09:00
Watson
5573cc442a
fix a bug which iOS simulator will be re-launched at every time with `rake'
...
RM-52 Should not re-launch iOS simulator at every time with `rake'
2013-02-26 13:31:00 +09:00
Watson
08341aef38
fix a bug which does not launch iOS simulator when `app.xcode_dir' is specified a path other than the '/Applications' folder
2013-02-26 11:14:22 +09:00
Watson
b17e5bb7e4
`app.resources_dir' will be deprecated
2013-02-26 01:00:51 +09:00
Watson
fa28dd86e3
fix a bug which cannot build an app when `app. xcode_dir' contains spaces
...
RM-40 Can't build with spaces in xcode.app path
2013-02-25 18:22:30 +09:00
Watson
505926d12e
fix variable name
2013-02-25 15:56:22 +09:00