flecs-hub / flecs-systems-admin

A web dashboard for Flecs
MIT License
36 stars 7 forks source link

How to include "-framework OpenGL -framework Cocoa" as compiler parameters for bake? #4

Open WEREMSOFT opened 5 years ago

WEREMSOFT commented 5 years ago

I'm working with openGL and I need to link the apple-type-library called "frameworks". This is done by adding "-framework OpenGL -framework Cocoa" as compiler parameter.

With make, I do the following:

set(CMAKE_C_FLAGS "-framework OpenGL -framework Cocoa")

How this is done in bake? (maybe a bake question, but I hit the wall while trying to use the admin).

Thanks

SanderMertens commented 5 years ago

@WEREMSOFT did you try adding them as cflags?

{
    "id": "my_project",
    "type": "package"
    "value": {

    },
    "lang.c": {
        "cflags": ["-framework OpenGL", "-framework Cocoa"]
    }
}

If you also need to pass things down to the linker, try ldflags.