__init__.py 506 B

123456789101112131415161718192021
  1. from devtools.yamaker.modules import Linkable, Switch
  2. from devtools.yamaker.project import CMakeNinjaNixProject
  3. def post_install(self):
  4. with self.yamakes["."] as m:
  5. m.after(
  6. "CFLAGS",
  7. Switch(
  8. OS_WINDOWS=Linkable(
  9. CFLAGS=["-DAWS_AUTH_EXPORTS"],
  10. ),
  11. ),
  12. )
  13. aws_c_auth = CMakeNinjaNixProject(
  14. arcdir="contrib/restricted/aws/aws-c-auth",
  15. nixattr="aws-c-auth",
  16. post_install=post_install,
  17. )