igor-makarov / xcake

:cake: Describe Xcode projects in a human readable format and (re)generate one on demand.
MIT License
632 stars 48 forks source link

Build rule support? #180

Closed Piasy closed 6 years ago

Piasy commented 6 years ago

Thanks for such a great tool!

I'm using J2ObjC, which need define custom build rule, does xcake support define custom build rule in Cakefile?

Thanks!

jcampbell05 commented 6 years ago

@Piasy yes you can read about it here https://github.com/jcampbell05/xcake/blob/master/docs/Cakefile.md#shell-script-build-phase

Piasy commented 6 years ago

Thanks for your quick reply, after a lot of google search and test, it seems that build phase and build rule are different.

J2ObjC use build rule to compile Java source, and the transpiled ObjC source need to compile and link with other sources in my project.

I try to invoke j2objc in build phase, it could generate ObjC sources, but these generated sources aren't compiled and linked with other sources.

Do I miss something or I need generate build rule?

jcampbell05 commented 6 years ago

Interesting never used this feature when using this for iOS but I'll take a look. Could you create a very basic project for me ?

Would be a big help in helping you to develop this feature.

Piasy commented 6 years ago

Sure, actually I'm working on such a project, https://github.com/Piasy/JavaUniverse