beardsvibe / buildfox

Minimalistic Ninja generator
MIT License
50 stars 8 forks source link

Improve transforms names #131

Closed jimon closed 8 years ago

jimon commented 8 years ago

Fix #102

I also removed shlib_dep because shared_library_dependency is just in my way too much. So instead of writing like this :

build app(test): obj(obj/*) shlib_dep(libs/*)

You should write like this now :

# last part after | here means that application will be rebuilt when library changes
build application(test): objects(obj/*) | shared_library(libs/*)
    libs += testlib
    libdirs += libs

Pros : no difference between linking with shared or static library (only difference in implicit dependency). Cons : you need to specify all libraries by hand, which somewhat unfriendly.

PS. I honestly prefer shorter names, maybe we should allow both or enable some sort of 1337 syntax :expressionless: