Commit Graph

157 Commits

Author SHA1 Message Date
Eloy Durán
3a45e058c6 [builder] Quote framework search paths to guard against spaces. 2014-05-08 19:39:43 +02:00
Eloy Durán
1179ac6373 [builder] Do not try to compile completely empty .strings files.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-483
2014-05-01 12:52:17 +02:00
Eloy Durán
2c32806de1 [builder] Also compile .strings files inside other bundles. 2014-04-17 16:23:55 +02:00
Hwee-Boon Yar
165f30fd45 [builder] Compile .strings resource files as binary plists.
Signed-off-by: Eloy Durán <eloy.de.enige@gmail.com>
2014-04-17 16:23:55 +02:00
Watson
357b1bd8b1 Revert "use a cached file dependencies in order to reduce the build time"
This reverts commit ee514286cf.

Now, detecting build order is much faster without cache by previous commit.
So, let's revert this commit.
2014-04-12 13:51:24 +09:00
Watson
ee514286cf use a cached file dependencies in order to reduce the build time
http://hipbyte.myjetbrains.com/youtrack/issue/RM-466

* before
  % time rake
  ... snip ...
  rake  18.01s user 1.64s system 89% cpu 21.877 total

* after
  % time rake
  ... snip ...
  rake  2.74s user 1.41s system 119% cpu 3.460 total
2014-04-10 17:15:08 +09:00
Laurent Sansonetti
f29d89f89a add magic encoding comments to all ruby source files 2014-03-05 12:20:20 +01:00
Andrew Larssen
aa9cdf5c98 Fix hard coded path that does not honour xcode-select in builder.
This is causing problems building amd64 iOS 7.1 using Xcode5.1-Beta3 as it is not in the usual path.
2014-01-17 23:10:32 +09:00
Eloy Durán
8d9fc8082a Fix builder when not building for OS X. 2014-01-15 14:50:50 +01:00
Eloy Durán
9fe2cad556 [OSX] Add external_frameworks config variable.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-254
2014-01-15 13:20:56 +01:00
Laurent Sansonetti
76c6c2c7f6 pass the target platform to the compiler 2014-01-10 23:54:36 +01:00
Watson
aacac95be9 fix a bug in build system that app cannot be built with Ruby 2.1 when it would use UTF-8 as app name
http://hipbyte.myjetbrains.com/youtrack/issue/RM-370
2014-01-09 10:44:17 +09:00
Watson
4367f3bf3c improve build system in order to compile spec files in parallel as much as possible
So far, RubyMotion has two phase in compile when run spec (1. compile app files, 2. compile spec files).
it make idle cpu cores when finished to compile app files (before starting to compile spec files).
2013-12-27 14:05:49 +09:00
Laurent Sansonetti
bd8536dbcc libmacruby -> librubymotion 2013-12-24 18:25:19 +01:00
Laurent Sansonetti
7c758a43a7 in case app.resource_dirs contain duplicated entries, don't freak out 2013-12-09 15:03:11 +01:00
Laurent Sansonetti
cf145c8df4 add a hidden variable to force symbol strip (ex. rake device __strip__=1) 2013-11-01 17:50:15 +01:00
Eloy Durán
61e9a65534 [profiler] Refactor rake tasks into the Config and Builder classes. 2013-10-31 17:46:22 +01:00
Laurent Sansonetti
edcdf29ed6 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-10-30 23:54:57 +01:00
Laurent Sansonetti
b192251af0 [OSX] optional #eval support (experimental) 2013-10-21 02:12:49 +02:00
Laurent Sansonetti
5a6924c933 print an error in case we try to build for a certain RubyMotion platform that isn't supported (data directory doesn't exist) 2013-10-20 18:17:37 +02:00
Watson
ba2670895d 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 09:58:28 +09:00
Eloy Durán
6d8488a674 [xcassets] All files that are to be preserved are in preserve_resources. 2013-10-14 15:59:24 +02: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
12972f9271 [xcassets] Extract actool warnings and propagate to the user. 2013-10-14 15:49:57 +02:00
Eloy Durán
105d98c3d8 [xcassets] Simplify actool output parsing and only print in verbose mode. 2013-10-14 15:17:19 +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
f84096688a [xcassets] Use output of actool to determine compiled assets to preserve. 2013-10-11 20:34:40 +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
2490d6c0a2 [xcassets] No longer copy icons ourselves on iOS. 2013-10-11 19:09:20 +02:00
Eloy Durán
dc30e06639 [xcassets] Fix preservation of app icons on iOS. 2013-10-11 18:55:21 +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
Eloy Durán
5678c6c88f [xcassets] Do not include uncompiled asset bundles in the product. 2013-10-10 19:57:41 +02:00
Eloy Durán
fb53d3e2f0 [xcassets] actool uses path info from bundle unless full build path is specified. 2013-10-10 17:10:32 +02:00
Eloy Durán
713ec6f38a [xcassets] Don’t delete compiled assets from the app bundle. 2013-10-10 16:58:41 +02:00
Eloy Durán
e22816c000 [xcassets] Compile resources_dirs/*.xcassets into the app bundle. 2013-10-10 16:54:11 +02:00
Laurent Sansonetti
1742f1625b more arm64 support 2013-09-11 18:08:45 +02:00
Laurent Sansonetti
ca412676cf no longer need llc 2013-09-09 00:03:35 +02:00
Laurent Sansonetti
6da5c7f4ec now always use clang 2013-09-08 03:06:48 +02:00
Hwee-Boon Yar
f99852081d Fix: platform names generated in Info.plist (DTSDKName and DTPlatformName) 2013-09-07 00:07:02 +09:00
Watson
39fe258508 fix a bug in build system where it cannot build app with Korean as app.name
http://hipbyte.myjetbrains.com/youtrack/issue/RM-247

1)
  String#encode cannot convert from UTF8-MAC to UTF-8 propery.
  Looks like iconv library handles it, however Ruby 2.0 does not bundle iconv library.
  So, we need to bundle the tool/library to convert the encoding using the Objective-C API in order to convert reliably.

  If we bundled it as Ruby C extension library, it will not work between 1.8/1.9/2.0 because Ruby 1.8/1.9/2.0 have not binary compatibility.
  So, we need to bundle three binaries for 1.8/1.9/2.0.

  Therefore, we bundles an executable binary to convert the encoding.

2)
  If we converted from NFD to NFC, it might not match between original NFC and converted NFC even if we used Objective-C API.
  We should normalized with NFD where it handles the string which retrived from filesystem.
2013-09-02 14:28:51 +09:00
Laurent Sansonetti
ab276a5d18 build the bs flags only once 2013-08-20 18:01:21 +02:00
Laurent Sansonetti
c0fdf58e1a add support for spritekit atlas files 2013-08-16 22:37:24 +02:00
Laurent Sansonetti
9e8b17013c osx: only strip x86_64 symbols 2013-08-09 16:44:28 +02:00
Watson
6164f93ed8 improve the build system in order to compile spec files with parallel 2013-07-24 21:48:11 +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
1047948afc rake build now honors the 'keep_temps' env variable, if set, llvm bitcode and asm files will not be deleted from the build directory 2013-07-04 15:11:36 +02:00
Watson
1d19b3be22 fix a bug in `rake device' where it could not build app which has target to less than iOS 7.0
http://hipbyte.myjetbrains.com/youtrack/issue/RM-182

add `-stdlib=libstdc++' for linker
2013-06-26 14:51:25 +09:00
Watson
484aca3a66 Revert "fix a bug in `rake device' where it could not build app which has target to less than iOS 7.0"
This reverts commit d3e1ebac00.
2013-06-26 14:49:39 +09:00
Watson
d3e1ebac00 fix a bug in `rake device' where it could not build app which has target to less than iOS 7.0
http://hipbyte.myjetbrains.com/youtrack/issue/RM-182

add `-stdlib=libstdc++' for linker
2013-06-26 12:41:42 +09:00