Laurent Sansonetti
ffe4545eec
osx: only build for the native arch in development mode
2013-05-10 00:44:07 +09:00
Laurent Sansonetti
e0d3cc0e4e
osx 'rake spec' task
2013-05-10 00:43:57 +09:00
Watson
16fe9818d7
abort if build directory is not writable.
2013-05-10 00:43:52 +09:00
Watson
d3f7381361
check whether build directory is writable. if it is not writable, use ./build in project directory as in the past
2013-05-10 00:43:47 +09:00
Laurent Sansonetti
e59a120661
use NSApplicationMain() instead of -[NSApplication run] in order to honor main nib file loading (if it exists)
2013-05-10 00:43:41 +09:00
Laurent Sansonetti
5802a1ba83
move icons, prerendered_icon and fonts to ios config, add icon to osx config
2013-05-10 00:43:35 +09:00
Laurent Sansonetti
83eb68f66b
app.vendor_project how honors :bridgesupport_{cflags,exceptions} options
2013-05-10 00:43:26 +09:00
Laurent Sansonetti
8ed8551699
'motion ri' now honors PAGER env variable
2013-05-10 00:43:20 +09:00
Laurent Sansonetti
ed71b653c2
motion create usage will now print available templates
2013-05-10 00:43:15 +09:00
Watson
9b9daa2c85
remove spaces
2013-05-10 00:43:09 +09:00
Watson
8e6d48c697
osx: import Cocoa/Cocoa.h in vendor.pch for mac
2013-05-10 00:42:10 +09:00
Laurent Sansonetti
01ed2d517a
add command-line plugins
2013-05-10 00:41:25 +09:00
Watson
69fffd0844
convert string to integer
2013-05-10 00:41:02 +09:00
Watson
fea6853739
osx: check the osx version to detect default SDK
2013-05-10 00:40:57 +09:00
Watson
6c3ab0e10d
fix a regression of 5a39c5f381
2013-05-10 00:40:47 +09:00
Laurent Sansonetti
1f92830511
allow 3rd-party templates to be located in ~/Library/RubyMotion/template
2013-05-10 00:40:40 +09:00
Laurent Sansonetti
1312f9369e
osx: i386 support
2013-05-10 00:40:28 +09:00
Watson
548e718782
osx: load all depended frameworks
2013-05-10 00:40:23 +09:00
Watson
de97ec8651
delete trailing whitespaces
2013-05-10 00:40:11 +09:00
Laurent Sansonetti
b26c668ece
quote executable
2013-05-10 00:40:00 +09:00
Laurent Sansonetti
721c171090
add osx repl
2013-05-10 00:39:31 +09:00
Watson
eb6bdd2caa
refactor
2013-05-10 00:38:45 +09:00
Watson
730301ba57
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-05-10 00:38:41 +09:00
Watson
6f3ef17904
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-05-10 00:38:35 +09:00
Watson
3015d8cc6b
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-05-10 00:38:28 +09:00
Watson
79ad1620dc
forget to add a passing argument into another build_file.call
2013-05-10 00:38:22 +09:00
Laurent Sansonetti
2cf2cf569a
more work on osx template: create empty window, add Credits.rtf file
2013-05-10 00:37:29 +09:00
Laurent Sansonetti
2ad0b54052
mark file as utf-8
2013-05-10 00:37:24 +09:00
Watson
b1298ce3e1
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-05-10 00:37:12 +09:00
Watson
bac8d6bf34
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-05-10 00:37:05 +09:00
Laurent Sansonetti
e371666883
add menu
2013-05-10 00:36:04 +09:00
Laurent Sansonetti
a9df39ba8f
fix projects containing space characters
2013-05-10 00:35:56 +09:00
Laurent Sansonetti
740d17002e
add debug mode
2013-05-10 00:35:44 +09:00
Watson
66d77079df
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-05-10 00:35:37 +09:00
Watson
b90bb19a0d
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-05-10 00:34:57 +09:00
Watson
8c54931662
use i386 binary Ruby when build app for ARM
2013-05-10 00:34:33 +09:00
Laurent Sansonetti
06c18cc293
mac port
2013-05-10 00:33:46 +09:00
Watson
7a16c3cdf1
change the template directory path
2013-05-10 00:33:01 +09:00
Watson
4f944cfa6b
add a feature which support the template
2013-05-10 00:32:31 +09:00
Watson
ddacbaf655
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-23 14:33:55 +09:00
Watson
aae72ad1ed
display error message if does not exist spec files in spec directory
...
http://hipbyte.myjetbrains.com/youtrack/issue/RM-90
2013-04-13 14:26:24 +09:00
Watson
b05fb73345
Merge pull request #82 from clayallsopp/file_paths
...
Change file dependency regex to accept absolute paths
2013-04-05 00:23:40 -07:00
Clay Allsopp
0a85c61702
change file dependency regex to accept absolute paths
2013-04-04 19:24:49 -07:00
Watson
1b643606e6
1.35
2013-04-04 22:27:52 +09:00
Watson
bb524139d5
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:27:26 +09:00
Watson
2793334edf
pass "-ObjC" flags to linker to load Objective-C class when "-force_load" is not used
2013-03-16 14:44:48 +09:00
Watson
630d88043f
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:26:53 +09:00
Watson
bb1c4fb6be
Merge pull request #71 from kastiglione/succinct-spec-files
...
Make _spec suffix optional when running `rake spec files=...`
2013-03-13 21:28:22 -07:00
Watson
91d74f4240
Merge pull request #68 from thefrontiergroup/display_exception_messages
...
Include exception message in bacon error output
2013-03-13 21:22:11 -07:00
Dave Lee
6cccf4a46f
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-13 11:46:34 -06:00