caryll / otfcc

Optimized OpenType builder and inspector.
Apache License 2.0
422 stars 63 forks source link

Project structure refactoring and more building options support #19

Closed be5invis closed 8 years ago

be5invis commented 8 years ago

This PR will talk about refactoring the project structure and providing more building options like XCode project.

be5invis commented 8 years ago

@schriftgestalt Does the XCode files generated in this branch work?

schriftgestalt commented 8 years ago

the Xcode projects are generated but the header paths are not correct.

be5invis commented 8 years ago

@schriftgestalt How? ps. you can try to change the "includedirs" to test whether it fixes.

schriftgestalt commented 8 years ago

I wrote that somewhere already. It needs to be: ../../dep/** ../../src/**.

be5invis commented 8 years ago

@schriftgestalt Like the latest commit? The project files looks like this now

USER_HEADER_SEARCH_PATHS = (
    ../../dep,
    ../../src,
    ../../dep/extern,
    "../../dep/extern/emyg-dtoa",
    ../../src/cli,
    ../../src/font,
    ../../src/fontops,
    ../../src/support,
    ../../src/tables,
    ../../src/fontops/otl,
    ../../src/tables/CFF,
    ../../src/tables/otl,
);
schriftgestalt commented 8 years ago

I still produces the same setting.

be5invis commented 8 years ago

@schriftgestalt Could you please explain more precisely, which field of which file should be “../../dep/** ../../src/**”. I am sorry I have to bother you so many times because I do not have a Mac and I cannot test on my own.

be5invis commented 8 years ago

@schriftgestalt I've modified the premake5-xcode itself to make it possible to build using XCode. Please check out the latest commit and tell me if you found anything wrong. Screenshots from @darkfall. image image

schriftgestalt commented 8 years ago

It works now.

One small issue. I would not set this keys: CONFIGURATION_BUILD_DIR CONFIGURATION_TEMP_DIR OBJROOT SYMROOT

They all should be empty. The build product will not be in the repository but in some Xcode/DerivedData folder. But that is what you expect.

be5invis commented 8 years ago

@schriftgestalt I set the output directory because all the binaries produced are placed under bin/. Linux and Clang/CL-MSVC settings use these dirs either. The PR will be merged, and if you find any problem about building on Mac, please fire issues about it.